use-astronomical-observation 0.1.0

Primitive astronomical observation vocabulary for RustUse
Documentation
  • Coverage
  • 3.77%
    2 out of 53 items documented1 out of 13 items with examples
  • Size
  • Source code size: 15.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-astronomy
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-astronomical-observation

Primitive astronomical observation vocabulary.

use-astronomical-observation models non-empty observation identifiers, descriptive observation kinds, bands, instrument kinds, and seeing conditions. It does not control telescopes, fetch observations, reduce data, process spectra, or calibrate images.

use use_astronomical_observation::{
    AstronomicalObservationId, ObservationBand, ObservationInstrumentKind, ObservationKind,
    SeeingCondition,
};

let identifier = AstronomicalObservationId::new("obs-42").unwrap();

assert_eq!(identifier.as_str(), "obs-42");
assert_eq!(ObservationKind::Photometric.to_string(), "photometric");
assert_eq!(ObservationBand::Visible.to_string(), "visible");
assert_eq!(ObservationInstrumentKind::Telescope.to_string(), "telescope");
assert_eq!(SeeingCondition::Good.to_string(), "good");