<div dir="ltr">Hi dear,<div>Plz see the varying variables. It means you can not plot more than a 2D figure in grads.</div><div><br></div><div>Plz see below, I have underlined. <br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Aug 24, 2014 at 9:45 PM, Sahidul <span dir="ltr"><<a href="mailto:sahidul@gmail.com" target="_blank">sahidul@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>Dear sir,<br>I want to plot the diurnal variation of the difference between 2 different data files averaged over a rectangular area. I am using following script. It is showing error like <br><b>Operation error: Invalid dimension environment<br>
Too many varying dimensions</b><br><br>==================<br>'reinit'<br>'clear'<br>'open rh_ncep1.ctl'<br>'open rh_ncep3.ctl'<br>'open rh_ncep3.ctl'<br><br>'set parea 2 10 1.8 7.5'<br>
<u>
'set lat 22'</u> remove this line<br><u>'set lon 85'</u> Remove this line<br>'set xlopts 1 6 0.19'<br>'set ylopts 1 6 0.19'<br>'set map 1 1 6'<br><u>'set t 13 36'</u> take one time for one plot. I suppose, you want average. So plz follow as I have added.<br>
<u>'set z 2 14'</u><b> </b>same as above, plz try first taking any one z, for example, 'set z 2' <br>'set display color white'<br>
'set mpdset hires'<br>'set grads off'<br>'set grid off'<br>'set gxout shaded'<br>'set clevs -8 -6 -4 -2 0 2 4 6 8'<br></div></div></div></blockquote><div><font color="#ff0000">'define a1= ave(rh.1, t=13, t=36)'</font></div>
<div><font color="#ff0000">'define a2= ave(rh.2, t=13, t=36)' </font></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><font color="#ff0000">'d aave((a1-a3),lon=70,lon=100,lat=17,lat=25)'</font><br>
'draw ylab height(km)'<br>
'draw title diff RH(%) with height levels'<br>'print file.eps'<br>'!convert file.eps ./ncep1_cep3.jpg'<br>'quit'<br>==================<br></div>Please help<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div><span class="HOEnZb"><font color="#888888">-Sahidul<br></font></span></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>Regards</div><div>Sridhara</div>
</div></div></div>