;*********************** ; h_lat_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 fili = "mxclim.nc" ; filename f = addfile (fili , "r") ; add file u = f->U(0,:,:) ; get u for January wks = gsn_open_wks ("ps", "h_lat" ) ; open workstation ; =========================== ; Modify default plot with ; double Thickness of Zero contour and ; dashed negative lines ; =========================== res = True ; plot mods desired res@tiMainString = "Ensemble Average 1987-89" ; title res@cnLevelSpacingF = 8.0 ; contour level spacing res@gsnContourZeroLineThicknessF = 2. ; doubles thickness of zero contour res@gsnContourNegLineDashPattern = 1 ; sets negative contours to dash pattern 1 ; =========================== ; plot 1: default latitude range ; =========================== ; note u is already on pressure levels. If this were model data, it ; would be necessary to interpolate from the hybrid coordinates to ; pressure levels. plot = gsn_csm_pres_hgt(wks, u, res ) ; =========================== ; plot 2: latitude range from ; -90 to 90 ; =========================== plot = gsn_csm_pres_hgt(wks, add90LatX(u), res ) end