Crate spa

source · []
Expand description

Solar Position Algorithm module for Rust

Collection of algorithms calculating sunrise/sunset and azimuth/zenith-angle.

Structs

The solar position

Enums

The error conditions

The sun-rise and sun-set as UTC, otherwise permanent polar-night or polar-day

Functions

Returning solar position (azimuth and zenith-angle) at time t and geo-pos lat and lon

Returning Sunrise and Sunset (or PolarNight/PolarDay) at geo-pos lat/lon at time t (UTC)