weather-reports-0.1.0 has been yanked.
weather-reports
A collection of weather report parsers
Supported Formats
- METAR
- Remark parsing
- SPECI
- TAF
Demo
> cargo run --release --example parse -
KSEA 290353Z 01008KT 10SM SCT200 19/09 A3004 RMK AO2 SLP179 T01940094
MetarReport {
identifier: "KSEA",
observation_time: ZuluDateTime {
day_of_month: 29,
hour: 3,
minute: 53,
is_zulu: true,
},
observation_type: None,
wind: Some(
Wind {
direction: Some(
0.17453292519943295,
),
speed: 4.115555555555556 m^1 s^-1,
peak_gust: None,
variance: None,
},
),
visibility: Some(
Visibility {
prevailing: 16093.44 m^1,
minimum_directional: None,
maximum_directional: None,
},
),
runway_visibility: [],
runway_reports: [],
weather: [],
cloud_cover: [
CloudCover {
coverage: Scattered,
base: Some(
6096.0 m^1,
),
cloud_type: None,
},
],
cavok: false,
temperatures: Some(
Temperatures {
air: 19.0 K^1,
dewpoint: Some(
9.0 K^1,
),
},
),
pressure: Some(
300400.0 m^-1 kg^1 s^-2,
),
accumulated_rainfall: None,
is_closed: false,
color_state: None,
next_color_state: None,
recent_weather: [],
sea_conditions: None,
trends: [],
remark: Some(
"RMK AO2 SLP179 T01940094\n",
),
maintenance_needed: false,
}
Success!