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

Adding option to silence xarray decodewarnings #1208

Merged
merged 2 commits into from Aug 4, 2022

Conversation

erikvansebille
Copy link
Member

This PR adds an option netcdf_decodewarning to Fieldset.from_netcdf() (and `FieldSet.from_nemo() etc) to silence the Warning

WARNING: File XXX could not be decoded properly by xarray (version 0.19.0).
It will be opened with no decoding. Filling values might be wrongly parsed.

The default is still to receive this Warning, but in some cases (especially NEMO coordinates files where time can't be parsed), it is convenient to silence this Warning

@erikvansebille erikvansebille merged commit 3260033 into master Aug 4, 2022
@erikvansebille erikvansebille deleted the field_netcdf_decodewarning_option branch August 4, 2022 06:17
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

Successfully merging this pull request may close these issues.

None yet

1 participant