• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

indicom.h

Go to the documentation of this file.
00001 /*
00002     INDI LIB
00003     Common routines used by all drivers
00004     Copyright (C) 2003 by Jason Harris (jharris@30doradus.org)
00005                   Elwood C. Downey
00006 
00007     This is the C version of the astronomical library in KStars
00008     modified by Jasem Mutlaq (mutlaqja@ikarustech.com)
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Lesser General Public
00012     License as published by the Free Software Foundation; either
00013     version 2.1 of the License, or (at your option) any later version.
00014 
00015     This library is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018     Lesser General Public License for more details.
00019 
00020     You should have received a copy of the GNU Lesser General Public
00021     License along with this library; if not, write to the Free Software
00022     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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        /* 3' for tracking */
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

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal