Project

General

Profile

CDO inttime warning

Added by Rodrigo Sousa over 2 years ago

Hi guys,

I'm trying to do a time interpolation (30min) but it's not working.

I'm doing this:

cdo inttime,2022-04-04,00:00:00,30minutes ifile.nc ofile.nc

And I'm getting this output:

Warning: date/time out of time axis, no time step interpolated!
cdo inttime: Processed 12 variables over 1 timestep [0.02s 22MB].

This is the timestamps from ifile.nc:
cdo sinfo ifile.nc

File format : NetCDF2
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : ECMWF unknown v instant 1 1 676 1 F32 : 3.2.0
2 : ECMWF unknown v instant 1 1 676 1 F32 : 2.2.0
3 : ECMWF unknown v instant 1 2 676 1 F32 : 2.2.0
4 : ECMWF unknown v instant 1 2 676 1 F32 : 3.2.0
Grid coordinates :
1 : lonlat : points=676 (26x26)
lon : 322.8 to 325.3 by 0.1 degrees_east
lat : -4.7 to -7.2 by -0.1 degrees_north
Vertical coordinates :
1 : height : levels=1
height : 100 m
2 : height : levels=1
height_2 : 10 m
Time coordinate : 96 steps
RefTime = 2022-04-04 00:00:00 Units = hours Calendar = proleptic_gregorian
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2022-04-07 21:00:00 2022-04-08 00:00:00 2022-04-09 00:00:00 2022-04-10 00:00:00
2022-04-11 00:00:00 2022-04-04 00:00:00 2022-04-04 01:00:00 2022-04-04 02:00:00
2022-04-04 03:00:00 2022-04-04 04:00:00 2022-04-04 05:00:00 2022-04-04 06:00:00
2022-04-04 07:00:00 2022-04-04 08:00:00 2022-04-04 09:00:00 2022-04-04 10:00:00
2022-04-04 11:00:00 2022-04-04 12:00:00 2022-04-04 13:00:00 2022-04-04 14:00:00
2022-04-04 15:00:00 2022-04-04 16:00:00 2022-04-04 17:00:00 2022-04-04 18:00:00
2022-04-04 19:00:00 2022-04-04 20:00:00 2022-04-04 21:00:00 2022-04-04 22:00:00
2022-04-04 23:00:00 2022-04-05 00:00:00 2022-04-05 01:00:00 2022-04-05 02:00:00
2022-04-05 03:00:00 2022-04-05 04:00:00 2022-04-05 05:00:00 2022-04-05 06:00:00
2022-04-05 07:00:00 2022-04-05 08:00:00 2022-04-05 09:00:00 2022-04-05 10:00:00
2022-04-05 11:00:00 2022-04-05 12:00:00 2022-04-05 13:00:00 2022-04-05 14:00:00
2022-04-05 15:00:00 2022-04-05 16:00:00 2022-04-05 17:00:00 2022-04-05 18:00:00
2022-04-05 19:00:00 2022-04-05 20:00:00 2022-04-05 21:00:00 2022-04-05 22:00:00
2022-04-05 23:00:00 2022-04-06 00:00:00 2022-04-06 01:00:00 2022-04-06 02:00:00
2022-04-06 03:00:00 2022-04-06 04:00:00 2022-04-06 05:00:00 2022-04-06 06:00:00
2022-04-06 07:00:00 2022-04-06 08:00:00 2022-04-06 09:00:00 2022-04-06 10:00:00
2022-04-06 11:00:00 2022-04-06 12:00:00 2022-04-06 13:00:00 2022-04-06 14:00:00
2022-04-06 15:00:00 2022-04-06 16:00:00 2022-04-06 17:00:00 2022-04-06 18:00:00
2022-04-06 19:00:00 2022-04-06 20:00:00 2022-04-06 21:00:00 2022-04-06 22:00:00
2022-04-06 23:00:00 2022-04-07 00:00:00 2022-04-07 01:00:00 2022-04-07 02:00:00
2022-04-07 03:00:00 2022-04-07 04:00:00 2022-04-07 05:00:00 2022-04-07 06:00:00
2022-04-07 07:00:00 2022-04-07 08:00:00 2022-04-07 09:00:00 2022-04-07 10:00:00
2022-04-07 11:00:00 2022-04-07 12:00:00 2022-04-07 13:00:00 2022-04-07 14:00:00
2022-04-07 15:00:00 2022-04-07 16:00:00 2022-04-07 17:00:00 2022-04-07 18:00:00
cdo sinfo: Processed 4 variables over 96 timesteps [0.01s 21MB].

I attached my ifile.nc

Anyone can help?

Thanks in advance

ifile.nc (500 KB) ifile.nc

Replies (2)

RE: CDO inttime warning - Added by Rodrigo Sousa over 2 years ago

Rodrigo Sousa wrote:

Hi guys,

I'm trying to do a time interpolation (30min) but it's not working.

I'm doing this:

cdo inttime,2022-04-04,00:00:00,30minutes ifile.nc ofile.nc

And I'm getting this output:

Warning: date/time out of time axis, no time step interpolated!
cdo inttime: Processed 12 variables over 1 timestep [0.02s 22MB].

This is the timestamps from ifile.nc:
cdo sinfo ifile.nc

File format : NetCDF2
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : ECMWF unknown v instant 1 1 676 1 F32 : 3.2.0
2 : ECMWF unknown v instant 1 1 676 1 F32 : 2.2.0
3 : ECMWF unknown v instant 1 2 676 1 F32 : 2.2.0
4 : ECMWF unknown v instant 1 2 676 1 F32 : 3.2.0
Grid coordinates :
1 : lonlat : points=676 (26x26)
lon : 322.8 to 325.3 by 0.1 degrees_east
lat : -4.7 to -7.2 by -0.1 degrees_north
Vertical coordinates :
1 : height : levels=1
height : 100 m
2 : height : levels=1
height_2 : 10 m
Time coordinate : 96 steps
RefTime = 2022-04-04 00:00:00 Units = hours Calendar = proleptic_gregorian
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2022-04-07 21:00:00 2022-04-08 00:00:00 2022-04-09 00:00:00 2022-04-10 00:00:00
2022-04-11 00:00:00 2022-04-04 00:00:00 2022-04-04 01:00:00 2022-04-04 02:00:00
2022-04-04 03:00:00 2022-04-04 04:00:00 2022-04-04 05:00:00 2022-04-04 06:00:00
2022-04-04 07:00:00 2022-04-04 08:00:00 2022-04-04 09:00:00 2022-04-04 10:00:00
2022-04-04 11:00:00 2022-04-04 12:00:00 2022-04-04 13:00:00 2022-04-04 14:00:00
2022-04-04 15:00:00 2022-04-04 16:00:00 2022-04-04 17:00:00 2022-04-04 18:00:00
2022-04-04 19:00:00 2022-04-04 20:00:00 2022-04-04 21:00:00 2022-04-04 22:00:00
2022-04-04 23:00:00 2022-04-05 00:00:00 2022-04-05 01:00:00 2022-04-05 02:00:00
2022-04-05 03:00:00 2022-04-05 04:00:00 2022-04-05 05:00:00 2022-04-05 06:00:00
2022-04-05 07:00:00 2022-04-05 08:00:00 2022-04-05 09:00:00 2022-04-05 10:00:00
2022-04-05 11:00:00 2022-04-05 12:00:00 2022-04-05 13:00:00 2022-04-05 14:00:00
2022-04-05 15:00:00 2022-04-05 16:00:00 2022-04-05 17:00:00 2022-04-05 18:00:00
2022-04-05 19:00:00 2022-04-05 20:00:00 2022-04-05 21:00:00 2022-04-05 22:00:00
2022-04-05 23:00:00 2022-04-06 00:00:00 2022-04-06 01:00:00 2022-04-06 02:00:00
2022-04-06 03:00:00 2022-04-06 04:00:00 2022-04-06 05:00:00 2022-04-06 06:00:00
2022-04-06 07:00:00 2022-04-06 08:00:00 2022-04-06 09:00:00 2022-04-06 10:00:00
2022-04-06 11:00:00 2022-04-06 12:00:00 2022-04-06 13:00:00 2022-04-06 14:00:00
2022-04-06 15:00:00 2022-04-06 16:00:00 2022-04-06 17:00:00 2022-04-06 18:00:00
2022-04-06 19:00:00 2022-04-06 20:00:00 2022-04-06 21:00:00 2022-04-06 22:00:00
2022-04-06 23:00:00 2022-04-07 00:00:00 2022-04-07 01:00:00 2022-04-07 02:00:00
2022-04-07 03:00:00 2022-04-07 04:00:00 2022-04-07 05:00:00 2022-04-07 06:00:00
2022-04-07 07:00:00 2022-04-07 08:00:00 2022-04-07 09:00:00 2022-04-07 10:00:00
2022-04-07 11:00:00 2022-04-07 12:00:00 2022-04-07 13:00:00 2022-04-07 14:00:00
2022-04-07 15:00:00 2022-04-07 16:00:00 2022-04-07 17:00:00 2022-04-07 18:00:00
cdo sinfo: Processed 4 variables over 96 timesteps [0.01s 21MB].

I attached my ifile.nc

Anyone can help?

Thanks in advance

PS.: the ofile.nc is not created despite the warning

RE: CDO inttime warning - Added by Ralf Mueller over 2 years ago

hi!

The problem is in your input file:

cdo sinfov ifile.nc                                                                                                                [Fri 2022-04-22|10:26:31]
   File format : NetCDF2
    -1 : Institut Source   T Steptype Levels Num    Points Num Dtype : Parameter name
     1 : unknown  unknown  v instant       1   1       110   1  F32  : 10wd          
     2 : unknown  unknown  v instant       1   2       110   1  F32  : 75wd          
     3 : unknown  unknown  v instant       1   2       110   1  F32  : 95wd          
     4 : unknown  unknown  v instant       1   2       110   1  F32  : 95v           
     5 : unknown  unknown  v instant       1   2       110   1  F32  : 95u           
     6 : unknown  unknown  v instant       1   1       110   1  F32  : 10u           
     7 : unknown  unknown  v instant       1   1       110   1  F32  : 10v           
     8 : unknown  unknown  v instant       1   2       110   1  F32  : 95ws          
     9 : unknown  unknown  v instant       1   1       110   1  F32  : 10ws          
    10 : unknown  unknown  v instant       1   2       110   1  F32  : 75v           
    11 : unknown  unknown  v instant       1   2       110   1  F32  : 75u           
    12 : unknown  unknown  v instant       1   2       110   1  F32  : 75ws          
   Grid coordinates :
     1 : lonlat                   : points=110 (11x10)
                              lon : 323.6 to 324.6 by 0.1 degrees_east
                              lat : -4.8 to -5.7 by -0.1 degrees_north
   Vertical coordinates :
     1 : height                   : levels=1
                         height_2 : 10 m
     2 : height                   : levels=1
                           height : 100 m
   Time coordinate :
                             time : 96 steps
     RefTime =  2022-04-04 00:00:00  Units = hours  Calendar = proleptic_gregorian
  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss
  2022-04-07 21:00:00  2022-04-08 00:00:00  2022-04-09 00:00:00  2022-04-10 00:00:00
  2022-04-11 00:00:00  2022-04-04 00:00:00  2022-04-04 01:00:00  2022-04-04 02:00:00
  2022-04-04 03:00:00  2022-04-04 04:00:00  2022-04-04 05:00:00  2022-04-04 06:00:00
  2022-04-04 07:00:00  2022-04-04 08:00:00  2022-04-04 09:00:00  2022-04-04 10:00:00
  2022-04-04 11:00:00  2022-04-04 12:00:00  2022-04-04 13:00:00  2022-04-04 14:00:00

As you can see the first 5 timesteps refer to a later timestep than timestep 6. CDO expects a temporally sorted dataset to perform the interpolation.

If you ignore the first 5 timesteps, you call works:

cdo -inttime,2022-04-04,00:00:00,30minutes -seltimestep,6/-1 ifile.nc ofile.nc

hth
ralf

    (1-2/2)