Hi,<div>Assuming you have lon1 and lat1 defined, you need to put the coordinate expressions in quotes. For example:</div><div><br></div><div><div>lon1=121.5;lat1=27.9</div><div>'define u200=aave(UGRDprs,lon='lon1-10',lon='lon1+10',lat='lat1-10',lat='lat1+10')'</div>
<div><br></div><div>Good luck--</div><div>Stephen Mc</div><br><div class="gmail_quote">2012/4/4 lz007700 <span dir="ltr"><<a href="mailto:lz007700@163.com">lz007700@163.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear GrADS Users,<br><br>I'm trying to calculate the area average wind ,when I use the function (aave) in gs,as follows:<br>'define u200=aave(UGRDprs,lon=lon1-10,lon=lon1+10,lat=lat1-10,lat=lat1+10)'<br>
it prompt such warnings "Syntax Error: Invalid dimension expression<div> Dimension value missing or invalid</div>Error from AAVE: Invalid dimension expression"<br>lon1,lat1 has been transformed to real number,not character.<br>
IS it must be specific numeral when we use function(aave)?<br>when I define u200 as follows:<br>'define u200=aave(UGRDprs,lon=111.5,lon=131.5,lat=17.9,lat=37.9)' <br>it works.why?
</div><br><br><span title="neteasefooter"><span></span></span><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></div>
<pre>***************************************************
The information contained in this e-mail message
is intended only for the use of the recipient(s)
named above and may contain information that is
privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not
review, copy or distribute this message. If you have
received this communication in error, please notify
the sender immediately by e-mail, and delete the original message.
***************************************************