[gradsusr] Determining the max temp in a vertical layer.

Mike Dross mwdross at gmail.com
Thu Mar 7 10:56:34 EST 2013


Thank you both for your excellent responses. They will help me and hopefully
future grads users.  I will try them later today. 

 

Cordially,

 

-Mike 

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Muhammad Yunus Ahmad Mazuki
Sent: Wednesday, March 06, 2013 9:30 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] Determining the max temp in a vertical layer.

 

Using a daouble max will let you search in an area, while using triple max
will let you search in a volume. Using a singe max, you need to specifiy
specific lat and lon. 

'set lon 90'
'set lat 45'
'd max(temperature,lev=1000,lev=500)'
'd maxloc(temperature,lev=1000,lev=500)'
Or
'set lon 90'
'd max(max(temperature,lat=60,lat=20),lev=1000,lev=500)'
'd maxloc(max(temperature,lat=60,lat=20),lev=1000,lev=500)'
Or
'd max(max(max(temperature,lon=0,lon=90),lat=60,lat=20),lev=1000,lev=500)'
'd
maxloc(max(max(temperature,lon=0,lon=90),lat=60,lat=20),lev=1000,lev=500)'
 
You can also add one more max for t as well, but that is going to take more
processing time. Alternatively, you can also use amax for area maximum. I do
hope that soon, a volume max function will be added.



On Thu, Mar 7, 2013 at 1:45 AM, Jeff Duda <jeffduda319 at gmail.com> wrote:

What about just 
'd max(temperature,lev=1000,lev=500)'?

Jeff Duda

 

On Wed, Mar 6, 2013 at 11:14 AM, Stephen McMillan
<smcmillan at planalytics.com> wrote:

Mike,

 

I think the following is what you want, for example where the vertical
variable is tmpprs:

 

'd maxloc(tmpprs,lev=1000,lev=500)'

 

should return the z-level of the max temp between and including the two
levels.

 

Also see http://grads.iges.org/grads/gadoc/gradfuncmaxloc.html

 

Stephen Mc

 

On Wed, Mar 6, 2013 at 11:45 AM, Mike Dross <mwdross at gmail.com> wrote:

Hi,

 

I am trying to figure out how to find the maximum temperature in a vertical
layer, between the surface and 500 millibars.  I have searched through the
gradsusrs digest and can't

quite figure out how to do it. 

 

 Using the findlvl  gives you level of a certain value, but I want the
maximum value between two levels, and that function doesn't seem to do that.


 

 Ideally, I could do something like this 

 

d fndlvl (t, const(t,max), lev=psfc, lev=500)

and it would give me the max temp and the level it found it

Any help would be appreciated. 

 

Thanks in advance!

 

Cordially,

 

-Mike 

mwdross at gmail.com

 

 

 





-- 
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms




 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130307/78ee7903/attachment-0003.html 


More information about the gradsusr mailing list