#meteorology #climate #weather #qc #quality-control

olympian

Quality control routines for meteorological observations

7 releases (4 breaking)

0.5.0 Feb 6, 2025
0.4.2 Nov 4, 2024
0.4.1 Oct 25, 2024
0.3.2 Oct 12, 2023
0.1.0 Aug 16, 2023

#64 in Geospatial

Download history 93/week @ 2024-10-29 73/week @ 2024-11-05 5/week @ 2024-11-12 5/week @ 2024-11-19 1/week @ 2024-12-03 40/week @ 2024-12-10 147/week @ 2025-02-04 10/week @ 2025-02-11

157 downloads per month
Used in rove

LGPL-3.0-only

125KB
2.5K SLoC

Quality control routines for meteorological data.

In addition to the routines themselves, this crate also provides a Flag type, as well as SeriesCache and SpatialCache as standard formats for data to be fed into timeseries and spatial QC tests respectively.

use olympian::{checks::spatial::{buddy_check, BuddyCheckArgs}, Flag, SpatialTree, SingleOrVec};

assert_eq!(
    buddy_check(
        &[Some(0.), Some(0.), Some(1.)],
        &SpatialTree::from_latlons(
            [60., 60., 60.].to_vec(),
            [60., 60.00011111, 60.00022222].to_vec(),
            [0., 0., 0.].to_vec(),
        ),
        &BuddyCheckArgs {
            radii: SingleOrVec::Single(10000.),
            min_buddies: SingleOrVec::Single(1),
            threshold: 1.,
            max_elev_diff: 200.,
            elev_gradient: -0.0065,
            min_std: 0.01,
            num_iterations: 2,
        },
        None,
    )
    .unwrap(),
    [Flag::Pass, Flag::Pass, Flag::Fail]
)

Dependencies

~9.5MB
~208K SLoC