; =========================================== ; hov_5.ncl ; =========================================== load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" ; =========================================== begin f = addfile ("chi200_ud_smooth.nc","r") scale = 1.e6 ; scale factor chi = f->CHI ; get chi chi = chi/scale ; scale for convenience ;============================================== ; create color plot ;============================================= wks = gsn_open_wks ("ps", "hov" ) ; open ps file gsn_define_colormap(wks,"BlWhRe") ; choose colormap res = True ; plot mods desired res@cnFillOn = True ; turn on color fill res@gsnSpreadColors = True ; use full range of colors res@tiMainString = "Pacific Region" ; title res@cnLevelSelectionMode = "ManualLevels" ; manual contour levels res@cnMinLevelValF = -10. ; min level res@cnMaxLevelValF = 10. ; max level res@cnLevelSpacingF = 2. ; contour level spacing plot = gsn_csm_hov(wks, chi(:,{100:220}), res) end