Dear NCL,
I just wonder why the "ShadeLtContour" function in my code
is not working. I want to shade my plot if the contour less than 1.
Here is my plot:
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
f = addfile("ly.nc","r") ; Read in first time step and
T = f->ly(:,:,:)
;T = T(lev|:,time|:,lat|:)
T = where(T.lt.0, 0, T)
;printVarSummary(TEMP)
;*******************************************************************************
wks = gsn_open_wks ("x11", "annualzonalmean" ) ; open
workstation
res = True ; plot mods desired
res@cnLineLabelsOn = True ; turn on line labels
res@cnFillOn = False ; turn on color fill
res@cnMonoFillColor = True
res@gsnLeftString = " "
res@gsnRightString = " "
res@gsnCenterString = " "
res@gsnContourZeroLineThicknessF = 0
res@cnLevelSpacingF = 1
res@cnMonoFillPattern = True
res@cnInfoLabelOn = False
;*******************************************************************************
;changing aspect ratio
;res@vpXF = 0.13 ; change x-scale
;res@vpWidthF = 0.75 ; change height and
width
;res@vpHeightF = 0.45
plot = gsn_csm_contour(wks,T(1000,:,:),res)
plot = ShadeLtContour(plot, 1, 3)
end
thank you
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 27 08:48:57 2013
This archive was generated by hypermail 2.1.8 : Mon Jul 01 2013 - 12:35:42 MDT