; =========================================== ; hov_3.ncl ; =========================================== 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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.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:Select Pacific region via ; coordinate subscripting ; hatch all contours < 4 and stiple > 4 ; =========================== wks = gsn_open_wks ("ps", "hov") res = True ; plot mods desired res@gsnDraw = False ; don't draw yet res@gsnFrame = False ; don't advance frame yet res@tiMainString = "Pacific Region" ; title res@cnLevelSpacingF = 2. ; contour interval res@gsnContourZeroLineThicknessF = 2. ; doubles thickness of zero contour plot = gsn_csm_hov(wks, chi(:,{100:220}), res) ; create plot plot = ShadeLtGtContour(plot, -7, 3, 4.5, 17) ; add shading from <-8 and draw(wks) ; > 4 contours frame(wks) end