1 | ;*********************************************** |
---|
2 | ; plot_supercell_2.5km_wvel_xsec.ncl |
---|
3 | ; |
---|
4 | ; Version 1.0 |
---|
5 | ;*********************************************** |
---|
6 | |
---|
7 | load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" |
---|
8 | load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" |
---|
9 | load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" |
---|
10 | load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl" |
---|
11 | |
---|
12 | begin |
---|
13 | |
---|
14 | ;**************************************************************************** |
---|
15 | ; DO NOT EDIT ABOVE THIS LINE |
---|
16 | ;**************************************************************************** |
---|
17 | ; Read in data and store as follows: |
---|
18 | ; |
---|
19 | ; Output: |
---|
20 | ; w_2500m(lon, lat) |
---|
21 | ; 2D vertical velocity field at 2.5km altitude at 7200s (units m/s) |
---|
22 | ; |
---|
23 | ; Dimensions: |
---|
24 | ; lon: arbitrary |
---|
25 | ; lat: arbitrary |
---|
26 | ;---------------------------------------------------------------------------- |
---|
27 | |
---|
28 | data_file = "~/Documents/tempestmodel/test/dcmip2016/outSupercellTest-Agri/outU0.0000-01-01-2500m.nc" |
---|
29 | |
---|
30 | data = addfile(data_file,"r") |
---|
31 | |
---|
32 | w_2500m = data->W(24,0,:,:) |
---|
33 | |
---|
34 | ;**************************************************************************** |
---|
35 | ; DO NOT EDIT BELOW THIS LINE |
---|
36 | ;**************************************************************************** |
---|
37 | |
---|
38 | ;------------------------------------------------ |
---|
39 | ; Workspace |
---|
40 | ;------------------------------------------------ |
---|
41 | wks = gsn_open_wks("eps","plot_supercell_2.5km_wvel_xsec") |
---|
42 | |
---|
43 | gsn_merge_colormaps(wks,"temp_diff_18lev","sunshine_9lev") |
---|
44 | |
---|
45 | ;------------------------------------------------ |
---|
46 | ; Plot resources [options] |
---|
47 | ;------------------------------------------------ |
---|
48 | plot = new(1,graphic) |
---|
49 | |
---|
50 | ; Resources: |
---|
51 | res = True |
---|
52 | |
---|
53 | res@gsnDraw = False |
---|
54 | res@gsnFrame = False |
---|
55 | |
---|
56 | res@vpKeepAspect = True |
---|
57 | res@vpWidthF = 0.5 |
---|
58 | res@vpHeightF = 0.6 |
---|
59 | res@gsnMaximize = True |
---|
60 | res@gsnPaperOrientation = "portrait" |
---|
61 | |
---|
62 | res@cnFillOn = True |
---|
63 | res@cnLinesOn = True |
---|
64 | res@cnLineLabelsOn = False |
---|
65 | res@lbLabelAutoStride = True |
---|
66 | res@cnInfoLabelOn = False |
---|
67 | |
---|
68 | res@trXMinF = -45.0 |
---|
69 | res@trXMaxF = 30.0 |
---|
70 | |
---|
71 | res@trYMinF = -45.0 |
---|
72 | res@trYMaxF = 45.0 |
---|
73 | |
---|
74 | res@tmXBLabelsOn = True |
---|
75 | res@tmXBOn = True |
---|
76 | |
---|
77 | res@tmXBMode = "Explicit" |
---|
78 | res@tmXBValues = (/-45,-30,-15,0,15,30/) |
---|
79 | res@tmXBLabels = (/"45W","30W","15W","0","15E","30E"/) |
---|
80 | |
---|
81 | res@tmXBMinorOn = True |
---|
82 | res@tmXBMinorValues = (/-40,-35,-25,-20,-10,-5,5,10,20,25/) |
---|
83 | |
---|
84 | res@tmXTLabelsOn = True |
---|
85 | res@tmXTOn = True |
---|
86 | |
---|
87 | res@tmYLLabelsOn = True |
---|
88 | res@tmYLOn = True |
---|
89 | |
---|
90 | res@tmYLMode = "Explicit" |
---|
91 | res@tmYLValues = (/-45,-30,-15,0,15,30,45/) |
---|
92 | res@tmYLLabels = (/"45S","30S","15S","0","15N","30N","45N"/) |
---|
93 | |
---|
94 | res@tmYLMinorOn = True |
---|
95 | res@tmYLMinorValues = (/-40,-35,-25,-20,-10,-5,5,10,20,25,35,40/) |
---|
96 | |
---|
97 | res@gsnSpreadColors = True |
---|
98 | |
---|
99 | res@gsnContourZeroLineThicknessF = 0.0 |
---|
100 | res@gsnContourNegLineDashPattern = 1 |
---|
101 | |
---|
102 | res@gsnSpreadColorStart = 7 |
---|
103 | res@gsnSpreadColorEnd = 19 |
---|
104 | res@cnLevelSelectionMode = "ManualLevels" |
---|
105 | res@cnLevelSpacingF = 1.0 |
---|
106 | res@cnMinLevelValF = -10.0 |
---|
107 | res@cnMaxLevelValF = 20.0 |
---|
108 | |
---|
109 | plot(0) = gsn_csm_contour(wks, w_2500m(:,:), res) |
---|
110 | |
---|
111 | ;------------------------------------------------ |
---|
112 | ; Panel plot |
---|
113 | ;------------------------------------------------ |
---|
114 | |
---|
115 | pres = True |
---|
116 | pres@gsnPanelBottom = 0.1 |
---|
117 | pres@gsnPanelTop = 0.9 |
---|
118 | pres@gsnPanelYWhiteSpacePercent = 5 |
---|
119 | pres@gsnPanelXWhiteSpacePercent = 5 |
---|
120 | gsn_panel(wks, plot, (/1,1/), pres) |
---|
121 | |
---|
122 | end |
---|
123 | |
---|