- 积分
- 184
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-14
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
fnl_file=addfile("/gpfshome/fupj/wrf/data/nc/fnl_20130615_18_00.grib2.nc","r")
u=fnl_file->UGRD_P0_L100_GLL0(13,89:144,59:139)
v=fnl_file->VGRD_P0_L100_GLL0(13,89:144,59:139)
temp=fnl_file->TMP_P0_L100_GLL0(13,89:144,59:139)
temp=temp-273.15
ght=fnl_file->HGT_P0_L100_GLL0(13,89:144,59:139)
wks=gsn_open_wks("x11","PressureLevel")
res = True ; plot mods desired
res@mpFillOn = False ; turn off map fill
res@mpOutlineSpecifiers = (/"Continents"/)
res@mpDataSetName = "Earth..4" ; This database contains
; divisions for other countries.
res@mpDataBaseVersion = "MediumRes" ; Medium resolution database
res@mpMinLatF = 0.
res@mpMaxLatF = 55.
res@mpMinLonF = 60.
res@mpMaxLonF = 140.
res@mpGeophysicalLineThicknessF= 1. ; double the thickness of geophysical boundaries
res@mpNationalLineThicknessF= 1. ; double the thickness of national boundaries
delete(res@mpOutlineSpecifiers) ; about to change size of attribute, must delete
res@mpOutlineSpecifiers = (/"China:states","Philippines","India","Nepal","Bhutan","Bangladesh","Myanmar", \
"Thailand","Cambodia","Vietnam","Taiwan"/)
;map = gsn_csm_map_ce(wks,res)
;temp
opts=True
opts@ContourParameters = (/5.0/) ; set the contour levels
opts@tiMainString = "T/U @500hPa" ; set the main title
opts@cnLineColor="Red"
plot_temp=gsn_contour(wks,temp,opts)
;ght
opts_z = res
opts_z@cnLineColor = "Blue"
opts_z@gsnContourLineThicknessesScale = 3.0
plot_ght= gsn_contour(wks,ght,opts_z)
;wind vector
; sres = True ; set up a second resource list
; sres@gsnDraw = False ; do not draw the plot
; sres@gsnFrame = False ; do not advance the frame
; sres@cnLevelSelectionMode = "ExplicitLevels" ; use explicit levels
; sres@cnLevels = ispan(-5,35,5 ) ; set the contour levels
plot_v = gsn_vector(wks,u,v,False)
plot=wrf_map_overlays(wks,(/plot_temp,plot_ght,plot_v/),res)
end
想画天气图,不得解。跪求大神帮忙改下程序。
|
|