[gradsusr] Defining a variable one location at a time
Thomas Robinson
ter at hawaii.edu
Tue Sep 17 16:10:20 EDT 2013
Aloha GrADS users,
I am trying to create a variable (inv) in a script one point at a time.
I'm not sure how to do it.
ix=1
iy=1
iz=zz
while (iz < nz)
while (ix <= nx)
while (iy <= ny)
'set x ' ix
'set y ' iy
'set z ' zz
if (var'(z='iz')' < var '(z='iz+1')')
inv = var
else
inv = undef
endif
iy = iy + 1
endwhile
iy = 1
ix = ix + 1
endwhile
ix = 1
iz = iz + 1
endwhile
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.
-Tom
--
Tom Robinson
President - Graduate Student Organization
Graduate Student - Department of Meteorology
732-718-2323
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130917/e60b76e7/attachment-0003.html
More information about the gradsusr
mailing list