solar.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _LN_SOLAR_H
00020 #define _LN_SOLAR_H
00021
00022 #include <libnova/ln_types.h>
00023
00024 #define LN_SOLAR_STANDART_HORIZON -0.8333
00025 #define LN_SOLAR_CIVIL_HORIZON -6.0
00026 #define LN_SOLAR_NAUTIC_HORIZON -12.0
00027 #define LN_SOLAR_ASTRONOMICAL_HORIZON -18.0
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00045 int LIBNOVA_EXPORT ln_get_solar_rst_horizon (double JD, struct ln_lnlat_posn * observer, double horizon, struct ln_rst_time * rst);
00046
00051 int LIBNOVA_EXPORT ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst);
00052
00057 void LIBNOVA_EXPORT ln_get_solar_geom_coords (double JD, struct ln_helio_posn * position);
00058
00063 void LIBNOVA_EXPORT ln_get_solar_equ_coords (double JD, struct ln_equ_posn * position);
00064
00069 void LIBNOVA_EXPORT ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * position);
00070
00075 void LIBNOVA_EXPORT ln_get_solar_geo_coords (double JD, struct ln_rect_posn * position);
00076
00081 double LIBNOVA_EXPORT ln_get_solar_sdiam (double JD);
00082
00083 #ifdef __cplusplus
00084 };
00085 #endif
00086
00087 #endif