Metview's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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.

Extracting a single parameter


DescriptionFilterResultsComments

For all the messages: extract the first non missing temperature value

extract_data: on
parameter_1: airTemperature

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 ignored)
extract_data: on
parameter_1: airTemperature
parameter_rank_1: 1


For all the messages: extract the first (rank=1) temperature value if it is greater than 300 K
extract_data: on
parameter_1: airTemperature
parameter_rank_1: 1
parameter_operator_1: >
parameter_value_1: 300


For all the messages: extract the first temperature value which is greater than 300 K
extract_data: on
parameter_1: airTemperature
parameter_operator_1: >
parameter_value_1: 300


For station 78016: extract all the temperature values


extract_data: on
parameter_1: airTemperature
extract_mode: all



Single coordinate condition


DescriptionFilterResults

For all messages: extract the first temperature value which is greater than 300 K and also extract the pressure on which it occurs

extract_data: on
parameter_1: airTemperature
parameter_operator_1: >
parameter_value_1: 300
coordinate_condition_count: 1
coordinate_1: pressure

For all messages: extract the first temperature value which is greater than 300 K and the pressure is less than 950 hPa
extract_data: on
parameter_1: airTemperature
parameter_operator_1: >
parameter_value_1: 300
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_operator_1: >
coordinate_value_1: 95000

For all messages: extract the (first) temperature value on the 500 hPa pressure level
extract_data: on
parameter_1: airTemperature
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_operator_1: =
coordinate_value_1: 50000

For station 78016: extract the temperature on the second pressure level


identifier_value: 78016
extract_data: on
parameter_1: airTemperature
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_rank_1: 2

For station 78016: extract the temperature on the first 6 pressure levels
identifier_value: 78016
extract_data: on
parameter_1: airTemperature
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_rank_1: 1/2/3/4/5/6

For station 78016: extract the temperature on the 925, 850 and 700 hPa pressure levels
identifier_value: 78016
extract_data: on
parameter_1: airTemperature
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_operator_1: =
coordinate_value_1: 92500/85000/70000

Multiple parameters

DescriptionFilterResults

For all the messages: extract the first wind speed and wind direction values

extract_data: on
parameter_1: windDirection
parameter_2: windSpeed

For all the messages: extract the first wind speed and wind direction values and also extract their pressure
extract_data: on
parameter_1: windDirection
parameter_2: windSpeed
coordinate_condition_count: 1
coordinate_1: pressure

For all the messages: extract wind speed and wind direction values on the 500 hPa pressure level
extract_data: on
parameter_1: windDirection
parameter_2: windSpeed
coordinate_condition_count: 1
coordinate_1: pressure
coordinate_operator_1: =
coordinate_value_1: 50000


Multiple (nested) coordinate conditions

TaskFilterResults

For station 78016: extract all the temperature values on standard pressure levels

identifier_value: 78016
extract_data: on
parameter_1: airTemperature
coordinate_condition_count: 2
coordinate_1: pressure
coordinate_2: verticalSoundingSignificance
coordinate_operator_2: =
coordinate_value_2: 32

For station 78016: extract all the temperature values on temperature significant levels where the pressure is less than 500 hPa
identifier_value: 78016
extract_data: on
parameter_count: 1
parameter_1: airTemperature 
coordinate_condition_count: 2
coordinate_1: pressure
coordinate_operator_1: <
coordinate_value_1: 50000
coordinate_2: verticalSoundingSignificance
coordinate_operator_2: =
coordinate_value_2: 4/68




  • No labels