Project

General

Profile

From accumulative value to absolute daily value

Added by jay qiu over 6 years ago

Hi,

I have a cumulative rainfall dataset, now I would like to find the average rainfall of each month of each grid point in this dataset,
I have try "timselavg" and "timeselmean", and the output seems like not accumulative value but i don't know the output is correct or not
is there any operator can do something like 2nd_day_value - 1st_day_value = real_2nd_day_value
then I can use "monmean" to find what I want

Thanks,

Jay


Replies (1)

RE: From accumulative value to absolute daily value - Added by Ralf Mueller over 6 years ago

hi Jay!

My recommondation is:

1. You just drop the first timestep in your input

cdo delete,timestep=1 input.nc substractRight.nc

2. You drop the last timestep of your input
cdo delete,timestep=$(cdo ntime input.nc) input.nc substractLeft.nc

3. you substract them
cdo -sub substractLeft.nc substractRight.nc realValues.nc

hth
ralf

    (1-1/1)