<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank you.<br><br>My script is attached.<br><br>Saiguran Loisulie<br>
Climate Systems Analysis Group<br>
Environmental and Geographical Science Department<br>
University of Cape Town<br>
Private Bag X3<br>
Rondebosch<br>
7701 <br>
SOUTH AFRICA<br>
<br>
CELL 0748 068 230<br><br>--- On <b>Fri, 12/31/10, Muhammad Rahiz <i><muhammad.rahiz@ouce.ox.ac.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Muhammad Rahiz <muhammad.rahiz@ouce.ox.ac.uk><br>Subject: Re: Making a Nested While Loop<br>To: "saiguranloi@yahoo.com" <saiguranloi@yahoo.com><br>Cc: "Muhammad Rahiz" <muhammad.rahiz@ouce.ox.ac.uk>, "GrADS Users" <gradsusr@gradsusr.org><br>Date: Friday, December 31, 2010, 9:36 AM<br><br><div class="plainMail">FYI, the script has been tested and it works fine. Can you include your <br>script in an attachment and describe exactly how you run it?<br><br>Also, go easy on the exclamation mark (!) - not necessary I would think...<br><br>-- <br>Muhammad Rahiz<br>Researcher & DPhil Candidate (Climate Systems & Policy)<br>School of Geography & the Environment<br>University of Oxford<br><br>On Fri, 31
Dec 2010, <a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a> wrote:<br><br>> I followed your procedure accurately;<br>><br>> Everything else worked except for the vpage options!<br>><br>> SET error: Missing or invalid arguments for VPAGE option<br>><br>> All the four images are overlaid on each other on the full page!<br>> Sent from my BlackBerry® smartphone from Zain Tanzania<br>><br>> -----Original Message-----<br>> From: Muhammad Rahiz <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>><br>> Date: Fri, 31 Dec 2010 15:30:58<br>> To: saiguran loisulie<<a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a>><br>> Cc: GrADS Users<<a ymailto="mailto:gradsusr@gradsusr.org"
href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> Subject: Re: Making a Nested While Loop<br>><br>> Saiguran,<br>><br>> The following script does as you require.<br>><br>> 'sdfopen ifile.nc'<br>><br>> mtot = 4<br>> m = 1<br>> while ( m < mtot +1 )<br>><br>> * labels for title<br>> s0 = ''DJF' 'MAM' 'JJA' 'SON''<br>> s1 = subwrd(s0,m)<br>><br>> * dimensions for 2x2 plot<br>> x1 = 11/2<br>> x2 = x1 + x1<br>> oo = 0.00<br>> y1 = 8.5/2<br>> y2 = y1 + y1<br>><br>> p1 = ''oo' 'x1' 'oo' 'x1''<br>> p2 = ''x1' 'x2' 'x1' 'x2''<br>> p3 = ''y1' 'y1' 'oo' 'oo''<br>> p4 = ''y2' 'y2' 'y1' 'y1''<br>><br>> a1 = subwrd(p1,m)<br>> a2 = subwrd(p2,m)<br>> a3 = subwrd(p3,m)<br>> a4 = subwrd(p4,m)<br>><br>> 'set t 'm''<br>> 'set vpage 'a1' 'a2' 'a3' 'a4''<br>> 'set lat -20 20'<br>> 'set lon 20 60'<br>> 'set grads off'<br>> 'set
mpdset mres'<br>> 'set gxout shaded'<br>> 'set clevs 288 290 292 294 296 298 300 304 306 308 310'<br>><br>> 'd tmax'<br>> 'd u10;v10'<br>> 'draw title 's1''<br>> 'run cbarn'<br>><br>> m = m +1<br>> endwhile<br>><br>> 'printim image.png white'<br>> 'quit'<br>><br>></div></blockquote></td></tr></table><br>