;************************************************* ; a default black and white plot with the default ; ncl labeling. All neg contour lines are dashed ; and the zero line is made to be double thickness. ;************************************************ load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" ;load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" load "./gsn_csm.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl" load "$HAO_NCL_LIB/halfzp2full.ncl" load "$HAO_NCL_LIB/axis.ncl" ;************************************************ begin ;************************************************ ; before the data can be plotted, there is a ; sequence of things that have to be done to it: ;************************************************ in = addfile("/chewy/d/murphys/files/pyrj001.nc","r") x = in->VN ; read in data x = halfzp("VN",x) ; convert to full zp t2plt = 0 ; time index to plot l2plt = 5 ; level value to plot ;************************************************ ; create plot ;************************************************ wks = gsn_open_wks("ps" ,"polar") ; open a ps file gsn_define_colormap(wks,"BlWhRe"); choose colormap res = True ; plot mods desired res@gsnPolar = "NH" ; choose hemisphere res@mpMinLatF = 40 ; mpMaxLatF for NH res@cnLineLabelPlacementMode = "constant" ; best line label mode title = "Perim lat = -30"+" zplev= "+in->lev({l2plt})+" UT = "+in->ut(t2plt) res@tiMainString = title res@cnFillOn = True ; add color res@gsnSpreadColors = True ; use full range of color map res@lbLabelAutoStride = True ; nice lb labels res@gsnDraw = False ; don't draw yet res@gsnFrame = False ; don't advance frame yet res@gsnPolarUT = in->ut(t2plt); turn on local time res@gsnPolarTime = True ; turn on local time plot = gsn_csm_contour_map_polar(wks,x(t2plt,{l2plt},:,:), res) plot = ZeroNegDashLineContour(plot) draw(plot) frame(wks) end