[gradsusr] How do I know which timestep in max(xx, t=x, t=y) is actually the max?

Roberto Mera RMera at ucsusa.org
Tue Jun 24 11:52:18 EDT 2014


All,

I'm trying to figure out a way to output the maximum temperature and RH in a 5-day period for a month in a superensemble.

I can get the max to write out using this function:

count = 1
while (count < 18)
'set e 'count
'areal=aave(maskout(ave(field88,t=1,t=6),mskgrd(t=1)),x=147,x=250,y=94.1815,y=182.057)'
'd areal'
areal=subwrd(result,4)
say areal
if (rc != 0) ; break ; endif
count = count +1
endwhile


However, if I also want the CONCURRENT RH, then I have to know which time step was the max for the temperature. Otherwise it might be a different time step if I do max(rh,t=1,t=6).

Is there a way to query which t in the max(temp,t=1,t=6) is the actual max? i.e. timestep 3. This way I can put it in a new script and get the appropriate rh.

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140624/3cc71fc8/attachment.html 


More information about the gradsusr mailing list