Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xarray_to_cdf FILLVAL Error #272

Open
anamanica opened this issue Jul 25, 2024 · 0 comments
Open

xarray_to_cdf FILLVAL Error #272

anamanica opened this issue Jul 25, 2024 · 0 comments

Comments

@anamanica
Copy link

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."

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 and imap_idex_l1_attrs.yaml both in imap_processing/tests.
https://github.com/anamanica/imap_processing/blob/corrupt-cdf/imap_processing/tests/testing_corrupt_cdf.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant