- 积分
- 1025
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 LeoBao 于 2013-5-5 15:32 编辑
下面是脚本
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/csm/popRemap.ncl"
begin
dir="/*/work2013/"
f3=addfile(dir+"ua/ua_Amon_CCSM4_historical_r1i1p1_195001-200512.nc","r")
g3=addfile(dir+"va/va_Amon_CCSM4_historical_r1i1p1_195001-200512.nc","r")
ua3=f3->ua(0:671,2,:,:)
va3=g3->va(0:671,2,:,:)
UY=month_to_annual(ua3,0)
VY=month_to_annual(va3,0)
UCLM = dim_avg_n_Wrap(UY,0)
VCLM = dim_avg_n_Wrap(VY,0)
print(UCLM)
wks = gsn_open_wks("X11","avg_uv")
res = True
res@gsnDraw = True
res@gsnFrame = False
res@mpMinLonF = 40.
res@mpMaxLonF = 140.
res@mpMinLatF = 0.
res@mpMaxLatF = 60.
res@mpFillOn=False
res@mpDataSetName ="Earth..4"
res@mpOutlineOn =True
res@mpDataBaseVersion ="MediumRes"
res@vcRefMagnitudeF = 5.0
res@vcRefLengthF = 0.045
res@vcRefAnnoArrowLineColor = "black"
res@vcRefAnnoArrowUseVecColor = False
res@vcMonoLineArrowColor = False
res@vcMinDistanceF = 0.02
res@vcGlyphStyle = "CurlyVector"
res@vcLineArrowColor = "black"
res@vcVectorDrawOrder = "PostDraw"
res@vcRefAnnoOrthogonalPosF = -0.125
res@vcRefAnnoParallelPosF = 0.99
res@tiMainString ="CCSM4"
res@gsnLeftString =" "
res@gsnRightString =" "
plot = gsn_csm_vector_map_ce(wks,UCLM(:,:),VCLM(:,:),res)
end
档数据没有缺测值的时候,没有问题,但有缺测就会有问题,输出了UCLM
值很奇怪(191,245) 1.078165e+30
(191,246) 1.400132e+33
(191,247) 1.086806e+28
(191,248) 9.033396e+30
(191,249) 1.321149e+30
(191,250) 1.322325e+30
(191,251) 4.063018e+30
(191,252) 6.458045e+30
(191,253) 2.720662e+30
(191,254) 2.4256e+30
(191,255) 2.751809e+30
(191,256) 2.425555e+30
(191,257) 1.343614e+30
(191,258) 1.403738e+30
(191,259) 2.670473e+30
(191,260) 9.819792e+29
(191,261) 6.71873e+30
(191,262) 1.07657e+30
(191,263) 4.115881e+27
(191,264) 1.317825e+27
(191,265) 1.666996e+30
(191,266) 1.393091e+33
(191,267) 2.067162e+25
(191,268) 7.775655e+30
(191,269) 8.2833e+25
(191,270) 3.217893e+29
(191,271) 2.425581e+30
(191,272) 9.000108e+28
(191,273) 9.807229e+29
(191,274) 1.431103e+30
(191,275) 1.325162e+30
(191,276) 3.37665e+26
(191,277) 9.820407e+29
我觉得应该对缺测只做了处理了,求大神帮帮忙
**************************************************
附上出错信息
fatal:_NhlGetEndpointsAndStepSize: Max value less than or equal to min value
fatal:VectorPlotInitialize: error choosing spacing
fatal:VectorPlotInitialize: error getting vector level information
fatal:VectorPlotInitialize: error initializing dynamic arrays
fatal:Unable to initialize layer-Can't Create
fatal:Unable to access object with id:-4
fatal:_NhlDataUpdate:called for a non-DataComm class
fatal:PID #-4 can't be found in NhlSetValues
warning:overlay: bad HLU id passed in, ignoring
fatal:Execute: Error occurred at or near line 7342 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
fatal:Execute: Error occurred at or near line 84 in file avg_uv_test.txt
|
-
|