Versions Compared

Key

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

...

  1. Without options a default list of keys is printed. The default list can be different depending on the type of bufr message.

    Code Block
     
    >  bufr_ls ../data/bufr/syno_*multi.bufr 
    ../data/bufr/syno_1multi.bufr
    masterTablesVersionNumber  localTablesVersionNumber   rdbType                    rdbSubtype                 rdbtimeYear                rdbtimeMonth               typicalDate                typicalTime                numberOfSubsets            localLatitude              localLongitude             
    13                         1                          1                          1                          2009 2012                      1 10                         2012103020090124                   000000120000                     1                          770.4593                       151.83  -8.67                  
    1 of 1 messages in ../data/bufr/syno_1.bufr
    
    ../data/bufr/syno_2.bufr
    13                         1                          1                          1                          20122009                       101                          2012103020090124                   000000120000                     1                          7.4577                         15115.835                    
    1 of 1 messages in ../data/bufr/syno_2.bufr
    
    ../data/bufr/syno_3.bufr
    13                         1                          1                          31                          2009 2012                      1 10                         2012103020090124                   000000120000                     1                          -1578.9392                      -511.6793                     
    13 of 13 messages in ../data/bufr/syno_3multi.bufr
    
    3 of 3 total messages in 1 files
    


  2. Wildcars can be use in filenames.

    Code Block
     
    >  bufr_ls ../data/bufr/syno_*.bufr 
    ../data/bufr/syno_1.bufr
    masterTablesVersionNumber  localTablesVersionNumber   rdbType../data/bufr/syno_4.bufr
    13                         1           rdbSubtype               1  rdbtimeYear                rdbtimeMonth        1       typicalDate                typicalTime   2012             numberOfSubsets          10  localLatitude              localLongitude         20121030    
    13               000000          1           1               1           54.18               1       7.9                   2012    
    1 of 1 messages in ../data/bufr/syno_4.bufr
    
    ../data/bufr/syno_multi.bufr
    13              10           1              20121030            1       000000                   1  1                        2009  7.45                     1  151.83                    
    1 of 1 messages 20090124          in ../data/bufr/syno_1.bufr
    
    ../data/bufr/syno_2.bufr
    13         120000                     1                          70.931                      -8.67    1                 
    13         2012                1       10                   1      20121030                   000000 1                    1      2009                    7.45   1                    151.83      20090124              
    1 of 1 messages  120000        in ../data/bufr/syno_2.bufr
    
    ../data/bufr/syno_3.bufr
    13             1            1              77            1             15.5             3         
    13                 2012        1               10           1              20121030            1       000000                   2009  1                     1     -15.93                     20090124-5.67                   120000                     1       
    1 of 1 messages in ../data/bufr/syno_3.bufr
    
    ../data/bufr/syno_4.bufr
    13                         1             78.92             1         11.93                 1    
    3 of 3 messages in ../data/bufr/syno_multi.bufr
    
    7 of 7 total messages in 5            2012                       10                         20121030                   000000                     1                          54.18                      7.9                       
    1 of 1 messages in ../data/bufr/syno_4.bufr
    
    ../data/bufr/syno_multi.bufr
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          70.93                      -8.67                     
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          77                         15.5                      
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          78.92                      11.93                     
    3 of 3 messages in ../data/bufr/syno_multi.bufr
    
    7 of 7 total messages in 5 files
    </p></li><br /><li><p> Wildcars can be use in filenames.  
    <ac:structured-macro ac:name="code"><ac:plain-text-body><![CDATA[ 
    >  bufr_ls ../data/bufr/syno_*.bufr 
    ../data/bufr/syno_multi.bufr
    centre      centre      
    not_found   not_found  
    not_found   not_found  
    not_found   not_found  
    3 of 3 messages in ../data/bufr/syno_multi.bufr
    
    3 of 3 total messages in 1 files
    


  3. To list only a subset of messages use the -w (where option). Only the 12 UTC messages are listed with the following line.

    Code Block
     
    >  bufr_ls -W 8 -w typicalTime="120000" ../data/bufr/syno_*.bufr
    ../data/bufr/syno_1.bufr
    masterTablesVersionNumber  localTablesVersionNumber   rdbType                    rdbSubtype                 rdbtimeYear                rdbtimeMonth               typicalDate                typicalTime                numberOfSubsets            localLatitude              localLongitude             
    0 of 1 messages in ../data/bufr/syno_1.bufr
    
    ../data/bufr/syno_2.bufr
    0 of 1 messages in ../data/bufr/syno_2.bufr
    
    ../data/bufr/syno_3.bufr
    0 of 1 messages in ../data/bufr/syno_3.bufr
    
    ../data/bufr/syno_4.bufr
    0 of 1 messages in ../data/bufr/syno_4.bufr
    
    ../data/bufr/syno_multi.bufr
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          70.93                      -8.67                     
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          77                         15.5                      
    13                         1                          1                          1                          2009                       1                          20090124                   120000                     1                          78.92                      11.93                     
    3 of 3 messages in ../data/bufr/syno_multi.bufr
    
    3 of 7 total messages in 5 files
    


  4. All the non-12 UTC messages are listed as follows:

    Code Block
     
    >   bufr_ls -W 8 -w typicalTime!="120000" ../data/bufr/syno_*.bufr
    ../data/bufr/syno_1.bufr
    masterTablesVersionNumber  localTablesVersionNumber   rdbType                    rdbSubtype                 rdbtimeYear                rdbtimeMonth               typicalDate                typicalTime                numberOfSubsets            localLatitude              localLongitude             
    13                         1                          1                          1                          2012                       10                         20121030                   000000                     1                          7.45                       151.83                    
    1 of 1 messages in ../data/bufr/syno_1.bufr
    
    ../data/bufr/syno_2.bufr
    13                         1                          1                          1                          2012                       10                         20121030                   000000                     1                          7.45                       151.83                    
    1 of 1 messages in ../data/bufr/syno_2.bufr
    
    ../data/bufr/syno_3.bufr
    13                         1                          1                          3                          2012                       10                         20121030                   000000                     1                          -15.93                     -5.67                     
    1 of 1 messages in ../data/bufr/syno_3.bufr
    
    ../data/bufr/syno_4.bufr
    13                         1                          1                          1                          2012                       10                         20121030                   000000                     1                          54.18                      7.9                       
    1 of 1 messages in ../data/bufr/syno_4.bufr
    
    ../data/bufr/syno_multi.bufr
    0 of 3 messages in ../data/bufr/syno_multi.bufr
    
    4 of 7 total messages in 5 files