Slide 46
Slide 46 text
Use
the
basemap
toolkit
to
map
the
data
in
Albers
Equal
Area
projection
>>>
from
mpl_toolkits.basemap
import
Basemap
>>>
fig
=
plt.figure())
>>>
bmap
=
Basemap(width=…,
height=…,
resolution='i',
projection='aea',
lat_1=40.,
lat_2=60.,
lat_0=50.,
lon_0=-‐63.)
>>>
x,
y
=
bmap(nsdic.Lon,
nsdic.Lat)
>>>
implt
=
bmap.pcolormesh(x,
y,
np.flipud(icedat),
…)
>>>
x,
y
=
bmap(lon_center,
lat_center)
>>>
bmap.scatter(x,
y,
marker='o',
c='tomato',
s=150,
zorder=20,
label='Anticosti',
alpha=0.7)
>>>
bmap.drawcoastlines(zorder=10)
>>>
bmap.drawrivers(color=water)
>>>
…
46