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