[gradsusr] how to get average of a country

Kishore Ragi kishoreragi at gmail.com
Mon Apr 15 00:20:37 EDT 2013


sometimes, it is needed to give t values like

*'define mpdsi=aave(maskout(pdsi,mask.2(t=1)),lon=x1,lon=x2,lat=y1,lat=y2)'
*
*
*
*see if it works ....*


On Mon, Apr 15, 2013 at 9:47 AM, Kishore Ragi <kishoreragi at gmail.com> wrote:

> You check if your maskout data is same as your pdsi data ... If data
> values are different, it happens. Try to be careful when you are giving
> grid specification in Meteoinfo....
>
> Hope this solve your purpose..
>
> Best regards,
>
> Kishore
>
>
> On Sun, Apr 14, 2013 at 12:34 PM, <fairyes at zju.edu.cn> wrote:
>
>> Dear Kishore,
>>
>> I  followed with your suggestion and run the next check gs file:
>>
>> 'sdfopen d:/grads/mada/data.cdf'
>> 'open d:/grads/mada/maskout_china.ctl'
>> 'set lon 61.25 143.75'
>> 'set lat -8.75 56.25'
>>
>> 'set lev 0 0'
>> 'set e 1 1'
>> 'set t 114'
>> 'd maskout(pdsi,1)'
>> ;
>> It shows all the area instead of china. So I changed my gs file following
>> your suggestion, but it showed some errors as below:
>>
>> data request error: invalid grid coordinates
>>
>> world coordinates convert to non-integer grid coordinates
>>
>> variable=mask.2 dimension=3
>>
>> operation errer: error from maskout function and aave function and tloop
>> function
>>
>> and so on...
>>
>> then I checked mask.2:
>>
>> 'sdfopen d:/grads/mada/data.cdf'
>> 'open d:/grads/mada/maskout_china.ctl'
>> 'set lon 61.25 143.75'
>> 'set lat -8.75 56.25'
>>
>> 'set lev 0 0'
>> 'set e 1 1'
>> 'set t 114'
>> 'd maskout(pdsi,mask.2)'
>> ;
>>
>> well, it also showed some errors:
>>
>> data request error: invalid grid coordinates
>>
>> world coordinates convert to non-integer grid coordinates
>>
>> variable=mask.2 dimension=3
>>
>> operation errer: error from maskout function
>>
>> error ocurred at column 1
>>
>> display error: invalid expression
>>
>> expression= maskout(pdsi,mask.2)
>>
>>
>>
>> What's wrong with it? Does the ctl file I changed have some errors or
>> other problems?
>>
>> Thanks a lot! Best regards!
>>
>> Zhihong
>>
>>  Zhihong Zhuo,Postgraduate Student
>>
>>  College of Environmental and Resource Sciences, Zhejiang University
>>
>> Address: 866 Yuhangtan Road, Hangzhou, China
>>
>> Email: fairyes at zju.edu.cn
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130415/0926b005/attachment-0003.html 


More information about the gradsusr mailing list