ecmwf / eccodes-python

Python interface to the ecCodes GRIB/BUFR decoder/encoder
Apache License 2.0
115 stars 33 forks source link

`headers_only` not used in `grib_new_from_file` #40

Closed alexamici closed 3 years ago

alexamici commented 3 years ago

In https://github.com/ecmwf/eccodes-python/blob/develop/gribapi/gribapi.py#L402 and following the headers_only keyword argument is not passed to the C-bindings.

This appears deliberate, so maybe I'm missing something, but the functionality is not available any more.

I suggest to either add the functionality back or update the function documentation, and probably add a warning.

shahramn commented 3 years ago

This feature was experimental and only (just) worked for GRIB edition 1. In fact we should have never released it in the API