forked from kevinboone/solunar_cmdline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
suntimes.h
31 lines (23 loc) · 1.08 KB
/
suntimes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*=======================================================================
solunar
suntimes.h
(c)2005-2012 Kevin Boone
=======================================================================*/
#pragma once
#include "latlong.h"
#include "datetime.h"
#include "error.h"
#define SUNTIMES_DEFAULT_ZENITH (90.0 + 50.0/60.0)
#define SUNTIMES_CIVIL_TWILIGHT (90 + 50.0/60.0 + 6)
#define SUNTIMES_NAUTICAL_TWILIGHT (90 + 50.0/60.0 + 12)
#define SUNTIMES_ASTRONOMICAL_TWILIGHT (90 + 50.0/60.0 + 18)
DateTime *SunTimes_get_sunrise (const LatLong *workingLatlong,
const DateTime *date, double zenith, const char *tz, Error **e);
DateTime *SunTimes_get_sunset (const LatLong *workingLatlong,
const DateTime *date, double zenith, const char *tz, Error **e);
DateTime *SunTimes_get_high_noon (const LatLong *latlong,
const DateTime *date, const char *tz, Error **e);
void suntimes_getSolarRAandDec (double MJD, double *ra, double *dec);
//double suntimes_getSinAltitude (double longitude, double latitude, double mjd);
double SunTimes_get_SA (const LatLong *latlong,
const DateTime *datetime);