-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set kwargs["_xarray_backend"], an assert to ValueError, removed if.
If not using the xarray backend, in some situations the kwargs["_xarray_backend"] throws a KeyError. Fixed that if not available setting to False, which is the default. If opening a GRIB v1 file, there was an AssertionError which is changed to raise an error and offer an error message. Removed an unnecessary if block that tested for a header which is now done in a loop immediately before.
- Loading branch information
Showing
1 changed file
with
136 additions
and
130 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