21 #ifndef _LALBARYCENTER_H
22 #define _LALBARYCENTER_H
26 #include <lal/LALStdio.h>
27 #include <lal/LALStdlib.h>
28 #include <lal/LALConstants.h>
29 #include <lal/DetectorSite.h>
72 typedef enum tagTimeCorrectionType {
86 typedef enum tagEphemerisType {
101 #define IFTE_JD0 2443144.5003725
102 #define IFTE_MJD0 43144.0003725
103 #define IFTE_TEPH0 -65.564518e-6
104 #define IFTE_LC 1.48082686742e-8
105 #define IFTE_KM1 1.55051979176e-8
106 #define IFTE_K (((long double)1.0) + ((long double)IFTE_KM1))
109 #define JPL_AU_DE405 149597870.6910000
110 #define JPL_AU_DE200 149597870.6600000
111 #define CURT_AU 149597870.6600
114 typedef struct tagPosVelAcc {
127 typedef struct tagEphemerisData {
154 typedef struct tagTimeCorrectionData {
167 typedef struct tagEarthState {
201 typedef struct tagBarycenterInput {
234 typedef struct tagEmissionTime {
int XLALBarycenterOpt(EmissionTime *emit, const BarycenterInput *baryinput, const EarthState *earth, BarycenterBuffer **buffer)
Speed optimized version of XLALBarycenter(), should be fully equivalent except for the additional buf...
EphemerisType
Enumerated type denoting the JPL solar system ephemeris to be used in calculating barycentre time cor...
int XLALBarycenterEarth(EarthState *earth, const LIGOTimeGPS *tGPS, const EphemerisData *edat)
Computes the position and orientation of the Earth, at some arrival time , specified LIGOTimeGPS inp...
int XLALBarycenter(EmissionTime *emit, const BarycenterInput *baryinput, const EarthState *earth)
Transforms from detector arrival time in GPS (as specified in the LIGOTimeGPS structure) to pulse em...
int XLALBarycenterEarthNew(EarthState *earth, const LIGOTimeGPS *tGPS, const EphemerisData *edat, const TimeCorrectionData *tdat, TimeCorrectionType ttype)
Computes the position and orientation of the Earth, at some arrival time, but unlike XLALBarycenterEa...
TimeCorrectionType
Enumerated type denoting the time system type to be produced in the solar system barycentring routine...
@ TIMECORRECTION_ORIGINAL
Basic output structure of LALBarycenterEarth.c.
TimeCorrectionType ttype
Time correction type.
REAL8 drse
d(rse)/d(tgps); dimensionless
REAL8 rse
length of vector se[3]; units = sec
REAL8 delpsi
variable describing effect of Earth nutation, at tgps
REAL8 einstein
the einstein delay equiv TDB - TDT or TCB - TDT
REAL8 gmstRad
Greenwich Mean Sidereal Time (GMST) in radians, at tgps.
REAL8 zA
variable describing effect of lunisolar precession, at tgps
REAL8 tzeA
variable describing effect of lunisolar precession, at tgps
REAL8 gastRad
Greenwich Apparent Sidereal Time, in radians, at tgps; Is basically the angle thru which Earth has sp...
REAL8 deinstein
d(einstein)/d(tgps)
REAL8 thetaA
variable describing effect of lunisolar precession, at tgps
REAL8 deleps
variable describing effect of Earth nutation, at tgps
Basic output structure produced by LALBarycenter.c.
REAL8 derot
d(erot)/d(tgps)
REAL8 deltaT
(TDB) - (GPS)
REAL8 roemer
the Roemer delay
REAL8 dshapiro
d(Shapiro)/d(tgps)
REAL8 shapiro
the Shapiro delay
REAL8 erot
Earth rotation delay.
LIGOTimeGPS te
pulse emission time (TDB); also sometimes called `‘arrival time (TDB) of same wavefront at SSB’'
REAL8 tDot
d(emission time in TDB)/d(arrival time in GPS)
REAL8 droemer
d(Roemer)/d(tgps)
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
INT4 nentriesE
The number of entries in Earth ephemeris table.
REAL8 dtStable
The spacing in sec between consecutive instants in Sun ephemeris table.
PosVelAcc * ephemE
Array containing pos,vel,acc of earth, as extracted from earth ephem file.
CHAR * filenameE
File containing Earth's position.
INT4 nentriesS
The number of entries in Sun ephemeris table.
EphemerisType etype
The ephemeris type e.g.
REAL8 dtEtable
The spacing in sec between consecutive instants in Earth ephemeris table.
PosVelAcc * ephemS
Array with pos, vel and acc for the sun (see ephemE)
CHAR * filenameS
File containing Sun's position.
Structure holding a REAL8 time, and a position, velocity and acceleration vector.
REAL8 gps
REAL8 timestamp.
This structure will contain a vector of time corrections used during conversion from TT to TDB/TCB/Te...
CHAR * timeEphemeris
File containing the time ephemeris.
REAL8 * timeCorrs
Array of time delays for converting TT to TDB/TCB from the Time table (seconds).
REAL8 timeCorrStart
The initial GPS time of the time delay table.
REAL8 dtTtable
The spacing in sec between consecutive instants in Time ephemeris table.
UINT4 nentriesT
The number of entries in Time ephemeris table.
internal (opaque) buffer type for optimized Barycentering function