旋转及添加点的代码:
- f = addfile('D:/Temp/nc/seaice_conc_daily_sh_f17_20080830_v02r00.nc')
- data = f['seaice_conc_cdr'][0,:,:]
- #Plot
- mproj = projinfo(proj='stere', lon_0=-90, lat_0=-90, lat_ts=-70)
- axesm(projinfo=mproj, gridline=True)
- lworld = shaperead('D:/Temp/map/country1.shp')
- geoshow(lworld)
- layer = imshowm(data, 20, cmap='WhBlGrYeRe', proj=f.proj)
- colorbar(layer)
- t = f.gettime(0)
- title('Sea ice concentration (' + t.strftime('%Y-%m-%d') + ')')
- #Add point
- lon = -100
- lat = -80
- geoshow(lat, lon, size=14, color='g', marker='S')
|