I agree with Yaqiang's suggestion. The trick with this is that you need to have some additional information as to which lat/lon or which grid points in your domain are considered to be within the California borders. Grads does not have the intrinsic ability to do that. You'll have to supply your own data. I'm sure it wouldn't be hard to find some data for this. Good luck.<div>
<br></div><div>Jeff<br><div><br><div class="gmail_quote">On Mon, May 21, 2012 at 7:45 PM, Yaqiang Wang <span dir="ltr"><<a href="mailto:yaqiang.wang@gmail.com" target="_blank">yaqiang.wang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You need to produce a maskout data first in which the values of grid<br>
points inside California are positive and the others are negtive. Then<br>
use 'aave' function to get area average.<br>
<br>
On Tue, May 22, 2012 at 3:52 AM, rjmera <<a href="mailto:rjmera@coas.oregonstate.edu">rjmera@coas.oregonstate.edu</a>> wrote:<br>
> Hi, all. I've looked at some of the previous posts on this subject but I<br>
> wasn't sure if it covered what I wanted to do. What I'm trying to do is<br>
> to get area average for an irregular polygon. To be specific, the state<br>
> of California, for example. This would exclude other states in the<br>
> vicinity and the ocean. How should I proceed?<br>
><br>
> Robert<br>
><br>
> I'm using this version of grads:<br>
><br>
> Grid Analysis and Display System (GrADS) Version 2.0.a9.oga.1<br>
> Copyright (c) 1988-2010 by Brian Doty and the<br>
> Institute for Global Environment and Society (IGES)<br>
> GrADS comes with ABSOLUTELY NO WARRANTY<br>
> See file COPYRIGHT for more information<br>
><br>
> Config: v2.0.a9.oga.1 little-endian readline printim grib2 netcdf<br>
> hdf4-sds hdf5 opendap-grids,stn athena geotiff shapefile<br>
> Issue 'q config' command for more detailed configuration information<br>
> Loading User Defined Extensions table<br>
> </home/server/pi/homes/rjmera/grads/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/gex/udxt><br>
> ... ok.<br>
><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>
<br>
<br>
--<br>
*************************************************<br>
Dr. Yaqiang Wang<br>
Chinese Academy of Meteorological Sciences (CAMS)<br>
46, Zhong-Guan-Cun South Avenue<br>
Beijing, 100081<br>
China<br>
<br>
<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>
<br>
<a href="http://www.meteothinker.com" target="_blank">http://www.meteothinker.com</a><br>
**************************************************<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>
</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><br>
</div></div>