Access keys by rank:
Step-by-step guide
Add the steps involved:
- Each key can appear several times in a BUFR message.
Examples are:
- airTemperature in an upper air report
- backscatter in a scatterometer observation
ecCodes provides access by rank of all the keys in the data section of a BUFR message with the following syntax:
t = codes_get(bufr, '#3#airTemperature' )
|
b = codes_get_array(bufr, '#2#backscatter' )
|
- This is a change compared with the key syntax provided before version 0.12.0 where the access by rank was expressed as
'airTemperature#3'
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
