<div dir="ltr">Aloha GrADS users,<div><br></div><div>I am trying to create a variable (inv) in a script one point at a time. I'm not sure how to do it.</div><div><br></div><div><div>ix=1</div><div>iy=1</div><div>iz=zz</div>
<div>while (iz < nz)</div><div>while (ix <= nx)</div><div>while (iy <= ny)</div><div> 'set x ' ix</div><div> 'set y ' iy</div><div> 'set z ' zz</div><div> if (var'(z='iz')' < var '(z='iz+1')')</div>
<div> inv = var</div><div> else</div><div> inv = undef</div><div> endif</div><div>iy = iy + 1</div><div>endwhile</div><div>iy = 1</div><div>ix = ix + 1</div><div>endwhile</div><div>ix = 1</div><div>iz = iz + 1</div>
<div>endwhile</div><div><br></div><div>I don't think this is working. I'm wondering if there is a way to do something like this. I want the variable to be global for my domain, not just for one point.</div><div>
<br></div><div>-Tom</div><div><br></div><div><br></div>-- <br>Tom Robinson<br>President - Graduate Student Organization <br>Graduate Student - Department of Meteorology<br>732-718-2323<br>
</div></div>