-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add option to fix netCDF issues #17 #18
Conversation
raise Exception( | ||
f"The dataset contains an invalid platform identifier: {dataset.platform_ID}" | ||
) | ||
with Dataset(asset_href, "a", format="NETCDF4") as dataset: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always opening the files for reading is not ideal. On the other hand, scaling the variables manually also doesn't seem ideal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 Since there is now an option to fix the netcdf, always opening them for append seems OK.
raise Exception( | ||
f"The dataset contains an invalid platform identifier: {dataset.platform_ID}" | ||
) | ||
with Dataset(asset_href, "a", format="NETCDF4") as dataset: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 Since there is now an option to fix the netcdf, always opening them for append seems OK.
This adds an option to fix the _Unsiged issues in some older netCDF files.
See #17 for details. I'll add comments with concerns. Most of the changes in the code are just indentation.