- 积分
- 625
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-9-18
- 最后登录
- 1970-1-1
![[子小开心] 粉丝数:99 微博数:98 新浪微博达人勋](source/plugin/sina_login/img/light.png)
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
小弟我在用NCEP逐日6小的资料计算水汽通量时遇到点问题,想请教下论坛里的各位大神,我用的是2011年u,v,q,和地面气压p的资料,选取了东亚地区夏季92天,每天第一个时刻,高度为1000,925,850,700,6005个高度的资料进行分析,其中,u和v的单位是m/s,q的单位是kg/kg,p的单位是Pa,下面是我的代码
- 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/shea_util.ncl"
- ;============================================================================
- begin
- u_filepath = "/cma/g4/expert3/sunyue/diag/ncl/model_prep/NCEP/4daily/uwnd/uwnd.2011.nc"
- v_filepath = "/cma/g4/expert3/sunyue/diag/ncl/model_prep/NCEP/4daily/vwnd/vwnd.2011.nc"
- q_filepath = "/cma/g4/expert3/sunyue/diag/ncl/model_prep/NCEP/4daily/shum/shum.2011.nc"
- p_filepath = "/cma/g4/expert3/sunyue/diag/ncl/model_prep/NCEP/4daily/pressure/pres.sfc.2011.nc"
- u_file = addfile(u_filepath,"r")
- v_file = addfile(v_filepath,"r")
- q_file = addfile(q_filepath,"r")
- p_file = addfile(p_filepath,"r")
- u = u_file->uwnd(604:971,0:4,{15:50},{70:130})
- v = v_file->vwnd(604:971,0:4,{15:50},{70:130})
- q = q_file->shum(604:971,0:4,{15:50},{70:130})
- p = p_file->pres(604:971,{15:50},{70:130})
- ;===================================================================================================
- dsize = dimsizes(u)
- mlat = dsize(2)
- nlon = dsize(3)
- u_day = new((/92,4,5,mlat,nlon/),"float")
- v_day = new((/92,4,5,mlat,nlon/),"float")
- q_day = new((/92,4,5,mlat,nlon/),"float")
- p_day = new((/92,4,mlat,nlon/),"float")
-
- u_day = onedtond(ndtooned(u),(/92,4,5,mlat,nlon/))
- v_day = onedtond(ndtooned(v),(/92,4,5,mlat,nlon/))
- q_day = onedtond(ndtooned(q),(/92,4,5,mlat,nlon/))
- p_day = onedtond(ndtooned(p),(/92,4,mlat,nlon/))
- ;==== time = 00
- u_day_avg = dim_avg_n(u_day,0)
- v_day_avg = dim_avg_n(v_day,0)
- q_day_avg = dim_avg_n(q_day,0)
- p_day_avg = dim_avg_n(p_day,0)
-
- u_00 = u_day_avg(0,:,:,:)
- v_00 = v_day_avg(0,:,:,:)
- q_00 = q_day_avg(0,:,:,:)
- p_00 = p_day_avg(0,:,:)
- qu1 = q_00 * u_00
- qv1 = q_00 * v_00
- printVarSummary(qu1)
-
- qu1!0 = "lev"
- qu1&lev = u&level
- qu1&lev@units = "hPa"
- qu1!1 = "lat"
- qu1&lat = u&lat
- qu1&lat@units = "degrees_north"
- qu1!2 = "lon"
- qu1&lon = u&lon
- qu1&lon@units = "degrees_east"
-
- qv1!0 = "lev"
- qv1&lev = v&level
- qv1&lev@units = "hPa"
- qv1!1 = "lat"
- qv1&lat = v&lat
- qv1&lat@units = "degrees_north"
- qv1!2 = "lon"
- qv1&lon = v&lon
- qv1&lon@units = "degrees_east"
- qu11 = qu1(lat|:,lon|:,lev|:)
- qv11 = qv1(lat|:,lon|:,lev|:)
- delete(qu1)
- delete(qv1)
-
- pres = (/1000,925,850,700,600/)
- linlog = 1
- data11 = (vibeta(pres,qu11,linlog,p_00,1000,600))/9.8
- data12 = (vibeta(pres,qv11,linlog,p_00,1000,600))/9.8
- mm = sqrt(data11^2+data12^2)
- mm!0 = "lat"
- mm&lat = u&lat
- mm&lat@units = "degrees_north"
- mm!1 = "lon"
- mm&lon = u&lon
- mm&lon@units = "degrees_east"
复制代码 然后算出来水汽通量的量级最大只有4.4,感觉好小,请问我的程序有没有什么问题;
还有我看有的帖子在积分时将地面气压除了100,换算成hPa,请问需要么?
|
|