Open dholstius opened 2 years ago
FYI @ctessum. I'm going to try converting to another NetCDF format on a different host with a different NCO stack, and see if that's a workaround. h/t @stephenreid65
The issue is that the Go language netcdf library has an apparently invalid way of creating large files which worked fine with older versions of the NetCDF C library but doesn't work with the newest version. A workaround is to install a circa-2016 version of netcdf and then make a copy of the file to netcdf-4, which should then work with any version of the netcdf C library. (This might be the same thing as the workaround you posted above.) The only problem with this solution is that InMAP can't read NetCDF-4, so the new file won't be useable with the InMAP command line tools.
Good to know. I was going bonkers trying to fix my netCDF stack, and envious that @stephenreid65 wasn't getting the same error on our cluster host (soma
). Maybe the netCDF install is old enough on our cluster that it works! I'm going to have to take back my suggestion to Jeff (our sysadmin) to update it.
Update: on soma
, nc-config –version
indeed reports a circa-2016 version, 4.4.1.1 (2016-11-21).
Summary
ncvalidator
states that it fails to conform with classic CDF-2 file format specDetails
Although
ncdump
gives up:... we can fall back to reading the first four bytes:
Those indicate CDF-2 (64-bit offset) format.
After
brew install pnetcdf
:Related Issues
4