ParNCLDeveloperInfo/SimpleParNCLScripts: plot_dim_avg.ncl

File plot_dim_avg.ncl, 517 bytes (added by jayesh, 7 years ago)

Plotting dim avg over time dimension

Line 
1load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
2load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
3begin
4fili = systemfunc("ls eul26x48x96.t[0-2].nc")  ; 1 files     
5
6setfileoption("nc","SuppressClose",False)
7
8; Read the files
9f = addfiles(fili, "r")
10
11; Read the variable T
12t = f[:]->T
13
14; Calculate dim avg on time dimension
15t_avg = dim_avg_n(t, 0)
16
17; Draw contour plot of t_avg, level = 0
18wks = gsn_open_wks("ps","parvis_cam_eulspec_plotter")
19plot = gsn_csm_contour_map(wks, t_avg(0,:,:),False)
20
21end