37#include <lal/UserInput.h>
38#include <lal/LALInitBarycenter.h>
39#include <lal/ComputeFstat.h>
40#include <lal/LALString.h>
41#include <lal/LALPulsarVCSInfo.h>
88main(
int argc,
char *argv[] )
126 printf(
"----- Input parameters:\n" );
127 printf(
"tGPS = { %d, %d }\n", config.timeGPS.gpsSeconds, config.timeGPS.gpsNanoSeconds );
128 printf(
"Detector = %s\n", config.det->frDetector.name );
129 printf(
"Sky position: longitude = %g rad, latitude = %g rad [equatorial coordinates]\n", config.skypos.longitude, config.skypos.latitude );
132 printf(
"----- Antenna pattern functions:\n" );
133 printf(
"a = %.8g\nb = %.8g\n", a0 / config.sinzeta,
b0 / config.sinzeta );
136 printf(
"----- Detector & Earth state:\n" );
138 printf(
"Detector position [ICRS J2000. Units=sec]: rDet = {%g, %g, %g}\n",
pos[0],
pos[1],
pos[2] );
140 printf(
"Detector velocity [ICRS J2000. Units=c]: vDet = {%g, %g, %g}\n", vel[0], vel[1], vel[2] );
141 printf(
"Local mean sideral time: LMST = %g rad\n", detStates->
data[0].
LMST );
143 printf(
"----- SSB timing data:\n" );
144 printf(
"TOA difference tSSB - tDet = %g s\n", tSSB->
DeltaT->
data[0] );
145 printf(
"TOA rate of change dtSSB/dtDet - 1 = %g\n", tSSB->
Tdot->
data[0] - 1.0 );
199 if ( !cfg || !uvar || !app_name ) {
#define __func__
log an I/O error, i.e.
void LALCheckMemoryLeaks(void)
const LALVCSInfoList lalPulsarVCSInfoList
NULL-terminated list of VCS and build information for LALPulsar and its dependencies
int main(int argc, char *argv[])
int XLALDestroyConfig(ConfigVariables *cfg)
Destructor for internal configuration struct.
int vrbflg
defined in lal/lib/std/LALError.c
int XLALInitCode(ConfigVariables *cfg, const UserVariables_t *uvar, const char *app_name)
basic initializations: deal with user input and return standardized 'ConfigVariables'
int XLALInitUserVars(UserVariables_t *uvar)
register all "user-variables"
void XLALDestroyDetectorStateSeries(DetectorStateSeries *detStates)
Get rid of a DetectorStateSeries.
DetectorStateSeries * XLALGetDetectorStates(const LIGOTimeGPSVector *timestamps, const LALDetector *detector, const EphemerisData *edat, REAL8 tOffset)
Get the 'detector state' (ie detector-tensor, position, velocity, etc) for the given vector of timest...
EphemerisData * XLALInitBarycenter(const CHAR *earthEphemerisFile, const CHAR *sunEphemerisFile)
XLAL interface to reading ephemeris files 'earth' and 'sun', and return ephemeris-data in old backwar...
void XLALDestroyEphemerisData(EphemerisData *edat)
Destructor for EphemerisData struct, NULL robust.
int XLALComputeAntennaPatternCoeffs(REAL8 *ai, REAL8 *bi, const SkyPosition *skypos, const LIGOTimeGPS *tGPS, const LALDetector *site, const EphemerisData *edat)
Compute single time-stamp antenna-pattern coefficients a(t), b(t) Note: this function uses REAL8 prec...
#define XLAL_INIT_DECL(var,...)
char char * XLALStringDuplicate(const char *s)
const LALDetector * XLALGetSiteInfo(const CHAR *name)
Find the site geometry-information 'LALDetector' for given a detector name (or prefix).
LIGOTimeGPSVector * XLALCreateTimestampVector(UINT4 len)
Allocate a LIGOTimeGPSVector.
void XLALDestroyTimestampVector(LIGOTimeGPSVector *vect)
De-allocate a LIGOTimeGPSVector.
SSBtimes * XLALGetSSBtimes(const DetectorStateSeries *DetectorStates, SkyPosition pos, LIGOTimeGPS refTime, SSBprecision precision)
For a given DetectorStateSeries, calculate the time-differences , and their derivatives .
@ SSBPREC_RELATIVISTIC
detailed relativistic:
COORDINATESYSTEM_EQUATORIAL
void XLALDestroyREAL8Vector(REAL8Vector *vector)
#define XLAL_CHECK(assertion,...)
int XLALPrintError(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1
LIGOTimeGPS * XLALGPSSetREAL8(LIGOTimeGPS *epoch, REAL8 t)
Configuration settings required for and defining a coherent pulsar search.
REAL8 sinzeta
detector-arm angle correction (needed for GEO)
SkyPosition skypos
(Alpha,Delta,system).
LIGOTimeGPS timeGPS
GPS time to compute detector state for (LIGOtimeGPS format)
const LALDetector * det
LIGODetector struct holding detector info.
LIGOTimeGPSVector * timestamps
timestamps vector holding 1 element: timeGPS
EphemerisData * edat
ephemeris data
REAL8 rDetector[3]
Cartesian coords of detector position in ICRS J2000.
REAL8 LMST
local mean sidereal time at the detector-location in radians
Timeseries of DetectorState's, representing the detector-info at different timestamps.
DetectorState * data
array of DetectorState entries
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
A vector of 'timestamps' of type LIGOTimeGPS.
LIGOTimeGPS * data
array of timestamps
Simple container for two REAL8-vectors, namely the SSB-timings DeltaT_alpha and Tdot_alpha,...
REAL8Vector * Tdot
dT/dt : time-derivative of SSB-time wrt local time for SFT-alpha
REAL8Vector * DeltaT
Time-difference of SFT-alpha - tau0 in SSB-frame.
REAL8 Alpha
Right ascension [radians] alpha of pulsar.
CHAR * ephemSun
Sun ephemeris file to use.
CHAR * ephemEarth
Earth ephemeris file to use.
REAL8 Delta
Declination [radians] delta of pulsar.
CHAR * detector
detector name
LALStringVector * timeGPS
GPS timestamps to compute detector state for (REAL8 format)
REAL8 timeGPS
GPS time to compute detector state for (REAL8 format)