ecmwf / earthkit-data

A format-agnostic Python interface for geospatial data
Apache License 2.0
47 stars 9 forks source link

Add bits_per_value option when saving numpyfs grib data #284

Closed sandorkertesz closed 5 months ago

sandorkertesz commented 5 months ago

With this PR we can specify the bits per value for the grib encoding when saving a Numpy Fieldlists into a GRIB file:

ds.save("my_data.grib", bits_per_value=24)

By default bits_per_value=16.