ioss 0.0.3

Io celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum IoRegion {
    VolcanicPlains,
    SulfurFlows,
    MountainRange,
    PolarFrost,
}

pub fn named_region(latitude_deg: f64, longitude_deg: f64) -> IoRegion {
    if latitude_deg.abs() > 60.0 {
        IoRegion::PolarFrost
    } else if (250.0..=320.0).contains(&longitude_deg) {
        IoRegion::VolcanicPlains
    } else if (-30.0..=-15.0).contains(&latitude_deg) && (110.0..=150.0).contains(&longitude_deg) {
        IoRegion::MountainRange
    } else {
        IoRegion::SulfurFlows
    }
}