<div dir="ltr">I think what you're shooting for is to store the max value over the run. <div>I would do it with something like this:</div><div><br></div><div>'define maxvalue = if(reflectivity,>,maxvalue,reflectivity,maxvalue)'</div><div><br></div><div>I believe this IF/Then statement may be OpenGrads formatting, but the idea is if the current hour's reflectivity value is greater than what's stored in the variable you create called maxvalue, then store the current reflectivity value, otherwise keep maxvalue.</div><div>Done in an iteration over the run, this will keep replacing the value for a data point with the highest value in the run up to this point.</div><div><br></div><div>Depending on how your scripts are designed, if you need to store that, then run another script for the next hour, you can save the maxvalue to an .nc file, then open it up for comparison for the next forecast hour to do the next image. Then after doing the statement above, you re-save the .nc file with the updated maxvalue(s).</div><div><br></div><div>Or if it's all in one script, you don't need to read/write a NC file. But this should get you started.</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:small">Andrew Revering</div><div dir="ltr" style="font-size:small">Convective Development, Inc.<br><div><span style="font-size:12.8px">dba F5Weather</span></div><div>Minneapolis, MN USA<span style="font-size:12.8px"><br></span></div><div><a href="https://geotrack.email/ext/l?idx=E8D3UR4zLP0kZugxHkLH&ret=http%3A%2F%2Fwww.f5weather.com%2F" style="color:rgb(17,85,204)" target="_blank">http://www.f5weather.com/</a></div></div></div></div></div><br><div><div class="geotrack-signature"><table border="0" cellpadding="8" cellspacing="0" style="user-select:none;"><tbody><tr id="trSig"><td style="vertical-align:middle;padding:0"><a href="https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature" style="text-decoration:none"><img src="https://geotrack.email/img/icon32.png" alt="GeoTrack" width="24" height="24" style="margin-top:5px;"></a></td><td style="vertical-align:middle;padding-left:3px"><span style="color:#777">Sender notified with</span> <a href="https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature" style="color:#b22222" class="geoLink">GeoTrack</a></td></tr></tbody></table></div></div></div><img class="trackfx" height="0" width="0" alt="36" title="tfx-E8D3UR4zLP0kZugxHkLH-dG9ybmFkb2VzQGdtYWlsLmNvbQ==" src="https://geotrack.email/ext/E8D3UR4zLP0kZugxHkLH.png?gtk=dG9ybmFkb2VzQGdtYWlsLmNvbQ%3D%3D"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 24, 2022 at 3:45 PM Brian Bernard <<a href="mailto:brian.brianbernard@gmail.com">brian.brianbernard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Hello,</div><div dir="auto"><br></div><div dir="auto">Can anyone provide a sample script or advice on how I would plot in GrADS a radar swath (say from WRF) of multiple radar composite images on one plot.</div><div dir="auto"><br></div><div dir="auto">Say for example, at 15 hour of a WRF simulation, I'd plot all 15 hours on one image. Then at the final hour, for example 30, I'd plot all 30 hours on one plot.</div><div dir="auto"><br></div><div dir="auto">The website, HOPwrf shows exactly what I want to do with WRF ARW composite reflectivity. <a href="http://hopwrf.hopkinsschools.org/HopAheadWRF/index_1.html" target="_blank">http://hopwrf.hopkinsschools.org/HopAheadWRF/index_1.html</a>. Tom Hultquist calls it Max Run Composite Reflectivity.</div><div dir="auto"><br></div><div dir="auto">Thank you to anyone who can offer advice,</div><div dir="auto"><br></div><div dir="auto">Brian Bernard</div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div>