On Wed, Jan 13, 2010 at 3:37 PM, Ming Pan <span dir="ltr">&lt;<a href="mailto:fallspinach@gmail.com">fallspinach@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Users/Developers,<br>
<br>
I&#39;m using grads-2.0.a7.oga.3 and trying to write a customized function<br>
to compute low-level cape. In this case, I need to loop over 3<br>
dimension x, y, and z, but it seems the current udf interface only<br>
allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar<br>
situation and came up with a solution/work-around?<br>
<br></blockquote><div><br></div><div>GrADS functions in general are only 2D. The opengrads extensions are limited by this GrADS requirement.   This only means that the output must be 2D. Internally, the function may be able to change the dimension environment and loop over other dimensions. Study the ave() function, for example. There other examples in libbjt.</div>
<div><br></div><div>    Arlindo</div><div><br></div><div><br></div></div><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>