<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi, </div><div><br></div><div>I would use a loop function to loop through the timesteps &amp; create a time-average out of all the required values through each iteration.</div><div>Maybe it's also wise to place your lat/lon configuration separetely.</div><div><br>'set lat 14.8 14.8'</div><div>'set lon 120.4 121.9'</div><div><br></div><div>'define maxmaps = 3' *or whatever you want</div><div>'define counter = 0'</div><div><p>while ( counter&lt;maxmaps )<br>'set t ' counter</p><p>* Place script here<br></p><p>counter = counter+1<br>endwhile</p></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>Van: </b>"Lyndon Mark Olaguera" &lt;olagueralyndonmark429@gmail.com&gt;<br><b>Aan: </b>"GrADS Users Forum" &lt;gradsusr@gradsusr.org&gt;, "Jeff Duda" &lt;jeffduda319@gmail.com&gt;<br><b>Verzonden: </b>Vrijdag 6 februari 2015 14:51:14<br><b>Onderwerp: </b>[gradsusr] Plot Height vs an area averaged variable<br><div><br></div><div dir="ltr">Hello fellow grads users,<div><br></div><div style="" data-mce-style="">I would like to plot a vertical profile of moisture. In this case, I would like to plot the Height (y axis) vs the area average of this variable and also averaged in time (say from t=1 to t=3).Here's my sample script. Any ideas how to correct this? I got an error about the dimensions.</div><div style="" data-mce-style="">Thanks for the help,..</div><div style="" data-mce-style=""><br></div><div style="" data-mce-style=""><div>open BMJ.ctl'</div><div>'set display color white'</div><div>'c'</div><div>'set grid off'</div><div>'set grads off'</div><div>'set z 1 20'</div><div>'define qave=aave(qvapor,lon=120.4,lon=121.9,lat=14.4,lat=14.8)'</div><div>'define test=ave(qave,t=25,t=145)'</div><div>'d test'</div><div>'set x 1'</div><div>'set y 1'</div><div>'set grads off'</div><div>'set cint 1'</div><div><div>'set xaxis -3 3 0.5'</div><div>'draw ylab height'</div><div>'draw xlab test'</div><div>'draw title Global Average of U'</div><div>'printim test1.png'</div><div>'quit'</div></div><div><br></div><div style="" data-mce-style="">Lyndon</div></div></div><br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div><div><br></div></div></body></html>