Discussion:
[Matplotlib-users] Basemap - UTM Support
Nick Eubank
2015-05-12 00:45:09 UTC
Permalink
Hi All,

Trying to move from ArcGIS into pure python GIS, but am a little surprised
to find that UTM is not (directly) supported as a projection. Going through
the machinations in the utmtest.py file
<https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
every time I want to plot a map in UTM seems a little unwieldy.

Please excuse my ignorance, but is there a reason it is so hard to support
/ any plans to integrate in the future / any other easier paths to plotting
UTMs I don't know about?

Thanks,

Nick
Don Morton
2015-05-13 20:47:40 UTC
Permalink
Hi,

I only partially know what I'm talking about, but what the heck. Have you
considered pyproj (which Basemap is apparently built on)? Pyproj seems to
support any kind of projection you could even imagine, and a quick ggogle
suggests UTM would be included.

I had to learn all about this to some depth in order to teach it last
summer to a group in Vienna, and I have slides at

https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home

and if you go to course slides, 06-PlottingMetData, starting at about Slide
60, I have some examples which lead up to Basemap. My intent was to try to
get students to understand the how and why of plotting grids in
projections, then moving on to Basemap. This way they might have a better
idea of how to deal with Basemap when things go wrong. I think I just
confused them, though :)

At any rate, I haven't tried it, but I think it would be fairly simple to
do what you want, IF you understand some of the low-level aspects. But,
maybe UTM is harder than I am imagining.

All the best,

Don Morton



---
Don Morton, Owner/Manager
Boreal Scientific Computing LLC
Fairbanks, Alaska USA
http://www.borealscicomp.com/
http://www.borealscicomp.com/Miscellaneous/MortonBio/
Post by Nick Eubank
Hi All,
Trying to move from ArcGIS into pure python GIS, but am a little surprised
to find that UTM is not (directly) supported as a projection. Going through
the machinations in the utmtest.py file
<https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
every time I want to plot a map in UTM seems a little unwieldy.
Please excuse my ignorance, but is there a reason it is so hard to support
/ any plans to integrate in the future / any other easier paths to plotting
UTMs I don't know about?
Thanks,
Nick
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Nick Eubank
2015-05-13 22:20:19 UTC
Permalink
Thanks Don. The consensus seems to be that I need to move to Cartopy, which
apparently supersedes Basemap.

(Just realized the helpful responses I received weren't cc'd to the list,
so responding here for the record).
Post by Don Morton
Hi,
I only partially know what I'm talking about, but what the heck. Have you
considered pyproj (which Basemap is apparently built on)? Pyproj seems to
support any kind of projection you could even imagine, and a quick ggogle
suggests UTM would be included.
I had to learn all about this to some depth in order to teach it last
summer to a group in Vienna, and I have slides at
https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home
and if you go to course slides, 06-PlottingMetData, starting at about
Slide 60, I have some examples which lead up to Basemap. My intent was to
try to get students to understand the how and why of plotting grids in
projections, then moving on to Basemap. This way they might have a better
idea of how to deal with Basemap when things go wrong. I think I just
confused them, though :)
At any rate, I haven't tried it, but I think it would be fairly simple to
do what you want, IF you understand some of the low-level aspects. But,
maybe UTM is harder than I am imagining.
All the best,
Don Morton
---
Don Morton, Owner/Manager
Boreal Scientific Computing LLC
Fairbanks, Alaska USA
http://www.borealscicomp.com/
http://www.borealscicomp.com/Miscellaneous/MortonBio/
Post by Nick Eubank
Hi All,
Trying to move from ArcGIS into pure python GIS, but am a little
surprised to find that UTM is not (directly) supported as a projection.
Going through the machinations in the utmtest.py file
<https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
every time I want to plot a map in UTM seems a little unwieldy.
Please excuse my ignorance, but is there a reason it is so hard to
support / any plans to integrate in the future / any other easier paths to
plotting UTMs I don't know about?
Thanks,
Nick
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root
2015-05-14 13:06:25 UTC
Permalink
Nick,

Just to be clear, cartopy is intended to supersede basemap, but there are
still many advantages at the moment to basemap over cartopy. The codebase
is much more mature, and it is much easier to install than cartopy. I still
regularly use basemap because I don't need the more advanced features of
cartopy (yet).

This isn't to discourage you from cartopy, just simply to help put the
utility of the projects in the right context.

Cheers!
Ben Root
Post by Nick Eubank
Thanks Don. The consensus seems to be that I need to move to Cartopy,
which apparently supersedes Basemap.
(Just realized the helpful responses I received weren't cc'd to the list,
so responding here for the record).
Post by Don Morton
Hi,
I only partially know what I'm talking about, but what the heck. Have
you considered pyproj (which Basemap is apparently built on)? Pyproj seems
to support any kind of projection you could even imagine, and a quick
ggogle suggests UTM would be included.
I had to learn all about this to some depth in order to teach it last
summer to a group in Vienna, and I have slides at
https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home
and if you go to course slides, 06-PlottingMetData, starting at about
Slide 60, I have some examples which lead up to Basemap. My intent was to
try to get students to understand the how and why of plotting grids in
projections, then moving on to Basemap. This way they might have a better
idea of how to deal with Basemap when things go wrong. I think I just
confused them, though :)
At any rate, I haven't tried it, but I think it would be fairly simple to
do what you want, IF you understand some of the low-level aspects. But,
maybe UTM is harder than I am imagining.
All the best,
Don Morton
---
Don Morton, Owner/Manager
Boreal Scientific Computing LLC
Fairbanks, Alaska USA
http://www.borealscicomp.com/
http://www.borealscicomp.com/Miscellaneous/MortonBio/
Post by Nick Eubank
Hi All,
Trying to move from ArcGIS into pure python GIS, but am a little
surprised to find that UTM is not (directly) supported as a projection.
Going through the machinations in the utmtest.py file
<https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
every time I want to plot a map in UTM seems a little unwieldy.
Please excuse my ignorance, but is there a reason it is so hard to
support / any plans to integrate in the future / any other easier paths to
plotting UTMs I don't know about?
Thanks,
Nick
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...