Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16295 > unrolled thread

Contour plots of lat/lon data

Started byamannucci <Anthony.J.Mannucci@jpl.nasa.gov>
First post2013-12-01 13:15 +0000
Last post2013-12-01 13:15 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Contour plots of lat/lon data amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-12-01 13:15 +0000

#16295 — Contour plots of lat/lon data

Fromamannucci <Anthony.J.Mannucci@jpl.nasa.gov>
Date2013-12-01 13:15 +0000
SubjectContour plots of lat/lon data
Message-ID<l7fcpd$k4c$1@smc.vnet.net>
I am interested in using Mathematica to plot functions of latitude/longitude (e.g. on Earth). I am thinking of ContourPlot type of functionality, but with latitude/longitude coordinates. I am familiar how this is done in matplotlib/python. It works like this:

One initializes the map projection thus:
m = Basemap(projection='npaeqd',boundinglat=10,lon_0=270,resolution ='l')

This projection is "North Polar Azimuthal Equidistant Projection". Then, given an array of data in lat, lon coordinates z(lat,lon), one converts to projection coordinates thus:
x,y = m(lon,lat)

And then executes the contour method of the map projection object:

m.contourf(x,y,z)

Is there a polar projection in Mathematica? I cannot find one. If not, I can probably get reasonably close with the existing set of projections.

More broadly, I don't see how to create a geographically registered contour map in Mathematica. Is there a function that plots contour data taking into account a map projection that is already defined? I cannot find any examples of contour plotting on a user-specified geographic projection. Does one manually convert all the coordinates and then use ContourPlot?

Thanks for your help!

-Tony

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web