<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">The basemap script doesn’t mask out data values, it merely draws polygons on top of the graphics to mask them out in a visual sense. You need to create a mask with 1’s or missing values in your domain of interest, then apply that to your data then calculate the area average. <div>—Jennifer</div><div><br><div><br><div><br><div><div>On Feb 2, 2015, at 12:23 PM, Adv <<a href="mailto:advita6@gmail.com">advita6@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr"><div><div>Hi,<br><br></div>I would like to calculate area average only over Northern USA and only Over land region. Could someone help me to do this? How to maskout ocean region and calculate the values?<br>1)define mean4 = ave(pr.2,t=37,t=48)'<br><code>ave(aave(maskout(p,mask.3(t=1)),x=1,x=72,y=1,y=46),t=1,t=30) </code><br>'d mean4*86400'<br>'basemap O 0 0'<br>'basemap L 0 0'<br><br>2)Grads version i use: (GrADS) Version 2.0.a9<br>3) Linux version : <br>Linux M141647-Atmos 2.6.32-431.23.3.el6.x86_64<br><br></div><div>Thanks...<br></div><div><br><br></div><br></div>
</div><br></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline">
</div>
<br></div></div></div></body></html>