[gradsusr] Script Problems

MY funnytyphoon at gmail.com
Fri Oct 22 09:16:47 EDT 2010


Hi,

math_*() functions are script functions, not GrADS internal functions,
so, it can't be used to 'define ' GrADS variables, which can be looked
as vectors ( with multi-dimensions). You can only use those math_*()
functions to define "script variables", for example,

pi=3.14159          ;* pi is script variable

a=math_int(pi)     ;* a is script variable, too

'set lon 0 360'
'set lat -90 90'
'define test='a      ;* define the GrADS variable test as constant values

++++++++++++++++++++++++++++++++++++++++++++++++++++
YING, Ming
Shanghai Typhoon Institute of China Meteorological Administration
166 Puxi Road, Xuhui District, Shanghai, 200030
PR China
++++++++++++++++++++++++++++++++++++++++++++++++++++





2010/10/22 Andrew Revering <andy at f5data.com>:
> This is a simple but annoying problem… I have an equation in a script…
>
>
>
> 'define MinCAPE = math_int(1.4 * hgt0deg - 5400)'
>
> if (MinCAPE < 200) ; MinCAPE = 200 ; endif
>
>
>
>
>
>
>
> I get an error saying math_int() is not a valid function….
>
> also the whole IF statement is completely ignored. No matter what I do, I
> still get negative values for MinCAPE.
>
>
>
> BTW…this is a unconventional method for me to determine if there is 'enough'
> CAPE to support a severe thunderstorm given the freezing level height in
> case anyone is wondering.
>
>
>
> Andrew Revering
>
> Convective Development, Inc.
>
> http://www.convectivedevelopment.com/
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>




More information about the gradsusr mailing list