From: Jeff W. <js...@fa...> - 2006-04-20 17:42:26
|
Lionel Roubeyrie wrote: > Hi all, > I try to play with the Basemap module, but I'm starting with two problems: > 1- All my datas are in Lambert coordonates, and Basemap want geographic > coords. Is there a way to automatically transforms the coords? > Lionel: Basemap does not require the data to be in geographic coordinates for plotting. It's quite easy to plot the data if it is already in projection coordinates. I think your problem is probably related to the next point ... > 2- Trying to set a shapefile in the plot, I get: > ValueError: shapefile must have lat/lon vertices - it looks like this one has > vertices in map projection coordinates > Is the first question can be apply to shapefile? > The shapefile interface is not very smart yet - it doesn't know how to deal with projections, so it just assumes the data is lon/lat. If you can somehow load the data into python (perhaps by converting it to a text file?), then basemap should be quite happy to plot. it. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |