;************************************************* ; ce_3.ncl ;************************************************ load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" ;************************************************ begin ;************************************************ ; open file and read in data ;************************************************ in = addfile("h_avg_Y0191_D000.00.nc","r") t = in->T ;************************************************ ; create plot ;************************************************ wks = gsn_open_wks("ps" ,"ce") ; open a ps file gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap res = True ; plot mods desired res@cnFillOn = True ; turn on color fill res@cnLinesOn = False ; turn of contour lines res@cnLevelSpacingF = 0.5 ; contour spacing res@gsnSpreadColors = True ; use full range of color map res@lbLabelStride = 4 res@pmTickMarkDisplayMode = "Always"; use NCL default lat/lon labels res@gsnAddCyclic = False ; data already has cyclic point ; this must also be set for any zoom ; note that the gsn_csm_*map_ce templates automatically set ; res@mpLimitMode="LatLon" for you. If you are plotting a different projection, ; you may have to set this resource. res@mpMinLatF = -60 ; range to zoom in on res@mpMaxLatF = 30. res@mpMinLonF = 30. res@mpMaxLonF = 120. plot = gsn_csm_contour_map_ce(wks,t(0,0,{-60:30},{30:120}), res) ;************************************************ end