Project

General

Profile

Days since last occurrence of a value

Added by Richard Dixon about 2 years ago

Hi,

I have a netcdf file of daily data (on a lat/lon grid) at 09Z every morning going back several years.

Just wondering if cdo was able to work out, going backwards in time through the data from the latest date, when the last time the 09Z value exceeded a certain threshold.

Essentially I want the output to be on the lat lon grid of "Time since last occurrence of > value")

Many thanks
Richard


Replies (1)

RE: Days since last occurrence of a value - Added by Estanislao Gavilan about 2 years ago

Hi Richard,

I do not understand why you want to go backward in time. If you want to output the date that satisfy a condition, you need to use conditions with cdo. There are a lot post on this forum about that -most of them related with precipitation. Take a look to this one using the operatior greater than a constant (-gtc).
https://code.mpimet.mpg.de/boards/2/topics/9338

cdo has many options, you need to take a look to the Documentation and related posts on this forum. They will give you an idea of how to solve your problem.

Kind regards,

Estanislao

    (1-1/1)