coordinate transformations

Mathew Yeates wrote:

Hi Jeff

I took a look and I'm still confused. Do you happen to have any code that goes Geodetic (lat,lon) to Geocentric (lat,lon)?

Thanks
Mathew

Mathew: No, and I must confess I don't even know what that means. You might check the proj4 docs and/or mailing list (http://trac.osgeo.org/proj/). pyproj is a wrapper for the proj4 C library.

-Jeff

···

Jeff Whitaker wrote:

Mathew Yeates wrote:

Hi
Are there any modules in matplotlib for coordinate transformations. In particular, I want to go from geodetic to WGS-84.

Thanks
Mathew

Mathew: The pyproj module is included in the basemap toolkit and can be accessed with

from mpl_toolkits.basemap import pyproj

To see how to use it look at the docs for the Proj class at http://pyproj.googlecode.com/svn/trunk/README.html.

If you don't want to install the whole Basemap toolkit (a 100 mb download) you can just install the pyproj module from

http://code.google.com/p/pyproj

-Jeff

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328