[gradsusr] how to get average of a country

Yaqiang Wang yaqiang.wang at gmail.com
Tue Apr 9 03:10:05 EDT 2013


You can make GrADS maskout data easily using MeteoInfo software which is
freely available at http://www.meteothinker.com/ .

1. Run MeteoInfo and load 'country1.shp' shape file as a polygon layer
(step_1.png).

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).

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).

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.

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.



On Tue, Apr 9, 2013 at 2:31 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:

> Dear Dr. Wang,
>
> 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.
>
> For example I want everage of a variable in Kenyan region, which is inside
> 34, 42, -5, 5
>
> Looking forward to getting help..
>
> Thank you..
>
> Regards,
>
> Kishore
>
>
> On Tue, Apr 9, 2013 at 11:36 AM, Yaqiang Wang <yaqiang.wang at gmail.com>wrote:
>
>> Using maskout function. A maskout grid data of the country is needed to
>> do it.
>>
>>
>> On Tue, Apr 9, 2013 at 12:29 PM, Kishore Ragi <kishoreragi at gmail.com>wrote:
>>
>>> Dear grads users,
>>>
>>> Is it possible to take average of a variable within the political
>>> boundary of a country?
>>>
>>> Please let me know if it is possible...
>>>
>>> Thank you ...
>>>
>>> Regards,
>>>
>>> Kishore
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>> *************************************************
>> Dr. Yaqiang Wang
>> Chinese Academy of Meteorological Sciences (CAMS)
>> 46, Zhong-Guan-Cun South Avenue
>> Beijing, 100081
>> China
>>
>> yaqiang.wang at gmail.com
>>
>> http://www.meteothinker.com
>> **************************************************
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
*************************************************
Dr. Yaqiang Wang
Chinese Academy of Meteorological Sciences (CAMS)
46, Zhong-Guan-Cun South Avenue
Beijing, 100081
China

yaqiang.wang at gmail.com

http://www.meteothinker.com
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result.png
Type: image/png
Size: 113097 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0015.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step_1.png
Type: image/png
Size: 63446 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0016.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step_2.png
Type: image/png
Size: 63649 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0017.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step_3.png
Type: image/png
Size: 20258 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0018.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step_4.png
Type: image/png
Size: 7737 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130409/0aefccd8/attachment-0019.png 


More information about the gradsusr mailing list