; =========================================== ; coneff_2.ncl ; =========================================== load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin ;============================================= ; data processing ;============================================= fili = "chi200_ud_smooth.nc" ; filename f = addfile (fili , "r") ; add file scale = 1.e6 ; scale factor chi = f->CHI ; get chi chi = chi/scale ; scale for convenience ; =========================== ; create plot ; =========================== wks = gsn_open_wks ("ps", "coneff") gsn_define_colormap(wks,"BlAqGrYeOrReVi200") ; choose colormap res = True ; plot mods desired res@tiMainString = "Pacific Region" ; title res@cnLevelSpacingF = 2. ; contour interval res@cnFillOn = True ; turn on color res@gsnSpreadColors = True ; Use full colormap res@gsnContourZeroLineThicknessF = 3.5 ; sets thickness of zero contour to 3.5 (default=1) plot = gsn_csm_hov(wks, chi(:,{100:220}), res) ; create plot end