astronomy
module core.utils.astronomy
Global Variables
- PROJECT_DIR
class Astronomy
method get_camtracker_coordinates
get_camtracker_coordinates(config: Config) → tuple[float, float, float]
Returns the coordinates from the CamTracker config file as (lat, lon, alt).
method get_current_sun_elevation
get_current_sun_elevation(
config: Config,
lat: Optional[float] = None,
lon: Optional[float] = None,
alt: Optional[float] = None,
datetime_object: Optional[datetime] = None
) → float
Computes current sun elevation in degree, based on the coordinates from the CamTracker config file.
method load_astronomical_dataset
load_astronomical_dataset() → None
Loads the astronomical dataset DE421 from the NASA JPL website, see https://ssd.jpl.nasa.gov/planets/eph_export.html.