...
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_*.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 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
To print offset and count number in file use the keys offset and count. Also the total count in a set of files is available as countTotal list only a subset of messages use the -w (where option). Only the SYNOP messages are listed with the following line.
To list only a subset of messages use the -w (where option). Only the SYNOP messages are listed with the following line.Code Block > > bufr_ls -W 8 -p offset,count,countTotalw typicalTime=0 ../data/bufr/syno_*.bufr ../data/bufr/syno_1.bufr offsetmasterTablesVersionNumber localTablesVersionNumber rdbType count countTotal 0 rdbSubtype 1 1 rdbtimeYear 1 of 1 messages in ../data/bufr/syno_1.bufr ../data/bufr/syno_2.bufr 0 rdbtimeMonth 2 typicalDate 2 1 of 1typicalTime messages in ../data/bufr/syno_2.bufr ../data/bufr/syno_3.bufr 0 3 numberOfSubsets 3 localLatitude 1 of 1 messages in ../data/bufr/syno_3.bufr ../data/bufr/syno_4.bufr 0 localLongitude 4 13 4 1 of 1 messages in ../data/bufr/syno_4.bufr ../data/bufr/syno_multi.bufr 0 1 5 5 1 220 6 6 1 440 7 2012 7 3 of 3 messages in ../data/bufr/syno_multi.bufr 7 of 7 total messages in 5 files
Code Block > bufr_ls -W 8 -w dataCategory=0 ../data/bufr/syno_*.bufr ../data/bufr/temp_*.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 547.18 45 7.9 151.83 1 of 1 messages in ../data/bufr/syno_41.bufr ../data/bufr/syno_multi2.bufr 13 1 1 1 2012 2009 10 1 20121030 000000 20090124 1 120000 1 7.45 70.93151.83 1 of 1 messages -8.67in ../data/bufr/syno_2.bufr ../data/bufr/syno_3.bufr 13 13 1 1 1 1 3 1 2012 2009 10 1 20121030 000000 20090124 1 120000 1 -15.93 -5.67 77 1 of 1 messages 15.5 in ../data/bufr/syno_3.bufr ../data/bufr/syno_4.bufr 13 1 1 1 20092012 110 20121030 20090124 120000000000 1 78.92 11.93 54.18 3 of 3 messages in ../data/bufr/syno_multi.bufr ../data/bufr/temp_101.bufr 0 of 1 messages in ../data/bufr/temp_101.bufr ../data/bufr/temp_102.bufr 0 7.9 1 of 1 messages in ../data/bufr/tempsyno_1024.bufr ../data/bufr/tempsyno_106multi.bufr 0 of 13 messages in ../data/bufr/tempsyno_106multi.bufr 74 of 107 total messages in 85 files
All the non-SYNOP messages are listed as follows:
Code Block > bufr_ls -W 8 -w dataCategory!=0 ../data/bufr/syno_*.bufr ../data/bufr/temp_*.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 0 of 3 messages in ../data/bufr/syno_multi.bufr ../data/bufr/temp_101.bufr 13 1 5 101 2012 10 20121030 000000 1 60.77 -161.83 1 of 1 messages in ../data/bufr/temp_101.bufr ../data/bufr/temp_102.bufr 13 1 5 102 2012 10 20121030 230000 1 51.2 -28.1 1 of 1 messages in ../data/bufr/temp_102.bufr ../data/bufr/temp_106.bufr 13 1 5 106 2012 10 20121030 180000 1 43.2 3.4 1 of 1 messages in ../data/bufr/temp_106.bufr 3 of 10 total messages in 8 files