27 #include <lal/StringInput.h>
28 #include <lal/LALConstants.h>
29 #include <lal/LALString.h>
31 #include <lal/UserInputParse.h>
33 #include <lal/TranslateMJD.h>
56 XLAL_CHECK_NULL ( (mjdFracDays < 1) && (mjdFracDays >= 0),
XLAL_EDOM,
"mjdFracDays = %g must be within [0, 1) days\n", mjdFracDays );
62 frac2 = modf ( gpsSeconds2, &int2 );
#define XLAL_BILLION_INT4
#define XLAL_BILLION_REAL8
const REAL8 TAI_minus_UTC_at_GPS0
offset between TAI and UTC at GPS epoch, ie number of leap seconds at GPS epoch
const REAL8 GPS0_in_MJDUTC
GPS epoch [1980 JAN 6 0h UTC] expressed in MJD(UTC)
const REAL8 TT_minus_TAI
constant offset between TT and TAI epochs (see e.g. Table 1 in ,)
const REAL8 TT_minus_UTC_at_GPS0
= TT_minus_TAI + TAI_minus_UTC_at_GPS0, ie offset between TT and UTC at GPS epoch
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
LIGOTimeGPS * XLALTranslateMJDTTtoGPS(LIGOTimeGPS *gps, INT4 mjdDays, REAL8 mjdFracDays)
convert given MJD(TT) time, mjd = mjdDays + mjdFracDays into LIGOTimeGPS format, preserving full (ns)...
LIGOTimeGPS * XLALTranslateStringMJDTTtoGPS(LIGOTimeGPS *gps, const char *mjdString)
Parse and convert given string representing MJD(TT) time into LIGOTimeGPS gps time,...
#define XLAL_CHECK_NULL(assertion,...)
Macro to test an assertion and invoke a failure if it is not true in a function that returns a pointe...
@ XLAL_SUCCESS
Success return value (not an error number)
@ XLAL_EFUNC
Internal function call failed bit: "or" this with existing error number.
@ XLAL_EDOM
Input domain error.
@ XLAL_EINVAL
Invalid argument.
Epoch relative to GPS epoch, see LIGOTimeGPS type for more details.
INT4 gpsSeconds
Seconds since 0h UTC 6 Jan 1980.
INT4 gpsNanoSeconds
Residual nanoseconds.