diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-07 21:35:04 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-07 21:35:04 +0100 |
commit | ac2dd9331d2d3cf2559bf47f4285995f9e329624 (patch) | |
tree | 0a289b8a3812b8d202c5ccb9d136793267bf5e80 /src/solar.h | |
parent | misc minor improvements (diff) | |
download | redshift-ng-ac2dd9331d2d3cf2559bf47f4285995f9e329624.tar.gz redshift-ng-ac2dd9331d2d3cf2559bf47f4285995f9e329624.tar.bz2 redshift-ng-ac2dd9331d2d3cf2559bf47f4285995f9e329624.tar.xz |
Remove unused code
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/solar.h')
-rw-r--r-- | src/solar.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/solar.h b/src/solar.h index 39ed9b5..fc9d8fc 100644 --- a/src/solar.h +++ b/src/solar.h @@ -19,30 +19,9 @@ #ifndef REDSHIFT_SOLAR_H #define REDSHIFT_SOLAR_H -/* Model of atmospheric refraction near horizon (in degrees). */ -#define SOLAR_ATM_REFRAC 0.833 -#define SOLAR_ASTRO_TWILIGHT_ELEV -18.0 -#define SOLAR_NAUT_TWILIGHT_ELEV -12.0 #define SOLAR_CIVIL_TWILIGHT_ELEV -6.0 -#define SOLAR_DAYTIME_ELEV (0.0 - SOLAR_ATM_REFRAC) - -enum solar_time { - SOLAR_TIME_NOON = 0, - SOLAR_TIME_MIDNIGHT, - SOLAR_TIME_ASTRO_DAWN, - SOLAR_TIME_NAUT_DAWN, - SOLAR_TIME_CIVIL_DAWN, - SOLAR_TIME_SUNRISE, - SOLAR_TIME_SUNSET, - SOLAR_TIME_CIVIL_DUSK, - SOLAR_TIME_NAUT_DUSK, - SOLAR_TIME_ASTRO_DUSK, - SOLAR_TIME_MAX -}; - double solar_elevation(double date, double lat, double lon); -void solar_table_fill(double date, double lat, double lon, double *table); #endif /* ! REDSHIFT_SOLAR_H */ |