[gradsusr] 2D array loop

Jeff Duda jeffduda319 at gmail.com
Fri Jan 4 12:48:35 EST 2013


You'll find the scripting
language<http://www.iges.org/grads/gadoc/script.html>page of interest
in your work.  Specifically, arrays are referenced by
dots.  array.x.y = value in this case

For repetitive execution, the syntax is
while (condition)
...
...
...
endwhile

Jeff Duda

On Fri, Jan 4, 2013 at 6:08 AM, Filipa Varino <fcvarino at fc.ul.pt> wrote:

> Dear all****
>
> ** **
>
> I am trying to create a 2D array which is the sum of two variables, but I
> don’t know  how to do it in GRADS.****
>
> I would like to computed it for each lon and lat point. ****
>
> In Matlab it would look like:****
>
> ** **
>
> For X=1:10****
>
> For Y=1:10****
>
> ** **
>
> Var(X,Y)=A+B****
>
> ** **
>
> End****
>
> End****
>
> ** **
>
> Any idea?****
>
> ** **
>
> Thanks in advance****
>
> ** **
>
> Best Regards****
>
> ** **
>
> Filipa Varino  ****
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130104/381e6cb4/attachment-0003.html 


More information about the gradsusr mailing list