From: Jeff W. <js...@fa...> - 2008-12-16 12:43:58
|
Roger André wrote: > Hi All, > > I have some square images which were generated via WMS requests. I > have imported them into Matplotlib via pil_to_array, and then display > them in a Basemap instance where I have defined the projection as: > > m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlon=ll_lon, > llcrnrlat=ll_lat, urcrnrlon=ur_lon, > urcrnrlat=ur_lat, suppress_ticks=False) > > While this works (it appears the tics are at the right places), the > image is no longer square, and I wonder if my projection definition is > correct. > > Can someone show me what the correct Basemap parameters are for > working with images that are in EPSG:4326? > > Thanks, > > Roger Roger: The image will only be square if ur_lon-ll_lon = ur_lat-ll_lat (i.e. the longitude range equals the latitude range). Is this the case? -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |