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

Set kwargs["_xarray_backend"], an assert to ValueError, removed if. #126

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

TimothyCera-NOAA
Copy link
Contributor

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.

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.
@EricEngle-NOAA EricEngle-NOAA merged commit 556cc32 into NOAA-MDL:master Jan 22, 2024
10 checks passed
EricEngle-NOAA pushed a commit that referenced this pull request Jan 22, 2024
…126)

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.

Co-authored-by: Tim Cera <[email protected]>
EricEngle-NOAA added a commit that referenced this pull request Jan 22, 2024
* Adding MRMS GRIB2 tables.

This commit provides support for MRMS GRIB2 tables. MRMS uses the
GRIB2 discipline value of 209.  The included UserTable_MRMS_v12.2.csv
contains more information than what is needed, so in time, other
attributes from the table can be added.

This commit references issue #120

* Adding section4_discipline209.py

This commit adds section4_discipline209.py which contains the MRMS
variable parameter dictionaries.

This commit references issue #120

* Adding support for Gzip GRIB2 files.

This commit added support for reading GRIB2 files that have also been
gzipped.  Some datasets gzip GRIB2 files even though there is no benefit
in doing so.

When using the grib2io xarray backend, an error will be raised when
using Gzipped GIRB2 files.  This is a restiction within xarray.

This commit references issue #119

* Set kwargs["_xarray_backend"], an assert to ValueError, removed if. (#126)

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.

Co-authored-by: Tim Cera <[email protected]>

---------

Co-authored-by: Eric Engle <[email protected]>
Co-authored-by: TimothyCera-NOAA <[email protected]>
Co-authored-by: Tim Cera <[email protected]>
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.

3 participants