ecmwf / pdbufr

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

Can subsetNumber in uncompressed messages be considered a coordinate descriptor? #20

Closed alexamici closed 3 years ago

alexamici commented 3 years ago

@sandorkertesz and @shahramn

would treat subsetNumber like other coordinate descriptor remove the need to special case uncompressed messages?

I'm still implementing handling coordinate descriptor, but from what I see I can consolidate parsing uncompressed messages in the same code.

shahramn commented 3 years ago

I hadn't considered that use case. For uncompressed messages, the key iterator will return the key "subsetNumber" at the beginning of each block for a subset but its value will not reflect the actual subset number

shahramn commented 3 years ago

Note that you can use ecCodes own key syntax for "search by condition" using "subsetNumber" e.g. key="/subsetNumber=9/airTemperature"

alexamici commented 3 years ago

It works perfectly.