Lionel Roubeyrie wrote:
> Hi all,
> Can't find any examples on google, then I come here to see if it's possible 
> to 
> display a georeferenced map (geotiff on my side) into Basemap.
> The PCL module seems great, but there's not useful information on the Trac 
> website.
> Thanks
>
>   
Lionel:  There's an example in Basemap (warpimage.py) of displaying a 
plain old png file on different map projections.  If you can figure out 
how to read a geotiff (I've never tried it, but GDAL should be able to 
do it), you should be able to use the projection information in the file 
to figure out the lat/lon values of each pixel.  Then you could follow 
the warpimage.py example to transform it to some other map projection.  
Or, if you want to display it in it's native projection, just use the 
projection information in the geotiff to define a Basemap instance, 
extract the rgba values and plot them with Basemap.imshow.

-Jeff

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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to