Skip to content

Releases: NOAA-MDL/grib2io

grib2io v2.4.0

28 Feb 02:59
Compare
Choose a tag to compare

Introduction

This is a significant release for grib2io -- notably the refactoring of the g2clib Cython extension module and the introduction of a new Cython extension module, iplib, that provides an interface to the NCEPLIBS-ip Fortran interpolation library. This now means that grib2io-interp is no longer necessary to install as an additional component and its development is no longer active.

These changes also now make grib2io available for Python 3.13 and NumPy 2.x

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.4.0

grib2io v2.3.0

13 Aug 13:23
Compare
Choose a tag to compare

What's Changed

  • New method, subset(), for Grib2Message objects to perform spatial subsetting by @TimothyCera-NOAA in #155
  • Added new da.grib2io.update_attrs() to update message attributes by @TimothyCera-NOAA in #154
  • NCEP GRIB2 tables updated to version 33.0.0

Full Changelog: v2.2.5...v2.3.0

grib2io v2.2.5

01 Jul 17:43
Compare
Choose a tag to compare

What's Changed

  • Fixed to_grib2() writing an xarray without dimensional coordinates by @TimothyCera-NOAA in #152
  • Fixed issue where the nbytes property was not being calculated when printing Datasets on xarray>2024.1.0 by @TimothyCera-NOAA in #153

Full Changelog: v2.2.4...v2.2.5

grib2io v2.2.4

11 Jun 19:43
Compare
Choose a tag to compare

What's Changed

  • grib2io will now silently ignore non-GRIB2 data in a file, but will warn when a GRIB1 message is encounter (existing behavior) by @EricEngle-NOAA in 65557cc

Full Changelog: v2.2.3...v2.2.4

grib2io v2.2.3

10 Jun 18:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.2...v2.2.3

grib2io v2.2.2

06 May 00:39
Compare
Choose a tag to compare

What's Changed

  • Fixed a bug where grib2io was not properly opening Gzipped GRIB2 files by @EricEngle-NOAA in 95e397d
  • Fixed an issue with the scenario where of calling flush_data() on a Grib2Message object created from a user (i.e. not read from file) would raise an error by @EricEngle-NOAA in 95e397d
  • Fixed an issue with the scenario of calling pack() method for a Grib2Message object where data are None. Moving forward, pack() will attempt to pack data if it can be found (i.e. reading data from disk) by @EricEngle-NOAA in 95e397d
  • Cleaned up logic of handling the Grib2MessageOnDiskArray object in the Grib2Message object when flushing unpacked data. Moving forward, the Grib2Message._data private attribute will be either None or numpy.ndarray and Grib2Message._ondiskarray will always be None or Grib2MessageOnDiskArray. by @EricEngle-NOAA in 95e397d

Full Changelog: v2.2.1...v2.2.2

grib2io v2.2.1

26 Apr 11:46
Compare
Choose a tag to compare

What's Changed

  • Fixed a bug in Grib2Message.interpolate() where num_threads was not being passed to the module-level function, grib2io.interpolate(). This caused the default value of 1 to always be used by @EricEngle-NOAA in dadabda

Full Changelog: v2.2.0...v2.2.1

grib2io v2.2.0

08 Apr 12:25
Compare
Choose a tag to compare

What's Changed

Details about writing to GRIB2 from the Xarray Backend

grib2io v2.2.0 introduces the ability to write GRIB2 files from the xarray backend via .to_grib2() accessor methods for xarray.Dataset and xarray.DataArray objects. At this time, this will only work if xarray objects originated from the grib2io xarray backend. The .to_grib2() accessor method leverages xarray attributes 'GRIB2IO_section*' that are the numeric GRIB2 metadata sections. Future updates to the grib2io xarray backend will further build out this functionality.

Full Changelog: v2.1.4...v2.2.0

grib2io v2.1.4

19 Jan 13:00
Compare
Choose a tag to compare

What's Changed

  • A follow up to changes in v2.1.3 -- Fixed the number of longitudes generated for Gaussian grids by @alcoat in #125

Full Changelog: v2.1.3...v2.1.4

grib2io v2.1.3

17 Jan 20:18
Compare
Choose a tag to compare

What's Changed

  • Fixed issue (#123) that was causing incorrect latitude/longitude values for Gaussian grids by @EricEngle-NOAA in #124
  • Added missing GRIB2 named attribute, 'numberOfParallels', for Gaussian grids.

Full Changelog: v2.1.2...v2.1.3