<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">All,
<div><br>
</div>
<div>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.&nbsp;</div>
<div><br>
</div>
<div>I can get the max to write out using this function:</div>
<div><br>
</div>
<div>
<div>count = 1</div>
<div>while (count &lt; 18)</div>
<div>'set e 'count</div>
</div>
<div>
<div>'areal=aave(maskout(ave(field88,t=1,t=6),mskgrd(t=1)),x=147,x=250,y=94.1815,y=182.057)'</div>
</div>
<div>
<div>'d areal'</div>
<div>areal=subwrd(result,4)</div>
</div>
<div>
<div>say areal</div>
<div>if (rc != 0) ; break ; endif</div>
<div>count = count &#43;1</div>
<div>endwhile</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>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).</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Robert</div>
</div>
</body>
</html>