Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TEMPOcomparison.c File Reference

Tests for CW barycentric timing functions by comparing to tempo2. More...

Prototypes

int initUserVars (int argc, char *argv[], UserVariables_t *uvar)
 register all "user-variables" More...
 
void TDBMJDtoGPS (LIGOTimeGPS *GPS, MJDTime MJD)
 
void AddIntervaltoMJD (double interval, MJDTime *MJDout, MJDTime MJDin)
 
void REAL8toMJD (MJDTime *MJD, REAL8 x)
 
int UTCMJDtoGPS (LIGOTimeGPS *GPS, MJDTime MJD, INT4 leap)
 
void UTCGPStoMJD (MJDTime *MJD, LIGOTimeGPS *GPS, INT4 leap)
 
void TDBGPStoMJD (MJDTime *MJD, LIGOTimeGPS GPS, INT4 leap)
 
REAL8 MJDtoREAL8 (MJDTime MJD)
 
void deltaMJD (MJDTime *deltaMJD, MJDTime *x, MJDTime *y)
 
void GPStoTDBMJD (MJDTime *TDBMJD, LIGOTimeGPS GPS)
 
int main (int argc, char *argv[])
 

Detailed Description

Tests for CW barycentric timing functions by comparing to tempo2.

Author
Chris Messenger

Definition in file TEMPOcomparison.c.

Go to the source code of this file.

Data Structures

struct  UserVariables_t
 user input variables More...
 
struct  MJDTime
 

Macros

#define TRUE   (1==1)
 
#define FALSE   (1==0)
 
#define GBT_LOCATION_X   882589.65
 
#define GBT_LOCATION_Y   -4924872.32
 
#define GBT_LOCATION_Z   3943729.348
 
#define NARRABRI_LOCATION_X   -4752329.7000
 
#define NARRABRI_LOCATION_Y   2790505.9340
 
#define NARRABRI_LOCATION_Z   -3200483.7470
 
#define ARECIBO_LOCATION_X   2390490.0
 
#define ARECIBO_LOCATION_Y   -5564764.0
 
#define ARECIBO_LOCATION_Z   1994727.0
 
#define NANSHAN_LOCATION_X   -228310.702
 
#define NANSHAN_LOCATION_Y   4631922.905
 
#define NANSHAN_LOCATION_Z   4367064.059
 
#define DSS_43_LOCATION_X   -4460892.6
 
#define DSS_43_LOCATION_Y   2682358.9
 
#define DSS_43_LOCATION_Z   -3674756.0
 
#define PARKES_LOCATION_X   -4554231.5
 
#define PARKES_LOCATION_Y   2816759.1
 
#define PARKES_LOCATION_Z   -3454036.3
 
#define JODRELL_LOCATION_X   3822252.643
 
#define JODRELL_LOCATION_Y   -153995.683
 
#define JODRELL_LOCATION_Z   5086051.443
 
#define VLA_LOCATION_X   -1601192.
 
#define VLA_LOCATION_Y   -5041981.4
 
#define VLA_LOCATION_Z   3554871.4
 
#define NANCAY_LOCATION_X   4324165.81
 
#define NANCAY_LOCATION_Y   165927.11
 
#define NANCAY_LOCATION_Z   4670132.83
 
#define EFFELSBERG_LOCATION_X   4033949.5
 
#define EFFELSBERG_LOCATION_Y   486989.4
 
#define EFFELSBERG_LOCATION_Z   4900430.8
 
#define JODRELLM4_LOCATION_X   3822252.643
 
#define JODRELLM4_LOCATION_Y   -153995.683
 
#define JODRELLM4_LOCATION_Z   5086051.443
 
#define GB300_LOCATION_X   881856.58
 
#define GB300_LOCATION_Y   -4925311.86
 
#define GB300_LOCATION_Z   3943459.70
 
#define GB140_LOCATION_X   882872.57
 
#define GB140_LOCATION_Y   -4924552.73
 
#define GB140_LOCATION_Z   3944154.92
 
#define GB853_LOCATION_X   882315.33
 
#define GB853_LOCATION_Y   -4925191.41
 
#define GB853_LOCATION_Z   3943414.05
 
#define LA_PALMA_LOCATION_X   5327021.651
 
#define LA_PALMA_LOCATION_Y   -1719555.576
 
#define LA_PALMA_LOCATION_Z   3051967.932
 
#define Hobart_LOCATION_X   -3950077.96
 
#define Hobart_LOCATION_Y   2522377.31
 
#define Hobart_LOCATION_Z   -4311667.52
 
#define Hartebeesthoek_LOCATION_X   5085442.780
 
#define Hartebeesthoek_LOCATION_Y   2668263.483
 
#define Hartebeesthoek_LOCATION_Z   -2768697.034
 
#define WSRT_LOCATION_X   3828445.659
 
#define WSRT_LOCATION_Y   445223.600000
 
#define WSRT_LOCATION_Z   5064921.5677
 
#define COE_LOCATION_X   0.0
 
#define COE_LOCATION_Y   1.0
 
#define COE_LOCATION_Z   0.0
 

Variables

int vrbflg
 defined in lal/lib/std/LALError.c More...
 

Macro Definition Documentation

◆ TRUE

#define TRUE   (1==1)

Definition at line 48 of file TEMPOcomparison.c.

◆ FALSE

#define FALSE   (1==0)

Definition at line 49 of file TEMPOcomparison.c.

◆ GBT_LOCATION_X

#define GBT_LOCATION_X   882589.65

Definition at line 51 of file TEMPOcomparison.c.

◆ GBT_LOCATION_Y

#define GBT_LOCATION_Y   -4924872.32

Definition at line 52 of file TEMPOcomparison.c.

◆ GBT_LOCATION_Z

#define GBT_LOCATION_Z   3943729.348

Definition at line 53 of file TEMPOcomparison.c.

◆ NARRABRI_LOCATION_X

#define NARRABRI_LOCATION_X   -4752329.7000

Definition at line 55 of file TEMPOcomparison.c.

◆ NARRABRI_LOCATION_Y

#define NARRABRI_LOCATION_Y   2790505.9340

Definition at line 56 of file TEMPOcomparison.c.

◆ NARRABRI_LOCATION_Z

#define NARRABRI_LOCATION_Z   -3200483.7470

Definition at line 57 of file TEMPOcomparison.c.

◆ ARECIBO_LOCATION_X

#define ARECIBO_LOCATION_X   2390490.0

Definition at line 59 of file TEMPOcomparison.c.

◆ ARECIBO_LOCATION_Y

#define ARECIBO_LOCATION_Y   -5564764.0

Definition at line 60 of file TEMPOcomparison.c.

◆ ARECIBO_LOCATION_Z

#define ARECIBO_LOCATION_Z   1994727.0

Definition at line 61 of file TEMPOcomparison.c.

◆ NANSHAN_LOCATION_X

#define NANSHAN_LOCATION_X   -228310.702

Definition at line 63 of file TEMPOcomparison.c.

◆ NANSHAN_LOCATION_Y

#define NANSHAN_LOCATION_Y   4631922.905

Definition at line 64 of file TEMPOcomparison.c.

◆ NANSHAN_LOCATION_Z

#define NANSHAN_LOCATION_Z   4367064.059

Definition at line 65 of file TEMPOcomparison.c.

◆ DSS_43_LOCATION_X

#define DSS_43_LOCATION_X   -4460892.6

Definition at line 67 of file TEMPOcomparison.c.

◆ DSS_43_LOCATION_Y

#define DSS_43_LOCATION_Y   2682358.9

Definition at line 68 of file TEMPOcomparison.c.

◆ DSS_43_LOCATION_Z

#define DSS_43_LOCATION_Z   -3674756.0

Definition at line 69 of file TEMPOcomparison.c.

◆ PARKES_LOCATION_X

#define PARKES_LOCATION_X   -4554231.5

Definition at line 71 of file TEMPOcomparison.c.

◆ PARKES_LOCATION_Y

#define PARKES_LOCATION_Y   2816759.1

Definition at line 72 of file TEMPOcomparison.c.

◆ PARKES_LOCATION_Z

#define PARKES_LOCATION_Z   -3454036.3

Definition at line 73 of file TEMPOcomparison.c.

◆ JODRELL_LOCATION_X

#define JODRELL_LOCATION_X   3822252.643

Definition at line 75 of file TEMPOcomparison.c.

◆ JODRELL_LOCATION_Y

#define JODRELL_LOCATION_Y   -153995.683

Definition at line 76 of file TEMPOcomparison.c.

◆ JODRELL_LOCATION_Z

#define JODRELL_LOCATION_Z   5086051.443

Definition at line 77 of file TEMPOcomparison.c.

◆ VLA_LOCATION_X

#define VLA_LOCATION_X   -1601192.

Definition at line 79 of file TEMPOcomparison.c.

◆ VLA_LOCATION_Y

#define VLA_LOCATION_Y   -5041981.4

Definition at line 80 of file TEMPOcomparison.c.

◆ VLA_LOCATION_Z

#define VLA_LOCATION_Z   3554871.4

Definition at line 81 of file TEMPOcomparison.c.

◆ NANCAY_LOCATION_X

#define NANCAY_LOCATION_X   4324165.81

Definition at line 83 of file TEMPOcomparison.c.

◆ NANCAY_LOCATION_Y

#define NANCAY_LOCATION_Y   165927.11

Definition at line 84 of file TEMPOcomparison.c.

◆ NANCAY_LOCATION_Z

#define NANCAY_LOCATION_Z   4670132.83

Definition at line 85 of file TEMPOcomparison.c.

◆ EFFELSBERG_LOCATION_X

#define EFFELSBERG_LOCATION_X   4033949.5

Definition at line 87 of file TEMPOcomparison.c.

◆ EFFELSBERG_LOCATION_Y

#define EFFELSBERG_LOCATION_Y   486989.4

Definition at line 88 of file TEMPOcomparison.c.

◆ EFFELSBERG_LOCATION_Z

#define EFFELSBERG_LOCATION_Z   4900430.8

Definition at line 89 of file TEMPOcomparison.c.

◆ JODRELLM4_LOCATION_X

#define JODRELLM4_LOCATION_X   3822252.643

Definition at line 91 of file TEMPOcomparison.c.

◆ JODRELLM4_LOCATION_Y

#define JODRELLM4_LOCATION_Y   -153995.683

Definition at line 92 of file TEMPOcomparison.c.

◆ JODRELLM4_LOCATION_Z

#define JODRELLM4_LOCATION_Z   5086051.443

Definition at line 93 of file TEMPOcomparison.c.

◆ GB300_LOCATION_X

#define GB300_LOCATION_X   881856.58

Definition at line 95 of file TEMPOcomparison.c.

◆ GB300_LOCATION_Y

#define GB300_LOCATION_Y   -4925311.86

Definition at line 96 of file TEMPOcomparison.c.

◆ GB300_LOCATION_Z

#define GB300_LOCATION_Z   3943459.70

Definition at line 97 of file TEMPOcomparison.c.

◆ GB140_LOCATION_X

#define GB140_LOCATION_X   882872.57

Definition at line 99 of file TEMPOcomparison.c.

◆ GB140_LOCATION_Y

#define GB140_LOCATION_Y   -4924552.73

Definition at line 100 of file TEMPOcomparison.c.

◆ GB140_LOCATION_Z

#define GB140_LOCATION_Z   3944154.92

Definition at line 101 of file TEMPOcomparison.c.

◆ GB853_LOCATION_X

#define GB853_LOCATION_X   882315.33

Definition at line 103 of file TEMPOcomparison.c.

◆ GB853_LOCATION_Y

#define GB853_LOCATION_Y   -4925191.41

Definition at line 104 of file TEMPOcomparison.c.

◆ GB853_LOCATION_Z

#define GB853_LOCATION_Z   3943414.05

Definition at line 105 of file TEMPOcomparison.c.

◆ LA_PALMA_LOCATION_X

#define LA_PALMA_LOCATION_X   5327021.651

Definition at line 107 of file TEMPOcomparison.c.

◆ LA_PALMA_LOCATION_Y

#define LA_PALMA_LOCATION_Y   -1719555.576

Definition at line 108 of file TEMPOcomparison.c.

◆ LA_PALMA_LOCATION_Z

#define LA_PALMA_LOCATION_Z   3051967.932

Definition at line 109 of file TEMPOcomparison.c.

◆ Hobart_LOCATION_X

#define Hobart_LOCATION_X   -3950077.96

Definition at line 111 of file TEMPOcomparison.c.

◆ Hobart_LOCATION_Y

#define Hobart_LOCATION_Y   2522377.31

Definition at line 112 of file TEMPOcomparison.c.

◆ Hobart_LOCATION_Z

#define Hobart_LOCATION_Z   -4311667.52

Definition at line 113 of file TEMPOcomparison.c.

◆ Hartebeesthoek_LOCATION_X

#define Hartebeesthoek_LOCATION_X   5085442.780

Definition at line 115 of file TEMPOcomparison.c.

◆ Hartebeesthoek_LOCATION_Y

#define Hartebeesthoek_LOCATION_Y   2668263.483

Definition at line 116 of file TEMPOcomparison.c.

◆ Hartebeesthoek_LOCATION_Z

#define Hartebeesthoek_LOCATION_Z   -2768697.034

Definition at line 117 of file TEMPOcomparison.c.

◆ WSRT_LOCATION_X

#define WSRT_LOCATION_X   3828445.659

Definition at line 119 of file TEMPOcomparison.c.

◆ WSRT_LOCATION_Y

#define WSRT_LOCATION_Y   445223.600000

Definition at line 120 of file TEMPOcomparison.c.

◆ WSRT_LOCATION_Z

#define WSRT_LOCATION_Z   5064921.5677

Definition at line 121 of file TEMPOcomparison.c.

◆ COE_LOCATION_X

#define COE_LOCATION_X   0.0

Definition at line 123 of file TEMPOcomparison.c.

◆ COE_LOCATION_Y

#define COE_LOCATION_Y   1.0

Definition at line 124 of file TEMPOcomparison.c.

◆ COE_LOCATION_Z

#define COE_LOCATION_Z   0.0

Definition at line 125 of file TEMPOcomparison.c.

Function Documentation

◆ initUserVars()

int initUserVars ( int  argc,
char argv[],
UserVariables_t uvar 
)

register all "user-variables"

Definition at line 634 of file TEMPOcomparison.c.

◆ TDBMJDtoGPS()

void TDBMJDtoGPS ( LIGOTimeGPS GPS,
MJDTime  MJD 
)

Definition at line 794 of file TEMPOcomparison.c.

◆ AddIntervaltoMJD()

void AddIntervaltoMJD ( double  interval,
MJDTime MJDout,
MJDTime  MJDin 
)

Definition at line 732 of file TEMPOcomparison.c.

◆ REAL8toMJD()

void REAL8toMJD ( MJDTime MJD,
REAL8  x 
)

Definition at line 696 of file TEMPOcomparison.c.

◆ UTCMJDtoGPS()

int UTCMJDtoGPS ( LIGOTimeGPS GPS,
MJDTime  MJD,
INT4  leap 
)

Definition at line 844 of file TEMPOcomparison.c.

◆ UTCGPStoMJD()

void UTCGPStoMJD ( MJDTime MJD,
LIGOTimeGPS GPS,
INT4  leap 
)

Definition at line 864 of file TEMPOcomparison.c.

◆ TDBGPStoMJD()

void TDBGPStoMJD ( MJDTime MJD,
LIGOTimeGPS  GPS,
INT4  leap 
)

Definition at line 880 of file TEMPOcomparison.c.

◆ MJDtoREAL8()

REAL8 MJDtoREAL8 ( MJDTime  MJD)

Definition at line 704 of file TEMPOcomparison.c.

◆ deltaMJD()

void deltaMJD ( MJDTime deltaMJD,
MJDTime x,
MJDTime y 
)

Definition at line 710 of file TEMPOcomparison.c.

◆ GPStoTDBMJD()

void GPStoTDBMJD ( MJDTime TDBMJD,
LIGOTimeGPS  GPS 
)

Definition at line 750 of file TEMPOcomparison.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 212 of file TEMPOcomparison.c.

Variable Documentation

◆ vrbflg

int vrbflg
extern

defined in lal/lib/std/LALError.c