Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'd like to make a new toolbox for ArcGIS 10.
While I have found resources on making Python scripts and the like, I have not yet found any examples or documentation regarding making Toolboxes.
Could someone point me in the right direction? Examples of toolbox codes/setup are much appreciated.
Making a new (empty) toolbox is very easy.
Simply right click on a folder in the Catalog window and choose New | Toolbox.
This is described in the Online Help.
Once you have a toolbox you just right click on that to Add Script and follow the wizard. The help link above should lead you to documentation on all of that.
Pay particular attention to how you define parameters on the tool to correspond with your GetParameterAsText statements in the script.
If you get stuck the GIS Stack Exchange has many thousands of ArcPy Q&As.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am a python beginner and I am a little experienced in OO-programming in Java and PHP and also fucntional programming in R . Thus, my question is considering the general usage of python scripts in everyday use-cases.
I want to "learn" how to think/approach a problem that I do experience when facing a situation with my software where a "script" could help me out or improve something.
For instance, I've heard friends talking about their self-made python scripts to evenly mute the audio of movies to avoid loud outliers in explosive scenes, etc. Another example, in my case righ tnow, is to filter out certain pictures with no GPS-time meta information for the timezone in order to sort these fotos in accordance with the others.
I really want to get the essence and recipe based on the aforementioned examples to better integrate Python in my everyday life and get an intuitive feeling for it. (i.e. how would a simple script look like that takes a picture, filters out its meta data, and does something -> where do I have to run the script so I can call the function with these .JPG files as its arguments?).
I would also be glad if some of you could recommend some practical tutorials or literature.
Thank you in advance :)
P.S. I know it is not a concrete question but rather it is intended to get a glimpse on a wide field of usage and thinking - but I want to get this essential take away that motivates me and shows me the direction.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a general question concerning "publishing" python code and referencing it later in my own PhD thesis. I hope someone can provide helpful thoughts about it.
My plan:
During my PhD time I have written several code snippets for time-frequency analysis. These are not large code projects, but snippets that provide functionalities, which are not included in the general scipy.signal package. In approximately 6 month I will hand in the thesis, so now I am thinking about what stuff to include in the thesis. If I include these snippets in my thesis I somehow thought it would be "cooler" to have them already "published" in any form instead of just putting the code in the appendix of the thesis. By doing so I might be able to write something like this in my thesis: The code for analysing the data_x_y is also available at ...
I would like to find the easiest way to accomplish this.
Thanks for any comments!
Publish the code on Github. You can optionally create a Python package, and publish that to PyPI.
Once it's on GitHub, you can get a free DOI for it using Zenodo. This will create a permanent record (including source code), and makes your code easily citable (both by yourself and others).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know python and want to contribute on OpenSource projects that features python. Anyone can help me where to contribute and how.
I already googled it and find github and code.google as a good place to contribute but how to start it I don't know.
Suggest how to get started.
Not sure if this is an appropriate question for SO - you might get voted down. But ...
Whenever I have seen this question, the answer is almost always:
find a project you like / you're interested in
find something in that project that you feel you can fix / enhance (have a look through their bug tracker)
fork the project (github makes this easy)
make the change, find out what is appropriate for that project (documentation, unit tests, ...)
submit the change back to the project (github has "request pull")
Good luck!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
So my iPython notebook comes up in my browser (chrome) and when I open my specific notebook a new tab opens. However the work does not load up! The page also freezes. Is this an iPython issue or something wrong with the file? Was working yesterday. I've restared comp etc. but no luck
Update: just tried renaming notebook to open again with no luck
Update 2: One has now shown up - but can't do anything with it! Is iPython simply extremely extremely slow...
Is it possible that one of the cells got a lot of output data?
if so,
try editing the file manually (with notepad++ or something like this), and delete cell's output
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
The only references I can find state that it's theoretically possible to write iOS apps using python. Does anyone know of any examples of apps that were written this way?
Looks like the iOS PyObjC hasn't really been maintained:
Python Hello World in PyObjC on iPhone?
This is the best project I have ever seen related with the topic
http://pyzia.com
Unfortunatelly, you can't download it yet.
Without it, I think you're left with PyObjC.
You have a good introductory tutorial here.