1 |
/* RCSid $Id: sun.h,v 2.1 2013/08/09 16:51:15 greg Exp $ */ |
2 |
/* |
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 |
/* sun calculation constants */ |
13 |
extern double s_latitude; |
14 |
extern double s_longitude; |
15 |
extern double s_meridian; |
16 |
|
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 |
#ifdef __cplusplus |
24 |
} |
25 |
#endif |
26 |
|
27 |
#endif /* _RAD_SUN_H_ */ |