<div dir="ltr">Abayomi,<div style>You have a few syntax errors in that line</div><div style><br></div><div style>What you have:</div><div style><span style="font-family:arial,sans-serif;font-size:13px">'set parea 'xlo 'xhi' 'ylo' 'yhi'</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">What it should be:</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">'set parea 'xlo' 'xhi' 'ylo' 'yhi</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">Note the addition and removal each of one ' symbol.</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</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Apr 13, 2013 at 4:34 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><div>Jeff, <br><br></div>Thank you for that comment. It is working now, but not doing exactly what I want. I am still having the problem with the parea:<br><br>SET error: Missing or invalid arguments for PAREA option<br>
SET error: Missing or invalid arguments for PAREA option<br><br>=======<br></div>Help me check if the quotes are properly placed, <br>'set parea 'xlo 'xhi' 'ylo' 'yhi'<br><br></div>Note: I had earlier defined xlo, xhi, ylo, and yhi. <br>
</div>I want to be able to plot a figure with say 12 panels, but what I am getting presently is 12 <br>different plots.<br><br></div>Thanks,<br>Abayomi <br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 4:07 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@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">Hey Abayomi,<div>The problem is with this line:</div><div><br></div><div><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><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><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><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><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">
<div><div>
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></div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>
<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 * <a href="tel:%2B1%20515%20572%204490" value="+15155724490" target="_blank">+1 515 572 4490</a> (Home) *<br>
* Geo. and Atmos. Sci. * <a href="tel:%2B1%20515%20294%201321" value="+15152941321" target="_blank">+1 515 294 1321</a> (Office) *<br>
* Iowa State University, Ames * <a href="tel:%2B1%20515%20203%209020" value="+15152039020" target="_blank">+1 515 203 9020</a> (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></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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><span><font color="#888888"><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>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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"><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>
<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>