trick/trick_models/helios/include/sun_pred.h

58 lines
2.2 KiB
C
Raw Normal View History

2015-02-26 15:02:31 +00:00
/*
* $Id: sun_pred.h 1178 2010-10-25 16:18:54Z wwoodard $
*/
/*************************************************************************
PURPOSE: (SUN sim)
**************************************************************************/
#ifndef SUN_PRED_H
#define SUN_PRED_H
#include <wchar.h>
typedef struct {
int year; /* (-- ) Year (-4712 .. INT_MAX) */
int month; /* (-- ) Month (Jan=1, ... Dec=12) */
int day; /* (day) Day of the month (1..31) */
int hour; /* (hr ) Hour of the day (0..23) */
int min; /* (min) Minute of the hour (0..59) */
double sec; /* (s ) Second of the minute (0..59) */
} CALENDAR_DATE;
typedef struct {
double observer_latitude; /* (d) */
double observer_longitude; /* (d) */
CALENDAR_DATE local_time; /* (--) */
double local_sidereal_time; /* (s) */
double sidereal_time_at_Greenwich; /* (s) */
int observer_offset_from_UTC; /* (hr) */
CALENDAR_DATE utc; /* (--) */
double JD_start; /* (day) Julian date at the beginning of the sim run.*/
double JD; /* (day) Current Julian date */
double right_ascension; /* (d) */
double declination; /* (d) */
double hour_angle; /* (d) */
double solar_azimuth; /* (d) */
double solar_elevation; /* (d) */
wchar_t* label_UTC; /* (--) wide character pointer */
wchar_t* label_JD; /* (--) wide character pointer */
wchar_t* label_Azimuth; /* (--) wide character pointer */
wchar_t* label_Elevation; /* (--) wide character pointer */
} SUN_PRED;
#ifdef __cplusplus
extern "C" {
#endif
int sun_pred_default_data( SUN_PRED* S ) ;
int sun_pred_cyclic( SUN_PRED* S, double current_sim_time ) ;
int sun_pred_init( SUN_PRED* S ) ;
int sun_pred_shutdown( void ) ;
int sun_pred_slow_display( SUN_PRED* S ) ;
int sun_pred_fast_display( SUN_PRED* S ) ;
#ifdef __cplusplus
}
#endif
#endif