You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xarray_to_cdf is creating corrupt cdf files when reading in FILLVAL attributes as strings.
This issue arose when writing code for the IMAP mission--particularly the IDEX instrument. FILLVAL was written as -1.0E+31 rather than -1.0e+31, and xarray_to_cdf did not raise an error. Rather, the function load_cdf in imap_processing.utils.py caught the issue giving a ValueError that "the buffer is smaller than the requested size."
xarray_to_cdf
is creating corrupt cdf files when reading inFILLVAL
attributes as strings.FILLVAL
was written as-1.0E+31
rather than-1.0e+31
, andxarray_to_cdf
did not raise an error. Rather, the functionload_cdf
inimap_processing.utils.py
caught the issue giving a ValueError that "the buffer is smaller than the requested size."Below is linked a .py file with a simple version of this bug where two written tests fail. The files used to illustrate this are
testing_corrupt_cdf.py
andimap_idex_l1_attrs.yaml
both inimap_processing/tests
.https://github.com/anamanica/imap_processing/blob/corrupt-cdf/imap_processing/tests/testing_corrupt_cdf.py
The text was updated successfully, but these errors were encountered: