<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">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">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>