<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class="">Many thanks. I will give it a try.</div><div class=""><br class=""></div><div class=""><br class=""><div class="">
Regards,<br class=""><br class="">Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)<br class="">Vice President of Operations<br class="">CustomWeather, Inc.<br class="">San Francisco, California, USA<br class=""><br class="">"Taking the World by Storm!"<br class=""><br class=""><a href="http://www.customweather.com" class="">http://www.customweather.com</a><br class="">http://www.myforecast.com<br class="">http://www.1stweather.com<br class=""><br class="">cell: 415-794-0411<br class="">work: 415-777-3566<br class="">email: klevey@customweather.com

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 1, 2018, at 4:31 PM, <a href="mailto:yaqiang.wang@gmail.com" class="">yaqiang.wang@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""></span>One solution is to create a maskout file using shape file. Here is a reference webpage: <span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;" class=""></span><a href="http://www.meteothinker.com/examples/meteoinfomap/grads_maskout.html" style="font-size: 10.5pt; line-height: 1.5; background-color: window;" class="">http://www.meteothinker.com/examples/meteoinfomap/grads_maskout.html</a><span style="font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);" class=""> .</span><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;" class=""> </span></div><span style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(0, 0, 0, 0);" class=""></span><span style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><div style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Regards</div><div style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Yaqiang</div><hr size="1" align="left" style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; width: 210px; height: 1px;" class=""><div style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""><div style="margin: 10px; font-family: verdana; font-size: 10pt;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">*************************************************</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">Dr. Yaqiang Wang</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">Chinese Academy of Meteorological Sciences (CAMS)</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">46, Zhong-Guan-Cun South Avenue</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">Beijing, 100081</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">China</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">             </span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><a href="mailto:yaqiang.wang@gmail.com" target="_blank" style="font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">yaqiang.wang@gmail.com</a><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class=""><a href="http://www.meteothinker.com/" target="_blank" style="font-family: 微软雅黑; font-size: 14px; line-height: 21px;" class="">http://www.meteothinker.com</a></div><div style="margin: 10px;" class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""><u class=""><font color="#0000ff" class=""><a href="https://www.researchgate.net/profile/Yaqiang_Wang5" class="">https://www.researchgate.net/profile/Yaqiang_Wang5</a></font></u></span><font face="verdana" size="2" class=""><span style="line-height: 19px;" class=""><br class=""></span></font><span style="font-family: 微软雅黑; font-size: 14px; color: rgb(136, 136, 136); line-height: 21px;" class="">**************************************************</span></div></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""> </div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0cm 0cm;" class=""><div style="padding: 8px; font-size: 12px; font-family: tahoma; background-color: rgb(239, 239, 239);" class=""><div class=""><b class="">From:</b> <a href="mailto:klevey@customweather.com" class="">Kevin Levey</a></div><div class=""><b class="">Date:</b> 2018-02-02 03:16</div><div class=""><b class="">To:</b> <a href="mailto:gradsusr@gradsusr.org" class="">GrADS Users Forum</a></div><div class=""><b class="">Subject:</b> [gradsusr] Calculating mean/max/min values within the boundaries an imported shapefile.</div></div></div><div class=""><div class="">THUE 01FEB18: 1115PST</div><div class=""> </div><div class="">All,</div><div class=""> </div><div class="">I've been a GRADS user for over 20 years and nothing stumps me more than the maskout functions. I really do go through the user groups and see how people have resolved their issues thanks to the many contributing users (and thanks to you all).</div><div class=""> </div><div class="">So, here is my problem that I've been at for the last few days.</div><div class=""> </div><div class="">I need to calculate the mean of any of my defined variables WITHIN the boundaries of a particular shapefile that I have imported (e.g. like a province in Spain).</div><div class=""> </div><div class="">Anyone be willing to offer a few lines of code. Everything I’ve tried does not seem to give me the answer I should be getting.</div><div class=""> </div><div class="">Many thanks in advance.</div><div class=""> </div><div class="">Regards,</div><div class=""> </div><div class="">Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div class="">Vice President of Operations</div><div class="">CustomWeather, Inc.</div><div class="">San Francisco, California, USA</div><div class=""> </div><div class="">"Taking the World by Storm!"</div><div class=""> </div><div class=""><a href="http://www.customweather.com/" class="">http://www.customweather.com</a></div><div class=""><a href="http://www.myforecast.com/" class="">http://www.myforecast.com</a></div><div class=""><a href="http://www.1stweather.com/" class="">http://www.1stweather.com</a></div><div class=""> </div><div class="">cell: 415-794-0411</div><div class="">work: 415-777-3566</div><div class="">email:<span class="Apple-converted-space"> </span><a href="mailto:klevey@customweather.com" class="">klevey@customweather.com</a></div><div class=""> </div><div class=""> </div><div class=""> </div><div class="">_______________________________________________</div><div class="">gradsusr mailing list</div><div class=""><a href="mailto:gradsusr@gradsusr.org" class="">gradsusr@gradsusr.org</a></div><div class=""><a href="http://gradsusr.org/mailman/listinfo/gradsusr" class="">http://gradsusr.org/mailman/listinfo/gradsusr</a></div></div></blockquote><span style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">gradsusr mailing list</span><br style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:gradsusr@gradsusr.org" style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">gradsusr@gradsusr.org</a><br style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://gradsusr.org/mailman/listinfo/gradsusr" style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://gradsusr.org/mailman/listinfo/gradsusr</a></div></blockquote></div><br class=""></div></body></html>