kstars
indicom.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00034 #ifndef INDICOM_H
00035 #define INDICOM_H
00036
00037 #include <time.h>
00038
00039 #define J2000 2451545.0
00040 #define TRACKING_THRESHOLD 0.05
00041 #define ERRMSG_SIZE 1024
00042
00043 extern const char * Direction[];
00044 extern const char * SolarSystem[];
00045
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049
00054
00059 double DegToRad( double num );
00060
00065 double RadToDeg( double num );
00066
00074 void SinCos( double Degrees, double *sina, double *cosa );
00075
00084
00087 double obliquity();
00088
00090 double constAberr();
00091
00093 double sunMeanAnomaly();
00094
00096 double sunMeanLongitude();
00097
00099 double sunTrueAnomaly();
00100
00102 double sunTrueLongitude();
00103
00105 double earthPerihelionLongitude();
00106
00108 double earthEccentricity();
00109
00111 double dObliq();
00112
00114 double dEcLong();
00115
00117 double julianCenturies();
00118
00120 double p1( int i1, int i2 );
00121
00123 double p2( int i1, int i2 );
00124
00128 void updateAstroValues( double jd );
00129
00135 double calculateDec(double latitude, double SDTime);
00136
00141 double calculateRA(double SDTime);
00142
00150 double angularDistance(double fromRA, double fromDEC, double toRA, double toDEC);
00151
00156 void nutate(double *RA, double *Dec);
00157
00162 void aberrate(double *RA, double *Dec);
00163
00170 void precessFromAnyEpoch(double jd0, double jdf, double *RA, double *Dec);
00171
00178 void apparentCoord(double jd0, double jdf, double *RA, double *Dec);
00179
00187
00204 int fs_sexa (char *out, double a, int w, int fracbase);
00205
00214 int f_scansexa (const char *str0, double *dp);
00215
00221 int extractISOTime(char *timestr, struct tm *utm);
00222
00227 double UTtoJD(struct tm *utm);
00228
00240 double JDtoGMST( double jd );
00241
00242 void getSexComponents(double value, int *d, int *m, int *s);
00243
00250 int numberFormat (char *buf, const char *format, double value);
00251
00258 int numberFormat (char *buf, const char *format, double value);
00259
00263 const char *timestamp (void);
00264
00267 #ifdef __cplusplus
00268 }
00269 #endif
00270
00271
00272 #endif