bluemarble image and cyl projection

When using the cyl projection with the bluemarble image and a map area is not the global map centered on lon,lat 0,0 I don’t get the blue marbel image to adapt to the actual map. Any suggestions?

import mpl_toolkits.basemap as b
import numpy as np
def draw(center=11.,latres=10.,lonres=10.):
m = b.Basemap(projection=‘cyl’,lon_0=center,lat_0=0.,
llcrnrlon=center-100.,urcrnrlon=center+100.,
llcrnrlat=-85.,urcrnrlat=85.,resolution=‘i’)

m.drawcoastlines(color=‘r’)
m.drawmapboundary(color=‘r’)
m.drawmeridians(np.arange(center-180.,center+180.,lonres),color=‘0.5’,labels=[0,0,0,1])
m.drawparallels(np.arange(-90,90,latres),color=‘0.5’,labels=[1,0,0,0])

im=m.bluemarble()
return m

world.jpg

Momme Butensch�fffff6n wrote:

When using the cyl projection with the bluemarble image and a map area is not the global map centered on lon,lat 0,0 I don't get the blue marbel image to adapt to the actual map. Any suggestions?

Momme: Thanks for the report - this is now fixed in SVN, along with your other problem with the robinson projection. If you can't update from svn, I can make a tarball for you.

-Jeff

···

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