- 积分
- 1831
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-6
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
linux |
问题截图: |
|
问题概况: |
ncl出图区域区域与wps中设置的区域(105E-132E,18N-45N)不同,并且经纬度不显示 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
2 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
下面是我的脚本文件,请大家帮我指正错误,谢谢!
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"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
begin
a=addfile("/home/zssapr/WRF3.5.1/20110710/WRFV3/test/em_real/wrfout_d01_2011-07-10_00:00:00","r")
r =a->RAINNC
e =a->RAINC
lat =a->XLAT
lon =a->XLONG
;printVarSummary(lat)
print(lat)
dimll =dimsizes(lat)
nlat =dimll(0)
mlon =dimll(1)
wks =gsn_open_wks("ps","rain_contour2d02")
gsn_define_colormap(wks,"precip4_11lev")
res =True
res@tiMainString ="rain"
res@cnFillOn = True ; turn on color
res@cnLinesOn = True
res@gsnAddCyclic = False ; regional data: not cyclic
res@tfDoNDCOverlay = True ; set True for native (direct) mapping
res@mpProjection = "Mercator" ;"LambertConformal"
res@mpLimitMode = "Corners"
res@mpLeftCornerLatF = lat
res@mpLeftCornerLonF = lon
; res@mpRightCornerLatF = lat(:,nlat-1,mlon-1)
; res@mpRightCornerLonF = lon(:,nlat-1,mlon-1)
res@mpOutlineDrawOrder = "PostDraw" ; draw continental outline last
res@mpFillDrawOrder = "PreDraw"
res@mpOutlineBoundarySets = "GeophysicalAndUSStates" ; state boundaries
res@mpFillOn = False ; turn off map fill
rain =r(0,:,:)+r(1,:,:)+r(2,:,:)+r(3,:,:)+r(4,:,:)+r(5,:,:)+r(6,:,:)+r(7,:,:)+e(0,:,:)+e(1,:,:)+e(2,:,:)+e(3,:,:)+e(4,:,:)+e(5,:,:)+e(6,:,:)+e(7,:,:)plot = gsn_csm_contour_map(wks,rain,res)draw(plot)
end
|
|