metar

Crates.iometar
lib.rsmetar
version0.7.7
sourcesrc
created_at2019-09-29 21:30:24.184836
updated_at2023-10-04 10:38:41.971885
descriptionA fast METAR parsing library in pure Rust
homepagehttps://github.com/lilopkins/metar-rs
repositoryhttps://github.com/lilopkins/metar-rs
max_upload_size
id168687
size86,231
Lily Hopkins (lilopkins)

documentation

README

METAR parsing library for Rust

Testing

metar-rs Automated Testing

This library is being testing regularly with real-world METARs to find failures. The badge above indicates whether these tests are currently successful.

Quick usage

This simple usage will print out the parsed data from the METAR.

use metar::Metar;

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

Issues

METARs are complicated structures. If you come across a METAR that doesn't parse correctly, please open an issue and include the METAR. This will aid in debugging the issue significantly.

Commit count: 84

cargo fmt