Problem with NC file format
Added by Alonso Arriagada over 3 years ago
Hello everyone!! I have an NC file with a format that is not supported by CDO, and I need to replicate the format of another NC file to use it in a model. I wanted to know if anyone knows if it is possible to transform the first file to a format similar to the second. I suppose it is a problem of the CF convention format.
This is the error message that I get with CDO:
Warning (cdfInqContents): NetCDF4 groups not supported! Found 10 root groups.
Warning (cdfScanVarAttr): Time must be the first dimension! Unsupported array structure, skipped variable prcp!
Warning (cdfScanVarAttr): Time must be the first dimension! Unsupported array structure, skipped variable Tref!
Warning (cdfInqContents): No data arrays found!
cdo sinfon: Open failed on >Cr2Met4WEAP_Daily_005deg.nc<
Unsupported file structure
Thanks a lot!!
Alonso A M
Princeton_Daily_-068_-23.nc (2.2 MB) Princeton_Daily_-068_-23.nc | File to replicate | ||
Cr2Met4WEAP_Daily_005deg.nc (118 MB) Cr2Met4WEAP_Daily_005deg.nc | File not supported |
Replies (3)
RE: Problem with NC file format - Added by Karin Meier-Fleischer over 3 years ago
Hi Alonso,
this looks like a case for NCO that can handle netCDF4 groups and non-CF convention netcdf files.
-Karin
RE: Problem with NC file format - Added by Alonso Arriagada over 3 years ago
Thanks Karin!
I will try to use NCO's tools to reorder dimensions and set the correct time.
Best!
Alonso A M
RE: Problem with NC file format - Added by Adrian Tompkins about 1 year ago
You can "flatten" the groups by converting from netcdf4 to classic netcdf3 using ncks:
ncks -3 -O my_groupy_ncdf4.nc flattened_ncdf3.nc