<div dir="ltr">You can make GrADS maskout data easily using MeteoInfo software which is freely available at <a href="http://www.meteothinker.com/">http://www.meteothinker.com/</a> .<div><br></div><div style>1. Run MeteoInfo and load 'country1.shp' shape file as a polygon layer (step_1.png).</div>
<div style><br></div><div style>2. Zoom the map to Kenya. Press 'Select Features' tool and select Kenya. The selected feature will be viewed as yellow color (step_2.png).</div><div style><br></div><div style>3. Press 'Tools -> Output Map Data' menu, and set 'Map Layer' as 'country1.shp' and 'Output Format' as 'GrADS Maskout File'. The selected feature of Kenya is setting in 'Output Shapes' area automaticly (step_3.png).</div>
<div style><br></div><div style>4. Press 'Output' button and give the output GrADS maskout file name, and then set the output grid in appeared dialog. Click 'OK' button to finish the process (step_4.png). You should set the grid as same as your data.</div>
<div style><br></div><div style>In the result maskout data, the values of the grid points inside Kenya were set as 1 and the others were set as -1 (result.png). You may also need to change the 'TDEF' in maskout ctl file as same as your data. Of course, the maskout data of any region can be created with this method if the polygon shape file is available.</div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 2:31 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Dr. Wang,<div><br></div><div>Thank you for the info ... I have gone through some googling but,I can't understand how to do it. Could you please refer some material or give some example code.</div>
<div><br></div><div>For example I want everage of a variable in Kenyan region, which is inside 34, 42, -5, 5 </div><div><br></div><div>Looking forward to getting help..</div><div><br></div><div>
Thank you..</div><div><br></div><div>Regards,</div><div><br></div><div>Kishore</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 11:36 AM, 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"><div dir="ltr">Using maskout function. A maskout grid data of the country is needed to do it.</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Tue, Apr 9, 2013 at 12:29 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Dear grads users,<div><br></div><div>Is it possible to take average of a variable within the political boundary of a country?</div>
<div><br></div><div>Please let me know if it is possible...</div>
<div><br></div><div>Thank you ...</div><div><br></div><div>Regards,</div><div><br></div><div>Kishore</div></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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><span><font color="#888888"><br><br clear="all"><div><br></div>-- <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" target="_blank">yaqiang.wang@gmail.com</a><br><br><a href="http://www.meteothinker.com" target="_blank">http://www.meteothinker.com</a><br>
**************************************************
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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>
</div></div><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><br clear="all"><div><br></div>-- <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" target="_blank">yaqiang.wang@gmail.com</a><br><br><a href="http://www.meteothinker.com" target="_blank">http://www.meteothinker.com</a><br>
**************************************************
</div>