;************************************************* ; NCL Graphics: polar_4.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/shea_util.ncl" ;************************************************ begin ;************************************************ ; read in netCDF file ;************************************************ a = addfile("uv300.nc","r") u = a->U(1,:,:) ; read July zonal winds ;************************************************ ; create plot ;************************************************ wks = gsn_open_wks("ps","polar") ; open a ps file plot = new(2,graphic) ; create graphic array res = True ; plot mods desired res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels res@cnMinLevelValF = -10. ; set min contour level res@cnMaxLevelValF = 35. ; set max contour level res@cnLevelSpacingF = 5. ; set contour spacing res@tiMainString = "CCM2 T42 July" ; plot title res@gsnCenterString = "300 mb" ; plot center string res@mpGridLatSpacingF = 45. ; change latitude line spacing res@mpGridLonSpacingF = 90. ; change longitude line spacing res@gsnDraw = False ; Do not draw plot res@gsnFrame = False ; Do not advance frome ;************************************************ ; first plot ;************************************************ res@gsnPolar = "NH" ; specify the hemisphere plot(0) = gsn_csm_contour_map_polar(wks,u, res) ; create plot object plot(0) = ShadeLtGtContour(plot(0),-4., 3, 31.,17) ;shade contours<-5 and >30 ;************************************************ ; second plot ;************************************************ res@gsnPolar = "SH" ; specify the hemisphere plot(1) = gsn_csm_contour_map_polar(wks,u, res) ; create plot object plot(1) = ShadeGeLeContour(plot(1),7.,20.,17) ; shade contours between 5 and 20 ;************************************************ ; panel plot ;************************************************ pres = True pres@gsnPanelYWhiteSpacePercent = 5 ; increase white space around ; indiv. plots in panel pres@gsnMaximize = True ; fill the page gsn_panel(wks,plot,(/2,1/),pres) ; create panel plot end