[Matplotlib-users] Blue marble doesn't map to regional ortho projection correctly

Don Morton don.morton at borealscicomp.com
Fri Apr 8 19:49:25 EDT 2016


I could easily be doing something wrong.  I posted this issue about two
years ago and never saw a response, so I'll try again.  It's more of an
academic question - I can work around the issue.  In the following code, I'm
trying to plot a regional ortho projection over central Europe (I've
commented out the global projection), and then trying to use a bluemarble
background.  As you can see from the attached image, global bluemarble
background is plotted, not a regional one.  This also happens with
shadedrelief and etopo.


import mpl_toolkits.basemap as bm
import matplotlib.pyplot as plt
import numpy as np

theMap = bm.Basemap(projection='ortho',
                    lat_0=48.2, lon_0=16.4)

theMap = bm.Basemap(projection='ortho',
                    lat_0=48.2, lon_0=16.4,
                    llcrnry=-1000000.0, llcrnrx=-1000000.0,
                    urcrnry=1000000.0, urcrnrx=1000000.0,
                    resolution='l', area_thresh=1000)



View this message in context: http://matplotlib.1069221.n5.nabble.com/Blue-marble-doesn-t-map-to-regional-ortho-projection-correctly-tp46944.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

More information about the Matplotlib-users mailing list