Closed ndkeen closed 2 years ago
Are all e3sm input files in cdf5 format? If not, then it might be that we are doing something wrong in our scorpio interfaces, which prevents us from reading netcdf-4 files...
@bartgol - this is a long-running and strange situation. It is true that scorpio doesn't support netcdf4. As a result, all e3sm input files have been forced to be written in netcdf3 format. The reason for lack of support has to do with (if I remember correctly) parallel support for netcdf4 never really getting the attention it needed.
Ok, we can definitely convert files to whatever scorpio can handle. I see several formats there though. I'm guessing netcdf-4
and netcdf-4 classic model
are both bad. What about 64-bit offset
or classic
? Noel mentioned cdf5, which I think is yet another format...
Please convert all the input files to the cdf5 (64bit data) file format. The NetCDF4 files have caused several issues (unexplained hangs etc) in the past and hasn't provided us the performance that we need.
(Also check out https://acme-climate.atlassian.net/wiki/spaces/DOC/pages/1007223420/NetCDF+explainer & https://acme-climate.atlassian.net/wiki/spaces/EIDMG/pages/769130507/Picking+a+netcdf+type+for+all+input+files)
From Charlie Zender: "There is some understandable confusion about this because the terminology is confusing and the supported formats have evolved. The PnetCDF format was fully merged into netCDF 4.6.3 a few years ago, where it is now more widely known as the CDF5 or 64bit-data format. The E3SM toolchain fully and transparently supports CDF5, which (like netCDF4) is 64bit end-to-end and thus capacious enough to hold any dataset through the exascale era. You can BFB convert from any netCDF format to CDF5 with:"
ncks -5 in.nc out.nc
This was resolved.
I think there are only certain netcdf formats that we want to be using. For one case, a file that was in
netCDF-4
caused an issue that did not happen after converting it tocdf5
.To convert, can use
ncks -5 a.nc -o b.nc
(or similar)