res = pdbufr.read_bufr(f,
columns=('airTemperature'),
filters={'heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform': [2.0]},
)
does not work because columns is interpreted as a single string rather than a tuple, and then pdbufr internally tries to turn it into a list, which in fact just creates ['a', 'i', 'r', 'T', 'e', 'm', 'p', 'e', 'r', 'a', 't', 'u', 'r', 'e'] rather than ['airTemperature'].
The current workaround is to ensure a proper tuple is passed, e.g. columns=('airTemperature',)
A filter expression such as this:
does not work because
columns
is interpreted as a single string rather than a tuple, and then pdbufr internally tries to turn it into a list, which in fact just creates['a', 'i', 'r', 'T', 'e', 'm', 'p', 'e', 'r', 'a', 't', 'u', 'r', 'e']
rather than['airTemperature']
.The current workaround is to ensure a proper tuple is passed, e.g.
columns=('airTemperature',)