Project

General

Profile

Is there a way to specify seltimestep from the last time step?

Added by ep gupal 4 months ago

I would like to know if it would be possible to specify n-th timestep from the last timestep. For example, if I want to select the last to 5-th from the last timesteps would it be possible to do something like

cdo selteimstep,-1/-5 in.nc out.nc ?

Does CDO allow this?

Thanks.


Replies (2)

RE: Is there a way to specify seltimestep from the last time step? - Added by Uwe Schulzweida 4 months ago

Yes, you must specify an ascending order of time steps here:

cdo selteimstep,-5/-1 in.nc out.nc

    (1-2/2)