forked from gavin971/NCL_meteorology_libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot-hgt-Satellite.ncl
45 lines (35 loc) · 1.04 KB
/
plot-hgt-Satellite.ncl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
begin
;;;;读取数据
f = addfile("./data/h300-197901-201412.nc", "r")
var := short2flt(f->hgt(0,{300},:,:))
wks = gsn_open_wks("eps","plot-hgt-Satellite")
gsn_define_colormap(wks,"amwg256")
res=True
res@gsnDraw = False
res@gsnFrame = False
res@gsnAddCyclic = True
;res@gsnMaximize = True
res@gsnLeftString = ""
res@gsnRightString = ""
; 投影类型
res@mpCenterLonF = 120.0 ; 图形中心经度及
res@mpCenterLatF = 50. ; 纬度
; color continents
; 海洋
; 内陆湖泊
; 陆地
; turn on continental outlines
;"Geophysical" ; 边界线。其他较常用的为“National”或“AllBoundaries”
;; 设置等值线
res@cnFillOn = False
res@cnInfoLabelOn = False
; 低值中心用“L”标记
; turn on L labels
; change L font
; 高值中心用“H”标记
; turn on L labels
; change L font
plot = gsn_csm_contour_map(wks,var,res)
draw(plot)
frame(wks)
end