Hi Dennis:
Thank you very much for your help!
Sorry for my last email with a wrong subject. I clicked the wrong one to reply.
I tried your suggestion. It still does not work. Please see my script below. My ncl version is V.5.2. The information after the run is:
warning:Attempt to reference attribute (Cape) which is undefined
(0) -999
warning:Attempt to reference attribute (Cape) which is undefined
(0) -999
Regards
Ed
;*************************
;ncl script
;**************************
wks = gsn_open_wks ("x11", "skewt_test_new")
; --- Create background skew-T; plot sounding ---------------------
skewtOpts = True
skewtOpts@DrawColAreaFill = True ; default is False
skewtOpts@tiMainString = "Raob Data; No Winds"
dataOpts = True ; no options
dataOpts@PrintZ = True
skewt_bkgd = skewT_BackGround (wks, skewtOpts)
skewt_data = skewT_PlotData (wks, skewt_bkgd, pp,tt,tc,h \
, wsp,dir, dataOpts)
draw (skewt_bkgd)
draw (skewt_data)
frame(wks)
print(skewt_bkgd@Cape)
print(skewt_data@Cape)
--- On Mon, 2/27/12, Dennis Shea <shea@ucar.edu> wrote:
> From: Dennis Shea <shea@ucar.edu>
> Subject: Re: skewt
> To: "Yang Yang" <yang123yang@yahoo.com>
> Date: Monday, February 27, 2012, 1:24 PM
> Use
> skewt_bkgd@Cape
>
> On 2/26/12 6:15 PM, Yang Yang wrote:
> > Hello:
> >
> > In the description of skewt, it shows:
> > Example: Let skewT be the returned object. The data mat
> be retrieved via:
> > cape = skewT@Cape
> > pwat = skewT@Pwat
> >
> > I wrote the following in my script as:
> > ;...............
> > skewt_bkgd = skewT_BackGround (wks,
> skewtOpts)
> > skewt_data =
> skewT_PlotData (wks, skewt_bkgd, pp,tt,tc,h
> \
> >
>
> , wsp,dir, dataOpts)
> > draw (skewt_bkgd)
> > draw (skewt_data)
> > frame(wks)
> > print(skewt_data@Cape)
> > ;.........................
> >
> > However, when I run it, I got the following
> information:
> > warning:Attempt to reference attribute (Cape) which is
> undefined
> > (0) -999
> >
> > But the CAPE value was shown in the diagram generated
> by my script.
> >
> > Can you tell me what is wrong? I use NCL
> > Copyright (C) 1995-2010 - All Rights
> Reserved
> > University Corporation for Atmospheric
> Research
> > NCAR Command Language Version 5.2.0
> > The use of this software is governed
> by a License Agreement.
> > See http://www.ncl.ucar.edu/ for more
> details.
> >
> > Thank you very much!
> >
> > Ed
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 27 16:02:20 2012
This archive was generated by hypermail 2.1.8 : Mon Mar 05 2012 - 14:12:07 MST