- 积分
- 914
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-8-14
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-1-24 10:00:46
|
显示全部楼层
1 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
2 load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
3 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
4 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
5 begin
6 a = addfile("a.nc","r")
7 lat2d = a->XLAT(0,:,:)
8 lon2d = a->XLONG(0,:,:)
9 lat1d = lat2d(:,0)
10 lon1d = lon2d(0,:)
11 tt = wrf_user_getvar(a,"T2",0)
12 tt@lat2d = lat2d
13 tt@lon2d = lon2d
14 tt2 = rcm2rgrid_Wrap(lat2d,lon2d,tt,lat1d,lon1d,0)
15
16 wks = gsn_open_wks("png","sp_tmp")
17 wks@wkWidth = 2500
18 wks@wkHeight = 2500
19 res = True
20 res@gsnDraw = True
21 res@gsnMaximize = True
22 res@cnFillOn = True
23 res@cnLinesOn = False
24 res@gsnAddCyclic = False
24 res@gsnAddCyclic = False
25 res@mpMinLatF = 32.0
26 res@mpMaxLatF = 44.0
27 res@mpMinLonF = 110.0
28 res@mpMaxLonF = 130.0
29 res@mpDataBaseVersion="MediumRes"
30 res@mpDataSetName="Earth..4"
31 res@mpGeophysicalLineColor = "Black"
32 res@mpNationalLineColor = "Black"
33 res@mpGridLineColor = "Black"
34 res@mpLimbLineColor = "Black"
35 res@mpPerimLineColor = "Black"
36 res@mpUSStateLineThicknessF = 2
37 res@mpNationalLineThicknessF = 2
38 res@mpUSStateLineColor="Black"
39 res@mpOutlineSpecifiers="China:states"
40 ;deal with x/y
41 res@tmXBMode = "Explicit"
42 res@tmXBValues = (/110,120,130/)
43 res@tmYLMode = "Explicit"
44 res@tmYLValues = (/35,40 /)
45 ;adjst the fontsize of x/y
46 res@tmXBLabelFontHeightF = 0.025
47 res@tmYLLabelFontHeightF = 0.025
48 ; adjust the fontsize of colorbar
49 res@lbLabelFontHeightF = 0.025
50 plot = gsn_csm_contour_map(wks,tt,res)
51 end
|
|