<div dir="ltr">Hey Abayomi,<div style>The problem is with this line:</div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px">'define ho=loading.1(z=1,lon=2.375,</span><span style="font-family:arial,sans-serif;font-size:13px">lon=15.125,lat=2.375,lat=15.</span><span style="font-family:arial,sans-serif;font-size:13px">125)'</span><br style="font-family:arial,sans-serif;font-size:13px">
</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">As far as I know, you cannot display a variable using more than one dimension modification (i.e., you can only alter either z OR lat OR lon, but not more than one). Instead, set the dimension environment to fix each dimension before issuing the define command.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Jeff Duda</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Apr 13, 2013 at 3:40 PM, Abatan Abayomi <span dir="ltr"><<a href="mailto:yomiabatan69@gmail.com" target="_blank">yomiabatan69@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Dear All,<br><br></div>I am trying to make multiple plot (e.g. say 20) of a certain variable using parea in a loop. I ran into problem shown below. I need your help.<br>=========<br>No hardcopy metafile open<br>
All files closed; all defined objects released;<br>All GrADS attributes have been reinitialized<br>SET error: Missing or invalid arguments for PAREA option<br>Data Request Error: Invalid dimension expression<br> Attempt to set or modify varying dimension<br>
Variable = loading.1, Dimension = 0 <br> Error ocurred at column 1<br>DEFINE error: Invalid expression. <br>Syntax Error: Invalid Operand <br> 'ho' not a variable or function name<br> Error ocurred at column 1<br>
DISPLAY error: Invalid expression <br> Expression = ho<br>Hardcopy output file is closed <br>ga-> <br><br>==========<br></div>My script is shown here: <br>'reinit'<br>'set map 1 1 6'<br>'set font 4'<br>
'set mproj scaled'<br>*=======================<br><br>'sdfopen <a href="http://trial.nc" target="_blank">trial.nc</a>'<br>'q file'<br>'set display color white'<br>'c'<br>'set grid off'<br>
'set strmden 5'<br>
'set lat 2.375 15.125'<br>'set lon 2.375 15.125'<br>'set mpdset hires'<br>*--------------------<br>'set xlab off'<br>*'set xlab on'<br>*'set xlevs 4 8 12'<br>*--------------------<br>
'set ylab on'<br>'set ylevs 4 8 12'<br>'set grads off'<br>*-------------------------<br>dist_apart = 1.12<br>t1 = 0<br>row = 1<br>ylo = 7.08<br>yhi = 8.20<br>while(row<=1)<br>xlo = 0.42<br>xhi = 1.54<br>
col = 1<br>while(col <= 1)<br>t1 = t1 + 1<br>*'set lat 2.375 15.125'<br>*'set lon 2.375 15.125'<br>'set parea 'xlo 'xhi' 'ylo' 'yhi'<br>'set t 't1<br>'define ho=loading.1(z=1,lon=2.375,lon=15.125,lat=2.375,lat=15.125)'<br>
'set gxout shaded'<br>'d ho'<br>xlo = xhi<br>xhi = xhi + dist_apart <br>col = col + 1<br>endwhile<br>yhi = ylo<br>ylo = yhi - dist_apart <br>row = row + 1<br>endwhile<br>'close 1'<br>*'draw string 0.25 9.4 m'<br>
*'run <a href="http://cbarn.gs" target="_blank">cbarn.gs</a> 0.5 1 0.25 8.7'<br>*---------------------------------<br><br></div>Thank you,<br></div>Abayomi<br clear="all"><div><div><div><div><div><br>-- <br><br><br>
Trust in the Lord......<br>
*******************************************************************************************<br>* Abayomi A. Abatan * +1 515 572 4490 (Home) *<br>* Geo. and Atmos. Sci. * +1 515 294 1321 (Office) *<br>
* Iowa State University, Ames * +1 515 203 9020 (Cell) *<br>* Iowa. USA. * *<br>******************************************************************************************* <br>
<br>****************************************************************************************************<br>* Abayomi A. Abatan * 234-802-724-7846 (out of service) *<br>* Fed. Univ. of Tech., * 234-803-217-8815 (out of service) *<br>
* SEMS, PMB 704 Akure * *<br>* Ondo Nigeria. * *<br>
**************************************************************************************************** <br>
</div></div></div></div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>