forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: correctly pad netCDF files with null bytes
Per the netCDF spec, variable names and attributes should be padded with null padding to the nearest 4-byte boundary, but scipy has been padding with b'0' instead: http://www.unidata.ucar.edu/software/netcdf/docs/file_format_specifications.html This surfaced recently after the netCDF-C library added more stringent checks in version 4.5.0 which rendered it unable to read files written with SciPy: Unidata/netcdf-c#657 This change to netCDF-C is likely going to be rolled back, but it's still a good idea for us to write compliant files. Apparently there are other netCDF implementations that also insist on padding with nulls.
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters