cchdo / hydro

The big ol CCHDO netCDF-CF project
https://hydro.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

740H20140423 - potential cf issues? #30

Closed eaitoro closed 6 months ago

eaitoro commented 1 year ago

link: https://cchdo.ucsd.edu/cruise/740H20140423

zip file: 740H20140423.zip

DocOtak commented 1 year ago

Specifically, something is wrong with the cast variable that @eaitoro occasionally sees ncdump crash on. She reports this is with both the online file, and one she made herself.

DocOtak commented 1 year ago

Some good news, this is purely an issue with the "C_format" attribute and ncdump trying to print the integer dtype with a floating point format string. The underlying data in the netCDF files accurately reflects the input data.

I think the fix will be to remove the C_format attrs from anything that is not a floating point type variable (either single or double).

DocOtak commented 6 months ago

Fixed in 5979628eae07817f75c3d796e65df5e8715be4f5