This function decodes SYNOP FM-12 meteorological messages which are commonly
used for reporting weather observations under the regulations of the World Meteorological Organization (WMO).
It parses one or more SYNOP messages and
returns their structured representation as generated by the SYNOP R6
decoder.
synop_parser(message, country = NULL, simplify = TRUE, as_data_frame = FALSE)Character vector with SYNOP messages.
Optional; A single character value passed to the precipitation
indicator decoder to adjust country-specific behaviour (e.g. "RU").
Logical. If TRUE (default) and a single message is
provided, the function returns the decoded list directly instead of a
length-one list. Ignored when as_data_frame = TRUE.
Logical. If TRUE, return a data.frame with one row
per message and commonly-used decoded fields as columns. Missing or
unparsed fields are filled with NA. Default is FALSE.
When as_data_frame = FALSE (default): a list of decoded SYNOP
messages, or the decoded list directly when simplify = TRUE and a single
message is supplied. When as_data_frame = TRUE: a data.frame with one
row per message and the following columns (all numeric/character as
appropriate, NA when not present in the message):
station_type, station_id, region, obs_day, obs_hour,
wind_unit, wind_estimated, visibility, cloud_cover,
wind_direction, wind_speed, air_temperature, dewpoint_temperature,
station_pressure, sea_level_pressure, pressure_tendency,
pressure_change, precipitation_amount, precipitation_time,
cloud_base_min, cloud_base_max, low_cloud_type,
middle_cloud_type, high_cloud_type, low_cloud_amount,
maximum_temperature (Section 3 daily maximum, °C),
minimum_temperature (Section 3 daily minimum, °C),
gust (highest gust speed from Section 3 group 910ff/911ff, in the wind unit of the message),
cloudiness_height (cloud cover in oktas of the highest cloud layer reported in Section 3,
i.e. cirrus/cirrocumulus/cirrostratus; NA when absent),
sunshine_duration (daily sunshine in hours, from Section 3 group 55SSS),
snow_depth (total snow depth in cm; 0 for trace amounts, NA for non-continuous cover or
unmeasurable depth), snow_depth_state (descriptive state of ground with snow/ice per WMO
code table 0975, e.g. "Even layer of loose dry snow covering ground completely"),
source (the original SYNOP message string).
Row names are sequential integers.
Currently, the decoder contains most of the core logic for parsing the main sections of SYNOP messages that are commonly used in atmospheric sciences. However, it does not yet cover all possible SYNOP groups and fields, and some fields may be missing or incomplete.
synop_code = "AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541"
synop_parser(synop_code)
#> $station_type
#> $station_type$value
#> [1] "AAXX"
#>
#>
#> $obs_time
#> $obs_time$day
#> $obs_time$day$value
#> [1] 1
#>
#>
#> $obs_time$hour
#> $obs_time$hour$value
#> [1] 0
#>
#>
#>
#> $wind_indicator
#> $wind_indicator$value
#> [1] 4
#>
#> $wind_indicator$unit
#> [1] "KT"
#>
#> $wind_indicator$estimated
#> [1] FALSE
#>
#>
#> $station_id
#> $station_id$value
#> [1] "88889"
#>
#>
#> $region
#> $region$value
#> [1] "III"
#>
#>
#> $precipitation_indicator
#> $precipitation_indicator$value
#> [1] 1
#>
#> $precipitation_indicator$in_group_1
#> [1] TRUE
#>
#> $precipitation_indicator$in_group_3
#> [1] FALSE
#>
#>
#> $weather_indicator
#> $weather_indicator$value
#> [1] 2
#>
#> $weather_indicator$automatic
#> [1] FALSE
#>
#>
#> $lowest_cloud_base
#> $lowest_cloud_base$min
#> [1] 1500
#>
#> $lowest_cloud_base$max
#> [1] 2000
#>
#> $lowest_cloud_base$quantifier
#> NULL
#>
#> $lowest_cloud_base$`_table`
#> [1] "1600"
#>
#> $lowest_cloud_base$`_code`
#> [1] 7
#>
#> $lowest_cloud_base$unit
#> [1] "m"
#>
#>
#> $visibility
#> $visibility$value
#> [1] 40000
#>
#> $visibility$quantifier
#> NULL
#>
#> $visibility$use90
#> [1] FALSE
#>
#> $visibility$`_table`
#> [1] "4377"
#>
#> $visibility$`_code`
#> [1] 82
#>
#> $visibility$unit
#> [1] "m"
#>
#>
#> $cloud_cover
#> $cloud_cover$value
#> [1] 6
#>
#> $cloud_cover$obscured
#> [1] FALSE
#>
#> $cloud_cover$unit
#> [1] "okta"
#>
#> $cloud_cover$`_table`
#> [1] "2700"
#>
#> $cloud_cover$`_code`
#> [1] 6
#>
#>
#> $surface_wind
#> $surface_wind$direction
#> $surface_wind$direction$value
#> [1] 150
#>
#> $surface_wind$direction$varAllUnknown
#> [1] FALSE
#>
#> $surface_wind$direction$calm
#> [1] FALSE
#>
#> $surface_wind$direction$`_table`
#> [1] "0877"
#>
#> $surface_wind$direction$`_code`
#> [1] 15
#>
#> $surface_wind$direction$unit
#> [1] "deg"
#>
#>
#> $surface_wind$speed
#> $surface_wind$speed$value
#> [1] 6
#>
#> $surface_wind$speed$unit
#> [1] "KT"
#>
#>
#>
#> $air_temperature
#> $air_temperature$value
#> [1] 9.4
#>
#> $air_temperature$unit
#> [1] "Celsius"
#>
#>
#> $dewpoint_temperature
#> $dewpoint_temperature$value
#> [1] 4.7
#>
#> $dewpoint_temperature$unit
#> [1] "Celsius"
#>
#>
#> $station_pressure
#> $station_pressure$value
#> [1] 1011.1
#>
#> $station_pressure$unit
#> [1] "hPa"
#>
#>
#> $sea_level_pressure
#> $sea_level_pressure$value
#> [1] 1019.7
#>
#> $sea_level_pressure$unit
#> [1] "hPa"
#>
#>
#> $pressure_tendency
#> $pressure_tendency$tendency
#> $pressure_tendency$tendency$value
#> [1] 3
#>
#>
#> $pressure_tendency$change
#> $pressure_tendency$change$value
#> [1] 0.7
#>
#> $pressure_tendency$change$unit
#> [1] "hPa"
#>
#>
#>
#> $precipitation_s1
#> $precipitation_s1$amount
#> $precipitation_s1$amount$value
#> [1] 0
#>
#> $precipitation_s1$amount$quantifier
#> NULL
#>
#> $precipitation_s1$amount$trace
#> [1] FALSE
#>
#> $precipitation_s1$amount$`_table`
#> [1] "3590"
#>
#> $precipitation_s1$amount$`_code`
#> [1] 0
#>
#> $precipitation_s1$amount$unit
#> [1] "mm"
#>
#>
#> $precipitation_s1$time_before_obs
#> $precipitation_s1$time_before_obs$value
#> [1] 12
#>
#> $precipitation_s1$time_before_obs$unit
#> [1] "h"
#>
#> $precipitation_s1$time_before_obs$`_table`
#> [1] "4019"
#>
#> $precipitation_s1$time_before_obs$`_code`
#> [1] 1
#>
#>
#>
#> $cloud_types
#> $cloud_types$low_cloud_type
#> $cloud_types$low_cloud_type$value
#> [1] 5
#>
#>
#> $cloud_types$middle_cloud_type
#> $cloud_types$middle_cloud_type$value
#> [1] 4
#>
#>
#> $cloud_types$high_cloud_type
#> $cloud_types$high_cloud_type$value
#> [1] 1
#>
#>
#> $cloud_types$low_cloud_amount
#> $cloud_types$low_cloud_amount$value
#> [1] 1
#>
#> $cloud_types$low_cloud_amount$obscured
#> [1] FALSE
#>
#> $cloud_types$low_cloud_amount$unit
#> [1] "okta"
#>
#> $cloud_types$low_cloud_amount$`_table`
#> [1] "2700"
#>
#> $cloud_types$low_cloud_amount$`_code`
#> [1] 1
#>
#>
#>
synop_parser(rep(synop_code, 2), simplify = FALSE)
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_type$value
#> [1] "AAXX"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$day
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$day$value
#> [1] 1
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$hour
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$hour$value
#> [1] 0
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$value
#> [1] 4
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$unit
#> [1] "KT"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$estimated
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_id
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_id$value
#> [1] "88889"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$region
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$region$value
#> [1] "III"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$value
#> [1] 1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$in_group_1
#> [1] TRUE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$in_group_3
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator$value
#> [1] 2
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator$automatic
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$min
#> [1] 1500
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$max
#> [1] 2000
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$`_table`
#> [1] "1600"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$`_code`
#> [1] 7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$unit
#> [1] "m"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$value
#> [1] 40000
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$use90
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$`_table`
#> [1] "4377"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$`_code`
#> [1] 82
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$unit
#> [1] "m"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$value
#> [1] 6
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$obscured
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$unit
#> [1] "okta"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$`_table`
#> [1] "2700"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$`_code`
#> [1] 6
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$value
#> [1] 150
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$varAllUnknown
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$calm
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$`_table`
#> [1] "0877"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$`_code`
#> [1] 15
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$unit
#> [1] "deg"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed$value
#> [1] 6
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed$unit
#> [1] "KT"
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature$value
#> [1] 9.4
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature$unit
#> [1] "Celsius"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature$value
#> [1] 4.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature$unit
#> [1] "Celsius"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure$value
#> [1] 1011.1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure$unit
#> [1] "hPa"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure$value
#> [1] 1019.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure$unit
#> [1] "hPa"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$tendency
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$tendency$value
#> [1] 3
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change$value
#> [1] 0.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change$unit
#> [1] "hPa"
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$value
#> [1] 0
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$trace
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$`_table`
#> [1] "3590"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$`_code`
#> [1] 0
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$unit
#> [1] "mm"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$value
#> [1] 12
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$unit
#> [1] "h"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$`_table`
#> [1] "4019"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$`_code`
#> [1] 1
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_type$value
#> [1] 5
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$middle_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$middle_cloud_type$value
#> [1] 4
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$high_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$high_cloud_type$value
#> [1] 1
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$value
#> [1] 1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$obscured
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$unit
#> [1] "okta"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$`_table`
#> [1] "2700"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$`_code`
#> [1] 1
#>
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_type$value
#> [1] "AAXX"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$day
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$day$value
#> [1] 1
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$hour
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$obs_time$hour$value
#> [1] 0
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$value
#> [1] 4
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$unit
#> [1] "KT"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$wind_indicator$estimated
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_id
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_id$value
#> [1] "88889"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$region
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$region$value
#> [1] "III"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$value
#> [1] 1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$in_group_1
#> [1] TRUE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_indicator$in_group_3
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator$value
#> [1] 2
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$weather_indicator$automatic
#> [1] FALSE
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$min
#> [1] 1500
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$max
#> [1] 2000
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$`_table`
#> [1] "1600"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$`_code`
#> [1] 7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$lowest_cloud_base$unit
#> [1] "m"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$value
#> [1] 40000
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$use90
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$`_table`
#> [1] "4377"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$`_code`
#> [1] 82
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$visibility$unit
#> [1] "m"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$value
#> [1] 6
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$obscured
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$unit
#> [1] "okta"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$`_table`
#> [1] "2700"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_cover$`_code`
#> [1] 6
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$value
#> [1] 150
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$varAllUnknown
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$calm
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$`_table`
#> [1] "0877"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$`_code`
#> [1] 15
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$direction$unit
#> [1] "deg"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed$value
#> [1] 6
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$surface_wind$speed$unit
#> [1] "KT"
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature$value
#> [1] 9.4
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$air_temperature$unit
#> [1] "Celsius"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature$value
#> [1] 4.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$dewpoint_temperature$unit
#> [1] "Celsius"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure$value
#> [1] 1011.1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$station_pressure$unit
#> [1] "hPa"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure$value
#> [1] 1019.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$sea_level_pressure$unit
#> [1] "hPa"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$tendency
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$tendency$value
#> [1] 3
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change$value
#> [1] 0.7
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$pressure_tendency$change$unit
#> [1] "hPa"
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$value
#> [1] 0
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$quantifier
#> NULL
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$trace
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$`_table`
#> [1] "3590"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$`_code`
#> [1] 0
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$amount$unit
#> [1] "mm"
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$value
#> [1] 12
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$unit
#> [1] "h"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$`_table`
#> [1] "4019"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$precipitation_s1$time_before_obs$`_code`
#> [1] 1
#>
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_type$value
#> [1] 5
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$middle_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$middle_cloud_type$value
#> [1] 4
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$high_cloud_type
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$high_cloud_type$value
#> [1] 1
#>
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$value
#> [1] 1
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$obscured
#> [1] FALSE
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$unit
#> [1] "okta"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$`_table`
#> [1] "2700"
#>
#> $`AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541`$cloud_types$low_cloud_amount$`_code`
#> [1] 1
#>
#>
#>
#>
synop_parser(synop_code, as_data_frame = TRUE)
#> station_type station_id region obs_day obs_hour wind_unit wind_estimated
#> 1 AAXX 88889 III 1 0 KT FALSE
#> visibility cloud_cover wind_direction wind_speed air_temperature
#> 1 40000 6 150 6 9.4
#> dewpoint_temperature station_pressure sea_level_pressure pressure_tendency
#> 1 4.7 1011.1 1019.7 3
#> pressure_change precipitation_amount precipitation_time cloud_base_min
#> 1 0.7 0 12 1500
#> cloud_base_max low_cloud_type middle_cloud_type high_cloud_type
#> 1 2000 5 4 1
#> low_cloud_amount maximum_temperature minimum_temperature gust
#> 1 1 NA NA NA
#> cloudiness_height sunshine_duration snow_depth snow_depth_state
#> 1 NA NA NA NA
#> source
#> 1 AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541
synop_parser(rep(synop_code, 2), as_data_frame = TRUE)
#> station_type station_id region obs_day obs_hour wind_unit wind_estimated
#> 1 AAXX 88889 III 1 0 KT FALSE
#> 2 AAXX 88889 III 1 0 KT FALSE
#> visibility cloud_cover wind_direction wind_speed air_temperature
#> 1 40000 6 150 6 9.4
#> 2 40000 6 150 6 9.4
#> dewpoint_temperature station_pressure sea_level_pressure pressure_tendency
#> 1 4.7 1011.1 1019.7 3
#> 2 4.7 1011.1 1019.7 3
#> pressure_change precipitation_amount precipitation_time cloud_base_min
#> 1 0.7 0 12 1500
#> 2 0.7 0 12 1500
#> cloud_base_max low_cloud_type middle_cloud_type high_cloud_type
#> 1 2000 5 4 1
#> 2 2000 5 4 1
#> low_cloud_amount maximum_temperature minimum_temperature gust
#> 1 1 NA NA NA
#> 2 1 NA NA NA
#> cloudiness_height sunshine_duration snow_depth snow_depth_state
#> 1 NA NA NA NA
#> 2 NA NA NA NA
#> source
#> 1 AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541
#> 2 AAXX 01004 88889 12782 61506 10094 20047 30111 40197 53007 60001 81541