[gradsusr] regriding daily data to pentadal
Jennifer Adams
jma at cola.iges.org
Wed Feb 23 09:45:29 EST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110223/0adaada3/attachment-0003.html
More information about the gradsusr
mailing list