Project

General

Profile

Unsupported file structure error with CORDEX netcdf file.

Added by Ahmed Homoudi over 3 years ago

Hello people!

I'm trying to crop+ reproject CORDEX data from WAS domain. the command I'm using is:


cdo -remapbil,proj_WAS.txt infile outfile

It works perfectly for all the files expect for eastward wind and gives this error:

cdo sinfo ua850_WAS-22_NCC-NorESM1-M_historical_r1i1p1_CLMcom-ETH-COSMO-crCLIM-v1-1_v1_6hr_2005010100-2005123118.nc
Warning (cdf_read_xcoord): Unsupported array structure, skipped variable ua850!

cdo sinfo: Open failed on >ua850_WAS-22_NCC-NorESM1-M_historical_r1i1p1_CLMcom-ETH-COSMO-crCLIM-v1-1_v1_6hr_2005010100-2005123118.nc<
Unsupported file structure

It has something to do with netCDF4 enabling as far as I know !! but when I check my cdo version :

$ cdo -V
Climate Data Operators version 1.9.3 (http://mpimet.mpg.de/cdo)
CXX Compiler: g++ -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -fopenmp 
CXX version : g++ (Ubuntu 7.3.0-1ubuntu1) 7.3.0
C Compiler: gcc -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -fPIC -fopenmp 
C version : gcc (Ubuntu 7.3.0-1ubuntu1) 7.3.0
F77 Compiler: f77 -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong
F77 version : unknown
Features: 15GB C++14 Fortran DATA PTHREADS OpenMP45 HDF5 NC4/HDF5/threadsafe OPeNDAP SZ UDUNITS2 PROJ.4 MAGICS CURL FFTW3 SSE2
Libraries: HDF5/1.10.0 proj/4.93 curl/7.58.0
Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5 
     CDI library version : 1.9.3
GRIB_API library version : 2.6.0
  NetCDF library version : 4.6.0 of Feb  9 2018 19:21:24 $
    HDF5 library version : library undefined
    EXSE library version : 1.4.0
    FILE library version : 1.8.3

I really don't know where the problem is located !!

Thanks in advance :)


Replies (6)

RE: Unsupported file structure error with CORDEX netcdf file. - Added by Ralf Mueller over 3 years ago

hi Ahmed!

please update some sample of the data.

cheers
ralf

RE: Unsupported file structure error with CORDEX netcdf file. - Added by Ahmed Homoudi over 3 years ago

Hi Ralf,

I could not provide it earlier because the file is big, and cdo gives the same error as above when I try to select timesteps.
Attached an example file cropped with NCO command ncks -F -d time,1,10 infile outfile

The problem is still there :

$ cdo sinfon exampl.nc 
Warning (cdf_read_xcoord): Unsupported array structure, skipped variable ua850!

cdo sinfon: Open failed on >exampl.nc<
Unsupported file structure

Cheers,
Ahmed

exampl.nc (4.01 MB) exampl.nc

RE: Unsupported file structure error with CORDEX netcdf file. - Added by Uwe Schulzweida over 3 years ago

The dimensions of the grid and the data array differ:

dimensions:
    y = 260 ;
    x = 386 ;
    rlat = 240 ;
    rlon = 366 ;

RE: Unsupported file structure error with CORDEX netcdf file. - Added by Ahmed Homoudi over 3 years ago

Hi Uwe,

Thanks for the hint, I checked the other working files and they have :

dimensions:
    time = UNLIMITED;   // (1460 currently)
    rlon = 366;
    rlat = 240;

Any ideas on removing y and x terms from the unsupported files ?

Cheeers,
Ahmed

RE: Unsupported file structure error with CORDEX netcdf file. - Added by Uwe Schulzweida over 3 years ago

You can try it with the NCO tools ncatted and ncks:

ncatted -a coordinates,ua850,o,c,"plev" exampl.nc
ncks -x -v lat,lon exampl.nc result.nc

    (1-6/6)