Sun position
Sun position algorithm
|
Go to the documentation of this file.
149 double muRaSplat_maspa,
151 double annParallax_as,
162 double annParallax_as,
187 size_t epochStrSize);
190 void star_lightDeflection(
const V3D_Vector *pV,
sky1.h - astronomical coordinate conversion routines, IAU 1980
double muDec_radpcy
μδ - Proper motion in Dec (radian/Julian century)
void star_catalogToVectors(const Star_CatalogPosn *c, V3D_Vector *pV, V3D_Vector *vV_radpcy)
This routine takes the mean equatorial polar coordinate of an object and its proper motions,...
general.h - definitions of general use to (standard) C programs
@ STAR_ERRINMUDEC
Proper motion in Declination can't be decoded.
This structure contains relatively constant data, and is set up by one of the three functions sky_ini...
Nutation angles and obliquity.
@ STAR_ERRINDEC
Declination can't be decoded.
@ STAR_ERRINMURA
Proper motion in RA can't be decoded.
Star_CoordSys
Coordinate system equator and origin.
int star_setCatalogPosn(const char objectName[], double ra_h, double dec_deg, Star_CoordSys coordSys, double equinoxYear, double epochYear, double muRaSplat_maspa, double muDec_maspa, double annParallax_as, double radVel_kmps, Star_CatalogPosn *coordBlock)
This is one of three alternative routines for loading the information for a celestial object into a b...
bool epochSpecified
equinox and epoch were separately specified
Struct used for holding an object's coordinates in equatorial apparent or Intermediate coordinates.
@ STAR_NORA
Specification of Right Ascension is missing.
@ STAR_NOMURA
Specification of proper motion in RA is missing when mu_dec was provided.
@ STAR_ERRINRA
Right Ascension can't be decoded.
double ra_rad
α - Right Ascension (radian)
double parallax_rad
π - annual parallax (radian)
@ STAR_DECRANERR
Declination out of range.
char * star_epochToStr(const Star_CatalogPosn *coordBlock, char epochStr[], size_t epochStrSize)
Write the epoch used for proper motion calculations out in a standard form.
void star_getTopocentric(double j2kUtc_d, const Sky_DeltaTs *deltas, const Sky_SiteProp *site, Sky_SiteHorizon *topo)
Calls star_getApparent() to calculate the star's position in apparent coordinates,...
void star_annAberr(const V3D_Vector *p1V, const V3D_Vector *earthVelV_aupd, V3D_Vector *p2V)
Apply the annual aberration correction, to convert an object's coordinates from geocentric geometric ...
bool muRaInclCosDec
μα term already includes the cosδ factor.
Star_CoordSys cSys
equator and origin used for α & δ
@ APPARENT
True equator and equinox of date.
@ ICRS
International Celestial Reference System.
void star_getApparent(double j2kTT_cy, Sky_TrueEquatorial *pos)
Calculate the position of the currently selected star (or other object outside the solar system) as a...
void star_earth(double t1_cy, const V3D_Matrix *npM, V3D_Vector *ebV_au, V3D_Vector *ebdotV_aupd, V3D_Vector *sbV_au)
Calculate the position and velocity of the Earth, for use in making annual parallax and aberration co...
Star_CoordErrors
Errors detected when decoding a text coordinate string or when filling a block of type Star_CatalogPo...
@ STAR_ERRINVR
Radial Velocity can't be decoded.
double muRA_radpcy
μα - Proper motion in RA (radian/Julian century)
double epochT_cy
time zero for proper motion (Julian centuries since J2000, TT timescale)
@ FK4
Mean equator and equinox of Besselian epoch.
int star_setCatalogOldStyle(const char objectName[], double ra_h, double dec_deg, Star_CoordSys coordSys, double equinoxYear, double epochYear, double muRa_spcy, double muDec_aspcy, double annParallax_as, double radVel_kmps, Star_CatalogPosn *coordBlock)
This is one of three alternative routines for loading the information for a celestial object into a b...
int star_parseCoordString(const char inStr[], Star_CatalogPosn *coordBlock)
This is one of three alternative routines for loading the information for a celestial object into a b...
@ FK5
Mean equator and equinox of Julian epoch.
@ INTERMEDIATE
True equator and CIO of date.
sky.h - structures and routines for astronomical observing & tracking
@ STAR_NOMUDEC
Specification of proper motion in Dec is missing when mu_ra was provided.
vectors3d.h - Three dimensional geometry, vectors and matrices
@ STAR_ERRINPARAL
Parallax can't be decoded.
@ STAR_ERRINOBJ
Error extracting object name from the string.
Catalogue position of a celestial object.
@ STAR_RARANERR
Right Ascension out of range.
void star_catalogToApp(const Star_CatalogPosn *c, double j2kTT_cy, const Sky1_Nut1980 *nut, V3D_Vector *appV, double *dist_au)
Convert the catalogue coordinates for a star (or other object outside the Solar System) to apparent c...
void star_setCurrentObject(const Star_CatalogPosn *c)
Copies the catalogue information in c to internal storage for later use by star_getApparent()
@ STAR_PINEEDSPM
Proper motion must be specified if specifying parallax.
@ STAR_VRNEEDSPM
Proper motion and parallax must be specified if specifying Radial Velocity.
double radVel_aupcy
ν - radial velocity (AU/Julian century)
double dec_rad
δ - Declination (radian)
@ STAR_NORMAL
Normal successful completion.
@ STAR_NODEC
Specification of Declination is missing.
@ STAR_IVEPOCH
Invalid epoch or equinox specification.
Coordinates of a celestial object in the horizon frame, in both rectangular and polar forms.
char * star_equinoxToStr(const Star_CatalogPosn *coordBlock, char equinoxStr[], size_t eqnxStrSize)
Write the coordinate system and equinox out in a standard form.
double eqnxT_cy
time of equinox for FK4 or FK5 positions (Julian centuries since J2000, TT timescale)