coordinate transformations - matplotlib-users - Matplotlib
coordinate transformations Community matplotlib-users _Jeff_Whitaker1 October 10, 2008, 12:31am 1 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 ( PROJ — PROJ 9.3.1 documentation ). 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 GitHub - pyproj4/pyproj: Python interface to PROJ (cartographic projections and coordinate transformations library) -Jeff -- Jeffrey S.
Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328