| 1 |
greg |
2.3 |
/* RCSid $Id: sun.h,v 2.2 2014/07/30 17:30:27 greg Exp $ */
|
| 2 |
greg |
2.1 |
/*
|
| 3 |
|
|
* Header file for solar position calculations
|
| 4 |
|
|
*/
|
| 5 |
|
|
|
| 6 |
|
|
#ifndef _RAD_SUN_H_
|
| 7 |
|
|
#define _RAD_SUN_H_
|
| 8 |
|
|
|
| 9 |
|
|
#ifdef __cplusplus
|
| 10 |
|
|
extern "C" {
|
| 11 |
|
|
#endif
|
| 12 |
greg |
2.2 |
/* sun calculation constants */
|
| 13 |
|
|
extern double s_latitude;
|
| 14 |
|
|
extern double s_longitude;
|
| 15 |
|
|
extern double s_meridian;
|
| 16 |
greg |
2.1 |
|
| 17 |
|
|
extern int jdate(int month, int day);
|
| 18 |
|
|
extern double stadj(int jd);
|
| 19 |
|
|
extern double sdec(int jd);
|
| 20 |
|
|
extern double salt(double sd, double st);
|
| 21 |
|
|
extern double sazi(double sd, double st);
|
| 22 |
|
|
|
| 23 |
greg |
2.3 |
extern double mjdate(int year, int month, int day, double hour);
|
| 24 |
|
|
extern double msdec(double mjd, double *stp);
|
| 25 |
|
|
|
| 26 |
greg |
2.1 |
#ifdef __cplusplus
|
| 27 |
|
|
}
|
| 28 |
|
|
#endif
|
| 29 |
|
|
|
| 30 |
|
|
#endif /* _RAD_SUN_H_ */
|