45 #include <lal/LALStdlib.h>
47 #include <lal/TimeDelay.h>
48 #include <lal/SkyCoordinates.h>
49 #include <lal/DetectorSite.h>
53 #define DOUBLE_EPSILON 1.0536712127723507013e-08
82 strcpy(frdet1.
name,
"TEST IFO 1");
93 fprintf(stderr,
"TestDelay: XLALCreateDetector failed, line %i, %s\n",
107 fprintf(stderr,
"TestDelay: XLALCreateDetector output is wrong, line %i, %s\n",
109 fprintf(stderr,
"Got Det #1 location: (% 16.8e, % 16.8e, % 16.8e)\n",
112 fprintf(stderr,
"Expected: (% 16.8e, % 16.8e, % 16.8e)\n",
119 printf(
"Det #1 location: (%7.4e, %7.4e, %7.4e)\n",
124 strcpy(frdet2.
name,
"TEST IFO 2");
135 fprintf(stderr,
"TestDelay: XLALCreateDetector failed, line %i, %s\n",
151 "TestDelay: XLALTimeDelayFromEarthCenter() failed, line %i, %s\n",
172 printf(
"delay = %20.14e\n", delay);
185 fprintf(stderr,
"ERROR: computed delay differs from expected delay by amount greater than DOUBLE_EPSILON (% 14.8e); difference = % 14.8e\n",
LALDetector * XLALCreateDetector(LALDetector *detector, const LALFrDetector *frDetector, LALDetectorType type)
UNDOCUMENTED.
#define LAL_C_SI
Speed of light in vacuum, m s^-1.
#define LAL_REARTH_SI
Earth equatorial radius, m.
double REAL8
Double precision real floating-point number (8 bytes).
@ LALDETECTORTYPE_IFODIFF
IFO in differential mode.
@ COORDINATESYSTEM_EQUATORIAL
The sky-fixed equatorial coordinate system.
double XLALTimeDelayFromEarthCenter(const double detector_earthfixed_xyz_metres[3], double source_right_ascension_radians, double source_declination_radians, const LIGOTimeGPS *gpstime)
Compute difference in arrival time of the same signal at detector and at center of Earth-fixed frame.
#define XLAL_IS_REAL8_FAIL_NAN(val)
Tests if val is a XLAL REAL8 failure NaN.
REAL8 location[3]
The three components, in an Earth-fixed Cartesian coordinate system, of the position vector from the ...
Detector frame data structure Structure to contain the data that appears in a FrDetector structure in...
REAL8 vertexLongitudeRadians
The geodetic longitude of the vertex in radians.
REAL8 vertexLatitudeRadians
The geodetic latitude of the vertex in radians.
REAL4 vertexElevation
The height of the vertex above the reference ellipsoid in meters.
REAL4 xArmAzimuthRadians
The angle clockwise from North to the projection of the X arm (or bar's cylidrical axis) into the lo...
REAL4 yArmAltitudeRadians
The angle up from the local tangent plane of the reference ellipsoid to the Y arm in radians (unused...
REAL4 yArmAzimuthRadians
The angle clockwise from North to the projection of the Y arm into the local tangent plane of the re...
REAL4 xArmAltitudeRadians
The angle up from the local tangent plane of the reference ellipsoid to the X arm (or bar's cylidric...
CHAR name[LALNameLength]
A unique identifying string.
Epoch relative to GPS epoch, see LIGOTimeGPS type for more details.
INT4 gpsSeconds
Seconds since 0h UTC 6 Jan 1980.
INT4 gpsNanoSeconds
Residual nanoseconds.
This structure stores the two spherical coordinates of a sky position; ie a generic latitude and long...
REAL8 longitude
The longitudinal coordinate (in radians), as defined above.
REAL8 latitude
The latitudinal coordinate (in radians), as defined above.
CoordinateSystem system
The coordinate system in which latitude/longitude are expressed.