timpctl Assertion `histStep > 0.0f' failed
Added by James Ciarlo over 1 year ago
Hi,
I have a dataset of daily pr and I have been trying to run the timpctl,99 but I am getting an unfamiliar error.
cdo timpctl,99 1995.nc min.nc max.nc timpctl.nc
cdo: percentiles_hist.cc:61: int calc_bin(int, float, float, float): Assertion `histStep > 0.0f' failed.
Aborted
When I assess different years, some give the error and some don't. I tried splitting the 1995 file in 4 chunks but none of them got the error.
I have attached the sample files.
Can anyone provide me with some more insight into resolving this error?
Thanks
James
Replies (2)
RE: timpctl Assertion `histStep > 0.0f' failed - Added by Karin Meier-Fleischer over 1 year ago
Hi James,
I am not able to reproduce your error with version 2.0.5 and 2.2.0.
RE: timpctl Assertion `histStep > 0.0f' failed - Added by James Ciarlo over 1 year ago
Following your comment I tested it on another computer that has a different version of CDO and it worked.
I am not sure why, maybe this helps in the future:
the one that worked:
cdo --version
Climate Data Operators version 2.0.5 (https://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: icpc -std=gnu++14 -g -O2 -fopenmp -pthread
CXX version : icpc (ICC) 19.1.3.304 20200925
C Compiler: icc -g -O2 -fopenmp -pthread -pthread
C version : icc (ICC) 19.1.3.304 20200925
F77 Compiler: ifort -g
F77 version : ifort (IFORT) 19.1.3.304 20200925
Features: 124GB 36threads C++14 OpenMP45 Fortran PTHREADS HDF5 NC4/HDF5 OPeNDAP SZ UDUNITS2 PROJ CURL FFTW3 SSE2
Libraries: HDF5/1.13.1 proj/9.0.1 curl/7.83.1
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.5
cgribex library version : 2.0.1
ecCodes library version : 2.26.0
NetCDF library version : 4.9.0 of Jun 23 2022 19:06:39 $
hdf5 library version : 1.13.1
exse library version : 1.4.2
FILE library version : 1.9.1
the one that produced the error:
cdo --version
Climate Data Operators version 2.2.0 (https://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: g++ -g -O2 -fopenmp -pthread
CXX version : g++ (GCC) 11.2.0
C Compiler: gcc -g -O2 -fopenmp -pthread -pthread
C version : gcc (GCC) 11.2.0
F77 Compiler: ifort -g
F77 version : ifort (IFORT) 18.0.2 20180210
Features: 31GB 16threads c++17 OpenMP45 Fortran pthreads HDF5 NC4/HDF5 OPeNDAP sz udunits2 proj xml2 fftw3 sse2
Libraries: yac/2.6.1 NetCDF/4.8.1 HDF5/1.12.1 proj/8.2.0 xml2/2.9.1
CDI data types: SizeType=size_t
CDI file types: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5 nczarr
CDI library version : 2.2.1
cgribex library version : 2.1.0
ecCodes library version : 2.24.0
NetCDF library version : 4.8.1 of Mar 10 2022 12:22:27 $
exse library version : 1.5.0
FILE library version : 1.9.1