- 积分
- 1891
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-11-5
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我用nc数据进行ncl学习,画了个相对湿度图填色图,结果图片数值看起来明显不对,有人帮忙看下怎么回事么?在此感谢了;-----------------------------------------------------------------
; NCL User Guide Example: NUG_contour_filled_map.ncl
;
; KMF 30.10.14
;-----------------------------------------------------------------
; These load commands are not required in NCL versions 6.2.0 and later.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
;-- read the data and define
f = addfile("D:/FNL/2017_0623EC.nc", "r")
var = f->r(0,0,:,:)
;-- define the workstation (plot type and name)
wks = gsn_open_wks("x11","NUG_contour_filled_map")
;-- set resources
res = True
res@gsnMaximize = True
res@cnFillOn = True ;-- turn on contour fill
res@cnFillPalette = "BlueWhiteOrangeRed" ;-- choose color map
res@cnLinesOn = False ;-- turn off contour lines
res@cnLineLabelsOn = False ;-- turn off line labels
res@cnLevelSpacingF = 10 ;-- contour level spacing
res@lbLabelStride = 4 ;-- label every 4th box
res@lbBoxMinorExtentF = 0.15 ;-- decrease the height of the labelbar
res@tiMainString = "NCL Doc Example: filled contour map" ;-- title string
res@tiMainFontHeightF = 0.02
;-- draw the contour map
plot = gsn_csm_contour_map(wks, var, res)
end
下面是数据中相对湿度的情况
short r ( time, level, latitude, longitude )
scale_factor : 0.002759203744309724
add_offset : 81.69991330035906
_FillValue : -32767
missing_value : -32767
units : %
long_name : Relative humidity
standard_name : relative_humidity
|
-
|