Project

General

Profile

Strange result from info command

Added by Brendan DeTracey over 2 years ago

$ cdo info zos_Omon_IPSL-CM6A-LR_ssp126_r2i1p1f1_gn_201501-201503.nc
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID
     1 : 2015-01-16 12:00:00       0   120184       0 :      16.000  4.2513e+09  1.1207e+10 : -1
     2 : 2015-01-16 12:00:00       0   120184   54890 :     -1.8744    -0.29960      1.0012 : -2
     3 : 2015-02-15 00:00:00       0   120184   54890 :     -1.8751    -0.30260      1.0124 : -2
     4 : 2015-03-16 12:00:00       0   120184   54890 :     -1.9273    -0.30536      1.0321 : -2
$ ncdump -v time zos_Omon_IPSL-CM6A-LR_ssp126_r2i1p1f1_gn_201501-201503.nc
{...
data:

 time = 15.5, 45, 74.5 ;
}
$ cdo -V
Climate Data Operators version 2.0.4 (https://mpimet.mpg.de/cdo)
System: x86_64-conda-linux-gnu
CXX Compiler: /home/conda/feedstock_root/build_artifacts/cdo_1645612593230/_build_env/bin/x86_64-conda-linux-gnu-c++ -std=gnu++14 -fPIC -DPIC -g -O2 -std=c++14 -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/brendan/miniconda3/envs/cmip/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/cdo_1645612593230/work=/usr/local/src/conda/cdo-2.0.4 -fdebug-prefix-map=/home/brendan/miniconda3/envs/cmip=/usr/local/src/conda-prefix -fopenmp -pthread
CXX version : unknown
C Compiler: /home/conda/feedstock_root/build_artifacts/cdo_1645612593230/_build_env/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/brendan/miniconda3/envs/cmip/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/cdo_1645612593230/work=/usr/local/src/conda/cdo-2.0.4 -fdebug-prefix-map=/home/brendan/miniconda3/envs/cmip=/usr/local/src/conda-prefix -fopenmp -pthread -pthread
C version : unknown
F77 Compiler: /home/conda/feedstock_root/build_artifacts/cdo_1645612593230/_build_env/bin/x86_64-conda-linux-gnu-gfortran -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/brendan/miniconda3/envs/cmip/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/cdo_1645612593230/work=/usr/local/src/conda/cdo-2.0.4 -fdebug-prefix-map=/home/brendan/miniconda3/envs/cmip=/usr/local/src/conda-prefix
F77 version : GNU Fortran (GCC) 9.4.0
Features: 125GB 24threads C++14 OpenMP45 Fortran PTHREADS HDF5 NC4/HDF5/threadsafe OPeNDAP UDUNITS2 PROJ XML2 MAGICS CURL FFTW3 SSE3
Libraries: HDF5/1.12.1 proj/8.2.1 xml2/2.9.12 curl/7.81.0 magics/4.10.0
CDI data types: SizeType=size_t  DateType=int64_t
CDI file types: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5
     CDI library version : 2.0.4
 cgribex library version : 2.0.1
 ecCodes library version : 2.24.2
  NetCDF library version : 4.8.1 of Aug 31 2021 00:05:39 $
    hdf5 library version : 1.12.1 threadsafe
    exse library version : 1.4.2
    FILE library version : 1.9.1

Replies (1)

RE: Strange result from info command - Added by George White over 2 years ago

https://cfconventions.org/cf-conventions/cf-conventions.html Example 7.5 shows time as "point" or "interval". In this case, `time` provides endpoints, and `time_bnds` gives the bounds for each interval.

% ncdump -v time_bnds zos_Omon_IPSL-CM6A-LR_ssp126_r2i1p1f1_gn_201501-201503.nc
{...
data:

 time_bnds =
  0, 31,
  31, 59,
  59, 90 ;
}

Quoting from the example: "It is sometimes desirable, however, to use the midpoint of intervals as coordinate values for variables that are representative of an interval. An application may simply obtain the midpoint values by making use of the boundary data in time_bnds." I see references to time_bnds in CMOR.cc from CDO-2.0.5, so maybe there is a way to tell the info operator to use time_bnds.

    (1-1/1)