Drawing meteorological maps in python - python

I found a user friendly way plotiing meteorological maps with python. I found this flight path tool, http://www.aviationweather.gov/flightpath2?gis=off , and i want to make something like this in python. I have made the scripts retrieving the data and plotting the maps but i want to make the interface. Is it difficult? Do you have any ideas?

Are you wanting to make a web-based interface? If so, I suggest maybe Django. If you want just a script with some nice GUI on a local machine, I think Qt is easy to use. I can't run the java file from aviationweather.gov (or rather, do not wish to) so I don't know what the interface is like. But using either Django or Qt, I think those are the tools I would start with.

Check out the video here.
https://blogs.msdn.microsoft.com/visualstudio/2016/03/22/introducing-r-tools-for-visual-studio-3/
Start watching about 7 minutes into the video. I think that will be a great learning experience for you, and should get you going in the right direction.

Related

How to create a TRUE Python program

So I have been studying Python for some time now, learned all the foundations.
With this knowledge I decided to create a project, right now I have written some code and some functionality, but everything is done by the terminal.
Does anybody know where I can find the resources to learn how to create a fully fleshed-out Python program? I want to convert the script to a true .exe, with a GUI , inputs outside the terminal, etc…
If anyone is interested here is the basic program: GitHub - pedrodeoliamarante/roadto10k. There isn’t much yet but the idea is to create a program where I can save data on what i have been studying, set goals, etc…
Thanks for reading!
Take a look at QT for Python.
https://www.qt.io/qt-for-python
I think this is what you are looking for.

Track GPS data for a certain time with Python

I want to create a fitness program using python.
When the user creates a account in my program he/she needs to have the option to select the location of their gym or the place where they workout. So in other words, a map opens up and the user has to find the place where they workout and mark it.
Then, I want to use the GPS of their phones in order to look if they were at least 30 minutes inside a 30 meter radius from the mark (their gym, or other place where they workout) in 24 hours.
If they were, I want to count that day.
My questions are:
Is this thing even possible?
Is python the best programing language for this or should I use something else?
Is there any library for Python that can help me?
Thank you in advance!
Are you planning on making a phone app for iOS/Android?
Since you said you maps on their phone, I am assuming you mean a phone app.
I would suggest learning Objective-C, if you are trying to make apps for iOS specifically, and the preferred language of implementation for Android would be Java.
With that said, you absolutely can use python to develop an Android or iOS app with something like BeeWare! Which is a nice suite of python tools so you can build your program from the ground up with pure python.
So there are many options with advantages/disadvantages; everyone will give their two sense on which is the best way to approach, but I would suggest researching the many ways phone apps are developed to get your feet wet and get familiar with the process before going head first at those additional questions!
It is a bit different than writing a python program on your computer, running it on command prompt/terminal and being good to go!

(ArcGIS) Create new function for Arcpy

As a result for my graduation paper I am trying to create a new toolbox for ArcGIS using Python scripting. The problem is I am stuck with my code because none of the existing functions in Arcpy does what I need to do. So my question is, is it possible to create a new function in Arcpy or this is restricted to ESRI developers?
Another way to solve this problem would be implement some changes in the tool Cost Distance from Spatial Analyst. So my other question is, do I have access to the coding of the native tools from ArcGIS? And if I have, can I change it to achieve my goal? Or this is also restricted?
Thanks,
Gabriel
You can create your own functions using Python and the Python arcpy site-package. All of ESRI's tools are proprietary, and therefore, most have restricted access. You can check to see if you can edit the tools in the ArcToolbox. For example, you can see the Cost Distance tool is restricted:
While the Spline with Barriers tool can be edited by right-clicking on the script tool.
You can create your own python toolbox for ArcPy following this help: http://resources.arcgis.com/en/help/main/10.2/index.html#//001500000022000000
also checkout the environment variables for your existing tool, it might have some options that you are looking for.
I know this is a year late, but I would like to add a couple ideas to what has been posted for folks like me who are searching for python toolbox help.
For educational purposes, begin by creating a model in Model Builder. This is one way to use ESRI's proprietary tools in new ways. Decide what you want to do and look at ESRI's presence on GitHub. The developers there have a lot of open-source tools ready to use in ArcMap. Here is one such repository: GeospatialPython
Side note, contributing to a repository is a great resume builder.
After creating your working model builder, right click on it in ArcCatalog and select 'export as Python script'. Open the script in your favorite IDE and begin cleaning it up!
Now that you have a python script, it is ready to become a python toolbox. Use gDexter42's link and get to work on that.
My team has some interesting uses for python toolboxes and I am currently creating my very first one.
We use a runner scripts to debug our software. (hard-coded parameters)
We use inheritance for functions that we use over and over again (class BaseToolboxMixin(object):) Stack Exchange Article on Mixins
Most importantly, we have created our own python module around the tool.
The .pyt file we made simply imports arcpy, the module we created, executes the module from a list we created in our 'toolbox_loader.py' file, and has a class that calls the init file that created the module in the first place. >20 lines of code.
As our team creates more tools for the module/python toolbox, we will add them to the list. They will appear inside our toolbox alongside all the ESRI tools. "Seamless integration" was thrown around a lot at the Dev Summit this year.
ESRI is encouraging creativity and open-source usage (check out esri leaflet). I wouldn't constrain my thinking because ESRI's tools are proprietary.
All of this functionality began as a model in ArcMap. Not everyone is going to need to create their own module - complete overkill for most tasks - but it is good to know that the ceiling for Python functionality is high. I am not an experienced developer, but I was able to go from nothing to a functional python toolbox in about 25 man-hours of work. Someone who knows their stuff could do it in a morning.

Easiest paths from Pygame/PyOpenGL to iOS.

I have a significant game I really need to port to tablets. (Android has PyGame subset for Android, which I'm still investigating). It would be great to take my Python code and move it to a more cross-platform engine.
I'm looking for engines with a pure code API, something I can wrap my intermediate glue for graphics and audio around. Kivy and some others use too much *ML (or JSON). Hoping I missed something good. The best I've seen is Futile for Unity3D, but Boo !!!!!= Python.
Have a look at http://ignifuga.org, it's Python based and inspired by projects like Cocos2d and AndEngine.
Have a look at Kivy framework. I tried just some very simple demos but I can confirm that you can run it on PC/Mac/iOS.

Playing MMS streams within Python

I'm writing a XM desktop application (I plan on releasing the source on github when I'm finished if anyone is interested) Anyway, the one part I know very little about is how to play media within Python (I'm using PyQt for the frontend). Basically, I have a mms:// url that I need to play. I was wondering if there is a library that could accomplish this or something, really I just need someone to point me in the right direction.
I know its possible, because SMplayer (Python implementation of MPlayer that uses Qt) works with MMS, I may have to take a peak at they're source if worse comes to worse.
You can have a look at
PyMedia
PyGame
wxPython
Here is a code snippet of doing a similar thing with wxPython.
All of these can play media files.

Categories

Resources