- 积分
- 4762
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-2-16
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 liutong 于 2016-4-25 20:59 编辑
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"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/skewt_func.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl"
;*********************************************************
begin
plot=new(2,graphic)
grb_file = addfile("D:/NCL/cygwin/ziliao/fnl_20150629_18_00.grib2","r")
print
;500hgt*********************************************************************
tt = grb_file->TMP_3_ISBL_10({850},:,:)
rhprs = grb_file->R_H_3_ISBL_10({850},:,:)
u = grb_file->U_GRD_3_ISBL_10({850},:,:)
v = grb_file->V_GRD_3_ISBL_10({850},:,:)
tc = tt-273.16
lev = tt@lv_ISBL3
td=tc-((14.55+0.114*tc)*(1-0.01*rhprs)+(((2.5+0.007*tc)*(1-0.01*rhprs))^3)+(15.9+0.37*tc)*((1-0.01*rhprs)^14))
vapr=6.112*exp((17.67*td)/(td+243.5))
ee=vapr*1.001+(lev-100)/900*0.0034
mixr=0.62137*(ee/(lev-ee))*1000/9.8
qu=u*mixr
qv=v*mixr
mm=sqrt(qu^2+qv^2)
do i=0,359
do j=0,180
if (mm(j,i).lt.15)then
mm(j,i)=0
end if
end do
end do
copy_VarCoords(tt,qu)
copy_VarCoords(tt,qv)
copy_VarCoords(rhprs,mm)
copy_VarMeta(tt,qu)
copy_VarMeta(tt,qv)
copy_VarMeta(rhprs,mm)
wks =gsn_open_wks("pdf","fnl_vapour_flux")
gsn_define_colormap(wks,"BlAqGrYeOrReVi200")
vcres = True
vcres@gsnAddCyclic = False
vcres@gsnDraw = False ; don't draw yet
vcres@gsnFrame = False ; don't advance frame yet
vcres@mpDataSetName = "Earth..3" ; This new database contains
vcres@mpDataBaseVersion = "MediumRes" ; Medium resolution database
vcres@mpOutlineOn = True ; Turn on map outlines
vcres@mpProjection = "CylindricalEquidistant"
vcres@tiMainString =""
vcres@mpGeophysicalLineThicknessF = 0.35
; double the thickness of geophysical boundaries
vcres@mpNationalLineThicknessF = 0.5
; double the thickness of national boundaries
vcres@pmTickMarkDisplayMode = "Always"
vcres@mpMinLatF = -25 ;鏈 |
|