Position of the sun in the sky.
More...
#include <sun.h>
|
static void | Angles (const double &, const double &, int, int, int, const double &, double &, double &) |
| Compute azimuth and altitude angles of Sun given a location and datetime.
|
|
|
static double | Day (int, int, int, double) |
| Get the days to J2000.
|
|
static double | f0 (double, double) |
| Compute the hour-angle.
|
|
static double | FNsun (double, double &, double &, double &) |
|
Position of the sun in the sky.
◆ Angles()
void Sun::Angles |
( |
const double & | latit, |
|
|
const double & | longit, |
|
|
int | year, |
|
|
int | month, |
|
|
int | day, |
|
|
const double & | hour, |
|
|
double & | azim, |
|
|
double & | altit ) |
|
static |
Compute azimuth and altitude angles of Sun given a location and datetime.
Azimuth is measured in degrees clockwise from north. Elevation is measured in degrees up from the horizon.
- Parameters
-
latit,longit | Latitude and longitude. |
year,month,day,hour | Explicit. |
azim,altit | Returned azimth and altitude. |
◆ Day()
double Sun::Day |
( |
int | y, |
|
|
int | m, |
|
|
int | d, |
|
|
double | h ) |
|
staticprotected |
Get the days to J2000.
Only works between 1901 to 2099.
- Parameters
-
h | Universal time, in decimal hours. |
y,m,d | Year, month and day. |
◆ f0()
double Sun::f0 |
( |
double | lat, |
|
|
double | declin ) |
|
staticprotected |
Compute the hour-angle.
- Parameters
-
lat,declin | Latitude and declination. |
◆ FNsun()
double Sun::FNsun |
( |
double | d, |
|
|
double & | L, |
|
|
double & | RA, |
|
|
double & | delta ) |
|
staticprotected |
Compute the ecliptic longitude of the sun.