There are keys to allow the user to extract an area from BUFR data |
There are keys to allow the user to extract an area from BUFR data:
The following file "extract.filter" with bufr_filter can be used to perform the extraction of subsets from a BUFR message:
transient originalNumberOfSubsets = numberOfSubsets; set unpack=1; set extractAreaNorthLatitude=52.5; set extractAreaSouthLatitude=51.1; set extractAreaWestLongitude=155.2; set extractAreaEastLongitude=160.5; set extractAreaLongitudeRank=1; set doExtractArea=1; # This does an implicit 'pack' if (extractedAreaNumberOfSubsets != 0) { write; } print "extracted [extractedAreaNumberOfSubsets] of [originalNumberOfSubsets] subsets"; |
This example can be used on any multi-subset input file in compressed form as follows:
% bufr_filter -o out.bufr extract.filter in.bufr |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.