Hello,
The skewT code was written when I first learned NCL.
It was not written with flexibility in mind. The following section plots
the cape parcel ascent [cape>0]. Maybe you could add something along
the lines of this section to accomplish your needs.
Unfortunately, I have several projects of my own
that need to be addressed so I can not be of much help.
if (localOpts@Cape .and. cape.gt.0.) then
gsOpts = True
gsOpts@gsLineColor = colCape
gsOpts@gsLineDashPattern = 1 ; 14
if (isatt(localOpts,"gsLineDashPatternCape")) then
gsOpts@gsLineDashPattern = localOpts@linePatternCape
end if
gsOpts@gsLineThicknessF = 2.0
yp = skewty (p)
xtp = skewtx (tpar, yp)
gsn_polyline (wks,skewt_bkgd,xtp(nlLfc:nlCross) \
, yp(nlLfc:nlCross),gsOpts)
delete (gsOpts)
end if
Good Luck
On 08/10/2011 05:23 PM, rzhang wrote:
> Dear Prof. Dennis Shea
>
> Wish you have a nice day!
>
> I'm a beginner of NCL program. When I plot the skewT-logP diagram using
> your code I found a problem that I can't solve on my own. I know that
> the program will draw the CAPE air parcel when CAPE is greater than 0.
> However, I would like to draw the ground surface air parcel even if the
> CAPE is less than 0. I tried several times but I didn't succeed. So I
> would like to ask you to give me some suggestions. I really appreciate
> your help.
>
>
> Best Wishes!
>
> Rong
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Aug 11 13:43:23 2011
This archive was generated by hypermail 2.1.8 : Fri Aug 12 2011 - 11:48:30 MDT