[gradsusr] Average of a parameter
Mingxuan Chen
chen at atmos.colostate.edu
Wed Oct 1 14:07:45 EDT 2014
See you at Parking lot.
On Oct 1, 2014, at 10:21 AM, Andrew Friedman <andfried at gmail.com> wrote:
> Hi Thareh,
> As written, your script averages over space, not time.
> If you are trying to average over time, you should use an average of the form
> ‘ave(prate,t=517,t=643)'
> Also, if you’re trying to calculate a spatial average, I suggest using ‘aave’.
> Andrew
>
> On Oct 1, 2014, at 5:08 PM, T. haghroosta <haghroosta at hotmail.com> wrote:
>
>> Dear Andrew Friedman,
>> Thank you for your help.
>> In fact I would like to calculate average of sst during 10 years in special area for example lon=100 120 and lat= 0 7. Then I want to put the result in a text file.
>> I wrote this script:
>>
>> 'reinit'
>> 'sdfopen H:/prate.sfc.mon.mean.nc'
>> 'set t 517 643'
>> 'd ave(ave(prate,lon=100,lon=120),lat=0,lat=7)'
>> r1= subwrd(result,4)
>> say r1
>> 'close 1'
>> vars= r1
>> res=write('filename3.txt', vars ,append)
>>
>> but unfortunately I just got one number but I must see too many data. Is it possible to have average of SST during 10 years in special longitude and latitude. I mean I would like to have sst1 ( lon1&lat1), sst2 (lon2&lat2), ..... which averaged during 10 years.
>>
>> Regards,
>>
>> Thareh
>>
>>> Message: 2
>>> Date: Wed, 1 Oct 2014 11:10:44 +0200
>>> From: Andrew Friedman <andfried at gmail.com>
>>> Subject: Re: [gradsusr] Average of a parameter
>>> To: GrADS Users Forum <gradsusr at gradsusr.org>
>>> Message-ID: <85BC0AE9-7894-4048-9A70-9126D5993A61 at gmail.com>
>>> Content-Type: text/plain; charset=windows-1256
>>>
>>> Hi Thareh,
>>> Check out the ?ave? command: http://www.iges.org/grads/gadoc/gradfuncave.html
>>> Best, Andrew
>>>
>>> On Oct 1, 2014, at 9:16 AM, T. haghroosta <haghroosta at hotmail.com> wrote:
>>>
>>>> Dear All,
>>>>
>>>> Could anyone tell me how I can take the average of a parameter during 10 years? For example I would like to calculate 10-year average of SST in Grads.
>>>>
>>>> Best regards,
>>>> Thareh
>>>> _______________________________________________
>>>> 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
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list