[gradsusr] regriding daily data to pentadal
Muhammad Rahiz
muhammad.rahiz at ouce.ox.ac.uk
Wed Feb 23 12:34:02 EST 2011
OK - regridding in time dimension. I was thinking of spatial
regridding...
--
Muhammad Rahiz
Researcher & DPhil Candidate (Climate Systems & Policy)
School of Geography & the Environment
University of Oxford
On Wed, 23 Feb 2011, Jennifer Adams wrote:
> Hi, Ismaila,
> This is basically a regridding operation in the time dimension. The only way to do this is
> the brute-force method of stepping through your daily time series, averaging five time steps
> together, and writing out the results to a new data file. You will have to decide what to do
> with the extra day in the case of a leap year. Your script might look something like this:
>
> 'set gxout fwrite'
> 'set fwrite -ap pentad.bin'
> tlast=365
> t=1
> while (t<tlast)
> 'set t 't
> 'd ave(var,t+0,t+4)'
> t=t+5
> endwhile
> 'disable fwrite'
>
> --Jennifer
>
>
> On Feb 22, 2011, at 8:00 AM, Ismaila Diallo wrote:
>
> Dear grads user,
> I have daily data in netcdf format and i went to transform them in pentadal data
> (cumul for every 5 day : example 1to 5, 6 to 10 ....). Does it a way for doing
> these transformation in grads.
> all suggestions are welcome.
> Thanks in advance
> ismaila
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
>
>
More information about the gradsusr
mailing list