rust_flightweather

Crates.iorust_flightweather
lib.rsrust_flightweather
version2.0.1
sourcesrc
created_at2024-08-07 18:55:37.540238
updated_at2024-09-04 21:11:18.902189
descriptionDecodes METAR and TAF
homepagehttps://gitlab.com/flightsimtools/r-fst/r-fw
repositoryhttps://gitlab.com/flightsimtools/r-fst/r-fw
max_upload_size
id1328706
size181,722
Lucas Greuloch (greluc)

documentation

README

Rust-FlightWeather

Pipeline Status main Pipeline Status develop Code Coverage Latest Release License: MIT Contributor Covenant

Table Of Contents

  1. Description
  2. Current Release Version
  3. License
  4. Contribution
  5. Team

Description

Rust-FlightWeather is a library that decodes a METAR or TAF.

It was forked from metar-rs written by Lily Hopkins.

Current Release Version

v2.0.1

Quick usage

This usage will print out the parsed data from a METAR:

use rust_flightweather::metar::Metar;

fn main() {
  let metar = "EGHI 282120Z 19015KT 140V220 6000 RA SCT006 BKN009 16/14 Q1006";
  let result = Metar::parse(metar).unwrap();
  println!("{:#?}", result);
}

This usage will print out the parsed data from a TAF:

use rust_flightweather::taf::Taf;

fn main() {
  let taf = "TAF LUDO 130530Z 1307/1316 31015KT 8000 SHRA FEW005 FEW010CB SCT018 BKN025 TEMPO 1311/1316 4000 +SHRA PROB30 TEMPO 1314/1316 TSRA SCT005 BKN010CB";
  let result = Taf::parse(taf).unwrap();
  println!("{:#?}", result);
}

Issues

METARs and TAFs are complicated structures. If you come across one of them that doesn't parse correctly, open an issue and include the METAR or TAF. This will significantly aid in debugging the issue.

Read Contribution for more information.

License

Rust-FlightWeather is licensed under the MIT License. You can find the license text under LICENSE.

For more information about this license, visit https://choosealicense.com/licenses/mit/.

Contribution

You can find the source code at https://gitlab.com/flightsimtools/r-fst/r-fw.

Read CONTRIBUTING when you wish to contribute to this project.

Note that this project is subject to a Contributor CODE OF CONDUCT. By participating in this project, you agree to abide by its terms.

Team

  • Lucas Greuloch (@greluc)

Commit count: 49

cargo fmt