These examples show how to extract data in a table format from BUFR files.
These conditions are combined together by the logical AND operator. So a row of data is only added to the results when all the conditions match. |
This is a summary of the data files used for the examples:
File | Structure | Description |
---|---|---|
temp.bufr | Classic radiosonde data. One message contains a vertical profile for one station with various parameters (e.g. temperature, wind etc.) on a set of pressure levels. |
Example | Filter | Results | Comments | |
---|---|---|---|---|
For all the messages: extract the first non missing temperature value |
| By default missing values are ignored in data extraction (see option MISSING DATA) | ||
For all the messages: extract the first (rank=1) temperature value (if missing it is ignored) |
| Here we explicitly asked for the first temperature value. It has a missing value in many of the messages so we have less resulting rows that in the previous example. | ||
For all the messages: extract the first (rank=1) temperature value if it is greater than 300 K |
| |||
For all the messages: extract the first temperature value which is greater than 300 K |
| |||
For station 78016: extract all the temperature values |
|
Example | Filter | Results | Comments | |
---|---|---|---|---|
For all the messages: extract the first temperature value which is greater than 300 K and also extract the pressure on which it occurs |
| Here we explicitly say the we only want the matching temperature values which appear inside a pressure block (in these messages this is always the case). By using the coordinate condition pressure will be extracted as well because the EXTRACT_COORDINATE option is On by default. | ||
For all the messages: extract the first temperature value which is greater than 300 K and the pressure is less than 950 hPa |
| Here we further refined the coordinate condition. | ||
For all the messages: extract the temperature value on the 500 hPa pressure level |
| |||
For station 78016: extract the temperature on the second pressure level |
| Here we restricted the filter form one station (message) only and used a rank condition for the coordinate. | ||
For station 78016: extract the temperature on the first 6 pressure levels |
| For coordinate rank a list of values can be specified. | ||
For station 78016: extract the temperature on the 925, 850 and 700 hPa pressure levels |
|
Example | Filter | Results | Comments | ||
---|---|---|---|---|---|
For all the messages: extract the first wind speed and wind direction values |
|
| |||
For all the messages: extract the first wind speed and wind direction values and also extract their pressure |
| ||||
For all the messages: extract wind speed and wind direction values on the 500 hPa pressure level |
|
Multiple (nested) coordinate conditions
Task | Filter | Results | |
---|---|---|---|
For station 78016: extract all the temperature values on standard pressure levels |
| ||
For station 78016: extract all the temperature values on temperature significant levels where the pressure is less than 500 hPa |
|