[gradsusr] Making a Nested While Loop

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Fri Dec 31 06:07:50 EST 2010



'sdfopen ssnclimERA-interim10.nc'
'set lat -20 20'
'set lon 20 60'
'set mpdset mres'
'set gxout shaded'
'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'

* enter the number of timesteps (mtot)
mtot = 12
m = 1
while ( m < 'mtot'+1 )

'set t 'm''
'd t2m'
'd u10;v10'
'run cbarn'
'printim plot.'m'.png white'

m = m +1
endwhile



Muhammad Rahiz
Researcher & DPhil Candidate (Climate Systems & Policy)
School of Geography & the Environment
University of Oxford

On Fri, 31 Dec 2010, saiguran loisulie wrote:

> Hi
> 
> I had never made a while loop in GrADS, I tried but I failed miserably!
> 
> Can someone help me make a while loop for the attached script?
> 
> Thank you in advance!
> 
> Saiguran Loisulie
> Climate Systems Analysis Group
> Environmental and Geographical Science Department
> University of Cape Town
> Private Bag X3
> Rondebosch
> 7701
> SOUTH AFRICA
> 
> CELL 0748 068 230
> 
>



More information about the gradsusr mailing list