use-cloud 0.1.0

Primitive cloud vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    33 out of 33 items documented1 out of 16 items with examples
  • Size
  • Source code size: 11.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 695.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-meteorology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-cloud

Primitive cloud vocabulary.

use-cloud models cloud kinds, cloud cover, cloud base, and simple cloud-layer composition. CloudCover stores oktas in 0..=8 for the initial stable convention. The crate does not classify clouds from images, process satellite data, or forecast cloud cover.

use use_cloud::{CloudBase, CloudCover, CloudKind, CloudLayer};

let layer = CloudLayer::new(CloudKind::Stratocumulus, CloudCover::new(6).unwrap())
    .with_base(CloudBase::new(900.0).unwrap());

assert_eq!(layer.kind(), &CloudKind::Stratocumulus);
assert_eq!(layer.cover().oktas(), 6);
assert_eq!(layer.base().unwrap().meters_agl(), 900.0);