Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Access keys by rank:

Step-by-step guide

  1. Each key can appear several times in a BUFR message. 
  2. Examples are: 

    1. airTemperature in an upper air report
    2. backscatter in a scatterometer observation
  3. ecCodes provides access by rank of all the keys in the data section of a BUFR message with the following syntax:

     

    #to get the third airTemperature in the message
    t=codes_get(bufr,'#3#airTemperature'


    #to get the second backscatter in the message
    b=codes_get_array(bufr,'#2#backscatter'


  4. 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'

 

Info

Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "~usa"
labelskb-how-to-article

...