ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/sun.h
Revision: 2.3
Committed: Thu Nov 7 23:15:07 2019 UTC (4 years, 6 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R3, HEAD
Changes since 2.2: +4 -1 lines
Log Message:
Added more accurate Michalsky solar position calculation and made correction to old IES handbook formula (thanks to Axel Jacobs)

File Contents

# User Rev Content
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_ */