draw across zonal boundary
例)
map = Basemap(projection='cyl',llcrnrlat=latmn,urcrnrlat=latmx, \
llcrnrlon=30.,urcrnrlon=390.01,resolution='c')
map.contour(lons2d,lats2d,data,levels=clevs,latlon=True)
basemapで地図上に全球の図を描く時に,図の経度範囲をずらしたいことがある.たとえば,0-360の図ではアフリカが図の右端と左端に分かれてしまうとか,大西洋が分かれてしまうので,それを避けたいという場合だ.
こういう場合にはmapで図示したい経度範囲を設定して,map.contourfなどの位置の引数を2次元配列の経度と緯度にして,latlon=Trueを指定すれば,指定した経度範囲で描画できる.
Often we want to draw a figure that is shifted in longitude. You can do this by specifying longitudinal range in map and use 2-dimensional longitudes and latitudes for the input arguments of map.contourf or other map.functions with option latlon=True.
Example:
map = Basemap(projection='cyl',llcrnrlat=latmn,urcrnrlat=latmx, \
llcrnrlon=30.,urcrnrlon=390.01,resolution='c')
map.contour(lons2d,lats2d,data,levels=clevs,latlon=True)