Calculate daily precipitation between 12pm and 12pm of the other day
Added by Fernando Forgioni almost 2 years ago
I have a .nc file that contains data every 6 hour of precipitation, my interest is to add the daily precipitation. But for this I have to take into account the precipitation between 12 pm on one day and 12 pm on the other, so I cannot apply "daysum" of cdo. Any suggestion?
Replies (3)
RE: Calculate daily precipitation between 12pm and 12pm of the other day - Added by Karin Meier-Fleischer almost 2 years ago
Hi Fernando,
why do you think you cannot use daysum to compute the daily precipitation?
day 1: 00:00 - 23:59:59
day 2: 00:00 - 23:59:59
...
RE: Calculate daily precipitation between 12pm and 12pm of the other day - Added by Fernando Forgioni almost 2 years ago
I want to compare these data with precipitation observations. And The observation data, for example, is computed as 11/1/2023 is the accumulated precipitation data that goes from 10/1/2023 at 12:01 UTC to 12:00 UTC on 1/11/2023.
I have been working with data at hourly rate (24 data per day) and solved it using cdo shifttime,-12hours -daysum -shifttime,12hours in.nc out.nc. However this new data set has only 4 steps per day 00:00, 00:06, 12:00, 18:00. That is why I have the question of how to achieve what I did before by moving the time steps 12 hours.
RE: Calculate daily precipitation between 12pm and 12pm of the other day - Added by Karin Meier-Fleischer almost 2 years ago
You can do the same to shift the time. It doesn't matter if there are 24 time steps (1h) or only 4 (6h), you can shift the time as needed.