- 积分
- 1901
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-1-6
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2016-12-16 08:29:57
|
显示全部楼层
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
fc = addfile("../data/ABC.nc", "r")
wks = gsn_open_wks("png","temp_t0d0")
gsn_define_colormap(wks,"rainbow")
lon = fc->lon(0:719)
lon@units = "degrees_east"
lat = fc->lat(0:359)
lat@units = "degrees_north"
temp = short2flt(fc->tz_h(0,0,0:359,0:719))
res = True
res@gsnAddCyclic=False
res@mpMinLonF = 0.25
res@mpMaxLonF = 359.75
res@mpMinLatF = -89.75
res@mpMaxLatF = 89.75
res@mpCenterLonF = 180.
res@cnFillOn = True ; turn on color fill
res@cnLinesOn = False ; turn off the contour lines
res@cnLineLabelsOn = False ; turn the line labels off
res@cnInfoLabelOn = False
res@gsnRightString = "Temperature "
res@gsnLeftString = ""
plot = gsn_csm_contour_map(wks, temp, res) |
|