-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplot.ncl
More file actions
21 lines (18 loc) · 791 Bytes
/
Copy pathplot.ncl
File metadata and controls
21 lines (18 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 "$GEODIAG_ROOT/geodiag.ncl"
begin
begin
;--- Open file and read in data
f = addfile("data_small_rotation.nc","r")
u = f->height(0,:,:)
wks = gsn_open_wks("png","plot") ; send graphics to PNG file
;---Set some resources for color contour lines
res = True
res@cnMonoLineColor = False ; Tells NCL not to draw contour lines in one color
res@cnLineColors = span_color_rgba ("NCV_jet",11) ; NCV_jet has 256 colors; span it to get 11 colors
res@cnLineThicknessF = 5.0 ; Make lines thicker
plot = gsn_csm_contour(wks,u,res)
end
end