Project

General

Profile

no time dimension after cdo sellonlatbox

Added by Martha Kogler about 5 years ago

Hallo,

I want to extract a region with: cdo sellonlatbox,8.7,10.6,47.2,48.5 inputfile outputfile
And that worked for me with similar data before. But with this data from ESGF I got an error:

Error (cdf_enddef): NetCDF: HDF error
HDF5-DIAG: Error detected in HDF5 (1.10.2) thread 0:
#000: H5T.c line 1734 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
Error (cdf_close): NetCDF: HDF error

- having a look at the outputfile with cdo sinfon, I see that there is no time dimension anymore:

Warning (cdf_check_vars): Number of time steps undefined, skipped variable time!
Warning (cdf_check_vars): Number of time steps undefined, skipped variable time_bnds!
cdo sinfon: Open failed on >tas_cut.nc<
Unsupported file structure

- this is my cdo version:

CDI library version : 1.9.3 of Mar 30 2019 18:37:13
CGRIBEX library version : 1.9.0 of Jan 22 2018 09:24:03
NetCDF library version : 4.6.1 of Mar 30 2019 18:29:41 $
HDF5 library version : 1.10.2
EXSE library version : 1.4.0 of Mar 30 2019 18:36:44
FILE library version : 1.8.3 of Mar 30 2019 18:36:33

I do not know how I should fix this error. Thank you for your help in advance!


Replies (2)

RE: no time dimension after cdo sellonlatbox - Added by Karin Meier-Fleischer about 5 years ago

Hi Martha,

with CDO version 1.9.5 I can reproduce your problem.

cdo sellonlatbox,8.7,10.6,47.2,48.5 tas_EUR-11_ICHEC-EC-EARTH_rcp26_r12i1p1_PIK-STARS3_v1-r1_day_20960101-21001231.nc ooo.nc

cdo sinfon ooo.nc 
   File format : NetCDF4 classic
    -1 : Institut Source   T Steptype Levels Num    Points Num Dtype : Parameter name
     1 : unknown  PIK-STARS3 v instant       1   1       169   1  F32  : tas           
   Grid coordinates :
     1 : curvilinear              : points=169 (13x13)
                              lon : 8.540395 to 10.71461 degrees_east
                              lat : 47.11481 to 48.57492 degrees_north
                        available : cellbounds
                          mapping : rotated_latitude_longitude
                             rlon : -6.265 to -4.945 by 0.11 degrees
                             rlat : -3.245 to -1.925 by 0.11 degrees
   Vertical coordinates :
     1 : surface                  : levels=1
   Time coordinate :  1826 steps
     RefTime =  1949-12-01 00:00:00  Units = days  Calendar = proleptic_gregorian  Bounds = true
  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss  YYYY-MM-DD hh:mm:ss
  2096-01-01 12:00:00  2096-01-02 12:00:00  2096-01-03 12:00:00  2096-01-04 12:00:00
  2096-01-05 12:00:00  2096-01-06 12:00:00  2096-01-07 12:00:00  2096-01-08 12:00:00
  2096-01-09 12:00:00  2096-01-10 12:00:00  2096-01-11 12:00:00  2096-01-12 12:00:00
  2096-01-13 12:00:00  2096-01-14 12:00:00  2096-01-15 12:00:00  2096-01-16 12:00:00
  2096-01-17 12:00:00  2096-01-18 12:00:00  2096-01-19 12:00:00  2096-01-20 12:00:00
  2096-01-21 12:00:00  2096-01-22 12:00:00  2096-01-23 12:00:00  2096-01-24 12:00:00
  2096-01-25 12:00:00  2096-01-26 12:00:00  2096-01-27 12:00:00  2096-01-28 12:00:00
  2096-01-29 12:00:00  2096-01-30 12:00:00  2096-01-31 12:00:00  2096-02-01 12:00:00
  2096-02-02 12:00:00  2096-02-03 12:00:00  2096-02-04 12:00:00  2096-02-05 12:00:00
  2096-02-06 12:00:00  2096-02-07 12:00:00  2096-02-08 12:00:00  2096-02-09 12:00:00
  2096-02-10 12:00:00  2096-02-11 12:00:00  2096-02-12 12:00:00  2096-02-13 12:00:00
  2096-02-14 12:00:00  2096-02-15 12:00:00  2096-02-16 12:00:00  2096-02-17 12:00:00
  2096-02-18 12:00:00  2096-02-19 12:00:00  2096-02-20 12:00:00  2096-02-21 12:00:00
  2096-02-22 12:00:00  2096-02-23 12:00:00  2096-02-24 12:00:00  2096-02-25 12:00:00
  2096-02-26 12:00:00  2096-02-27 12:00:00  2096-02-28 12:00:00  2096-02-29 12:00:00
   ................................................................................
   ................................................................................
   .........
  2100-11-04 12:00:00  2100-11-05 12:00:00  2100-11-06 12:00:00  2100-11-07 12:00:00
  2100-11-08 12:00:00  2100-11-09 12:00:00  2100-11-10 12:00:00  2100-11-11 12:00:00
  2100-11-12 12:00:00  2100-11-13 12:00:00  2100-11-14 12:00:00  2100-11-15 12:00:00
  2100-11-16 12:00:00  2100-11-17 12:00:00  2100-11-18 12:00:00  2100-11-19 12:00:00
  2100-11-20 12:00:00  2100-11-21 12:00:00  2100-11-22 12:00:00  2100-11-23 12:00:00
  2100-11-24 12:00:00  2100-11-25 12:00:00  2100-11-26 12:00:00  2100-11-27 12:00:00
  2100-11-28 12:00:00  2100-11-29 12:00:00  2100-11-30 12:00:00  2100-12-01 12:00:00
  2100-12-02 12:00:00  2100-12-03 12:00:00  2100-12-04 12:00:00  2100-12-05 12:00:00
  2100-12-06 12:00:00  2100-12-07 12:00:00  2100-12-08 12:00:00  2100-12-09 12:00:00
  2100-12-10 12:00:00  2100-12-11 12:00:00  2100-12-12 12:00:00  2100-12-13 12:00:00
  2100-12-14 12:00:00  2100-12-15 12:00:00  2100-12-16 12:00:00  2100-12-17 12:00:00
  2100-12-18 12:00:00  2100-12-19 12:00:00  2100-12-20 12:00:00  2100-12-21 12:00:00
  2100-12-22 12:00:00  2100-12-23 12:00:00  2100-12-24 12:00:00  2100-12-25 12:00:00
  2100-12-26 12:00:00  2100-12-27 12:00:00  2100-12-28 12:00:00  2100-12-29 12:00:00
  2100-12-30 12:00:00  2100-12-31 12:00:00
cdo sinfon: Processed 1 variable over 1826 timesteps [0.08s 24MB]

-Karin

RE: no time dimension after cdo sellonlatbox - Added by Karin Meier-Fleischer about 5 years ago

Sorry, there is a typo, it has to be 'I can't reproduce your problem'.

    (1-2/2)