- 积分
- 4243
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-19
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
画再分析资料,我想把青藏高原部分mask掉,我现在基本上可以去掉,但是经纬度加不进来,求指教load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
fnl = addfile("./fnl_20140522_12_00.grb2","r")
pw = fnl->PWAT_P0_L200_GLL0
hgt = fnl->HGT_P0_L1_GLL0
z = fnl->HGT_P0_L100_GLL0({85000},:,:)
qMask = (/mask(pw,hgt.gt.z,False)/)
wks = gsn_open_wks("png","MASK")
res = True
res@gsnDraw = True
res@gsnFrame = True
res@cnFillOn = True
res@cnLinesOn = False
res@mpOutlineOn = True
res@mpLimitMode = "LatLon"
res@mpMinLatF = 10
res@mpMaxLatF = 40
res@mpMinLonF = 90
res@mpMaxLonF = 125
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/30,35,40,45,50,55/)
res@cnFillColors = (/"RoyalBlue","CornflowerBlue","Lightblue","LightCyan","Khaki","Gold","Orange"/)
plot = gsn_csm_contour_map_ce(wks,qMask,res)
end
然后会提示错误:
(0) check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.
(0) A valid latitude coordinate array should have a 'units' attribute equal to one of the following values:
(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'
(0) check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn't contain one at all.
(0) A valid longitude coordinate array should have a 'units' attribute equal to one of the following values:
(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'
|
-
|