unsupported file type (library not support not compiled in)
Added by Alexander Koutsouris almost 7 years ago
Hi,
I have read some of the previous threads on this topic but I still don't manage to resolve the issue (i'm not well versed with Ubuntu).
when I try to use CDO for .nc file I get the message "unsupported file type (library not support not compiled in)". I assume this is due to that I'm using a netCDF4 file and the netCDF library was not compiled with netCDF4 support, and that this issue can be resolved by switching it on with the netcdf configure option --enable-netcdf4. But I'm still unsure how I do this. Where and in relation to what should I write this, if this is indeed the problem?
cdo -V gives:
Climate Data Operators version 1.6.2 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -pedantic -fPIC -pthread
version: gcc (Ubuntu/Linaro 4.8.2-4ubuntu1) 4.8.2
Compiled: by buildd on tipua (i686-pc-linux-gnu) Nov 15 2013 17:11:06
Features: PTHREADS Z JASPER PROJ.4 MAGICS
Libraries: proj/4.7
Filetypes: srv ext ieg grb grb2 nc
CDI library version : 1.6.2 of Nov 15 2013 17:10:54
GRIB_API library version : 1.10.4
netCDF library version : 4.1.3 of Apr 25 2018 13:33:54 $
HDF5 library version : 1.8.11
SERVICE library version : 1.3.1 of Nov 15 2013 17:10:34
EXTRA library version : 1.3.1 of Nov 15 2013 17:10:24
IEG library version : 1.3.1 of Nov 15 2013 17:10:30
FILE library version : 1.8.2 of Nov 15 2013 17:10:25
dpkg -s libhdf5-dev gives:
...Status: install ok installed...Version: 1.8.11-5ubuntu7...
nc-config --version gives:
netCDF 4.1.3
Thank you for your help
-Alex
Replies (4)
RE: unsupported file type (library not support not compiled in) - Added by Ralf Mueller almost 7 years ago
hi!
Could be that netcdf was not compiled with nc4 support. Since you work on ubuntu, you could switch to miniconda. Installation is really easy and you dont have to compile things on your own.
hth
ralf
RE: unsupported file type (library not support not compiled in) - Added by Alexander Koutsouris almost 7 years ago
Dear Ralf, thank you for your reply.
When I try to use cdo in the virtual environment of miniconda I still get "Unsupported file type (library support not compiled in)", even though I've installed netcdf4 as a package.
I also tried to install cdo as a package but I then got the error "PackagesNotFoundError: The following packages are not available from current channels: cdo"
Best
-Alex
RE: unsupported file type (library not support not compiled in) - Added by Ralf Mueller almost 7 years ago
could you upload the file - or at least parts of it if it's to large
RE: unsupported file type (library not support not compiled in) - Added by Ralf Mueller almost 7 years ago
have you added the conda-forgae channel with
conda config --add channels conda-forge