How to find global extremum?
Charles Seman
Charles.Seman at NOAA.GOV
Fri Mar 31 19:34:12 EST 2006
Witek,
Another way would be to use "set gxout stat" with loops over "z" and
"t"... please find attached a script "var_min_max.gs" (with also a
"pause.gsf" script...)
In the "var_min_max.gs" script, replace the "..." with your parameters...
----
*-----------------------------------------------------------------------
* Specify GrADS ctl file
*-----------------------------------------------------------------------
ctl_file = '...'
*-----------------------------------------------------------------------
* Specify names for min/max variables
*-----------------------------------------------------------------------
var_name = '...'
*-----------------------------------------------------------------------
* Specify time level number(s)...
*-----------------------------------------------------------------------
tlev = '...'
----
I hope this helps,
Chuck
Witold Interewicz wrote:
>Hello,
>I have 2D in space +1D in time (or better 3D in space + 1D in time) field, and I
>need to find global extrema of these fields. The result is needed in the form of
>number assigned to variable so that one could use it in code further in the
>script. How one could do that?
>(I didn't manage to use 'min' and 'max' functions. How to nest them properly?
>Should one use 'while' loop to iterate through remaining 1 or 2 dimensions?)
>Greetings
>Witek
>
>----------------------------------------------------
>Sharon Stone w filmie "Nagi Instynkt 2" w kinach od 29 marca!
>http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fnagi_instynkt.html&sid=712
>
>
--
********************************************************************
Charles Seman charles.seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060331/46b61f48/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: var_min_max.gs
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20060331/46b61f48/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pause.gsf
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20060331/46b61f48/attachment-0001.pl
More information about the gradsusr
mailing list