[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #VEO-229733]: Error issue
- Subject: [IDV #VEO-229733]: Error issue
- Date: Wed, 31 Dec 2014 00:43:18 -0700
JP,
Your Python program came through garbled. At any rate, I reformatted it and got
your (CLC) formula to work.
A few suggestions:
"CLC" is both a function and a parameter name. This may or may not be a problem,
but it is somewhat confusing to reuse that identifier.
Are you sure your Jython is properly formatted with correct indentations?
You have defined a few functions but have you defined the formula that
references those functions? See the video "Creating a Jython Formula" to see
what I mean. http://goo.gl/n0Frpb
Best,
Unidata IDV Support
> def CLC(T): temp=noUnit(make2D(T))+273.15
> cc=6.11*exp((17.625*temp)/(temp+243.04)) return cc----------------------def
> UL(CLC,T,P): e=noUnit(make2D(CLC)) temp=noUnit(make2D(T))+273.15
> press=noUnit(make2D(P)) r=.622*e/(press-e) ul=2501000*r*9.81/(287*temp)
> return ul-----------------------def LL(CLC,T,P): cc=noUnit(make2D(CLC))
> temp=noUnit(make2D(T)) p=noUnit(make2D(P)) h=2501000 r=.622*cc/(p-cc)
> a=(h*h*r)/(462*temp) ll=1004+a return ll---------------------------def
> LR(UL,LL): ul=noUnit(make2D(UL)) ll=noUnit(make2D(LL)) lr=ul/ll return
> lr----------------------------def Apollo(LR,T,DP): lr=noUnit(make2D(LR))
> temp=noUnit(make2D(T)) dewp=noUnit(make2D(DP))
> x=1.1*5280*(temp-dewp)/(9.8-lr) return x
> JP Kalb
>
> On Monday, December 29, 2014 8:45 AM, Unidata IDV Support <address@hidden>
> wrote:
>
>
> JP,
>
> Please provide us with the formulas in question.
>
> Best,
>
> Unidata IDV Support
>
> > Full Name: JP Kalb
> > Email Address: address@hidden
> > Organization: SJSU
> > Package Version: 5.0u1 build date:2014-08-08 16:54 UTC
> > Operating System: Windows 7
> > Hardware: Java: home: C:\Users\metr166\IDV_5.0u1\jre version: 1.7.0_51
> > j3d:1.6.0-pre9-daily-experimental daily
> > Description of problem: Creating display: Color-Filled Contour Plan View
> > NameError: name 'CLC' is not defined
> > org.python.core.PyException
> >
> > I am getting an error in this code however
> > CLC is defined as well as the formula which is inputting CLC
> >
> > ******************
> > Stack trace:
> > Traceback (most recent call last):
> > File "<string>", line 1, in <module>
> > NameError: name 'CLC' is not defined
> >
> >
> >
>
>
> Ticket Details
> ===================
> Ticket ID: VEO-229733
> Department: Support IDV
> Priority: Normal
> Status: Closed
>
>
>
>
>
Ticket Details
===================
Ticket ID: VEO-229733
Department: Support IDV
Priority: Normal
Status: Closed