Module error

Module error 

Source
Expand description

Error types for the solar positioning library.

Enums§

Error
Errors that can occur during solar position calculations.

Functions§

check_azimuth
Validates and normalizes an azimuth angle to the range [0, 360) degrees.
check_coordinates
Validates both latitude and longitude are within valid ranges.
check_latitude
Validates latitude is within the valid range (-90 to +90 degrees).
check_longitude
Validates longitude is within the valid range (-180 to +180 degrees).
check_pressure
Validates pressure is positive and reasonable for atmospheric calculations.
check_refraction_params_usable
Check if pressure and temperature parameters are usable for refraction correction.
check_temperature
Validates temperature is above absolute zero and reasonable for atmospheric calculations.
check_zenith_angle
Validates a zenith angle to be within the range [0, 180] degrees.

Type Aliases§

Result
Result type alias for operations in this crate.