pdbufr icon indicating copy to clipboard operation
pdbufr copied to clipboard

WMO_station_id ignored in filters unless appears in columns

Open sandorkertesz opened this issue 1 year ago • 0 comments

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

sandorkertesz avatar Jun 12 '23 10:06 sandorkertesz