ecmwf / pdbufr

High-level BUFR interface for ecCodes
Apache License 2.0
23 stars 8 forks source link

WMO_station_id ignored in filters unless appears in columns #55

Open sandorkertesz opened 1 year ago

sandorkertesz commented 1 year ago

What happened?

Using e.g. SYNOP data:

df = pdbufr.read_bufr(columns=["latitude", "longitude", "airTemperatureAt2M"],
                 filters={"WMO_station_id": [30846, 89514]

does not apply the filter but extracts data from all the messages. To make filters work WMO_station_id has to be added to columns. For other keys this is not required.

What are the steps to reproduce the bug?

See above.

Version

latest

Platform (OS and architecture)

all

Relevant log output

No response

Accompanying data

No response

Organisation

No response