LALPulsar  6.1.0.1-89842e6
create_time_correction_ephemeris.h File Reference

Prototypes

void get_input_args (inputParams_t *inputParams, int argc, char *argv[])
 
double fortran_mod (double a, double p)
 
int open_file (char fname[MAXFNAME])
 
double read_double (void)
 
int read_int (void)
 
void close_file (void)
 
double FB_deltaT (long double mjd_tt, char fname[MAXFNAME])
 
double IF_deltaT (long double mjd_tt)
 
void IFTE_init (const char fname[MAXFNAME])
 
void IFTE_close_file (void)
 
static void IFTEinterp (struct IFTE_interpolation_info *iinfo, const double coef[], const double t[2], const int ncf, const int ncm, const int na, const int ifl, double posvel[])
 
void IFTE_get_Vals (double JDeph0, double JDeph1, int kind, double *res)
 
void IFTE_get_DeltaT_DeltaTDot (double Teph0, double Teph1, double *DeltaT, double *DeltaTDot)
 
double IFTE_DeltaT (double Teph0, double Teph1)
 
void IFTswap8 (char *dword)
 
void IFTswapDouble (double *dbl)
 
void IFTswapInts (int *word, int n)
 
void IFTswapInt (int *word)
 
void IFTswap4 (char *word)
 
void IFTswap8N (char *dwords, int n)
 
void IFTswapDoubles (double *dbl, int N)
 

Go to the source code of this file.

Data Structures

struct  inputParams_t
 
struct  IFTE_interpolation_info
 
struct  IFTEphemeris
 

Macros

#define TT2TDB_FILE   "/ephemeris/TDB.1950.2050"
 
#define IFTEPH_FILE   "/ephemeris/TIMEEPH_short.te405"
 
#define MAXFNAME   512
 
#define MJDEPOCH   44244.0
 
#define DAYSTOSEC   86400.0
 
#define GPS2TT   51.184
 
#define IFTE_TEPH0   -65.564518e-6
 
#define IFTE_KM1   1.55051979176e-8
 
#define IFTE_K   (((long double)1.0) + ((long double)IFTE_KM1))
 
#define USAGE
 

Enumerations

enum  etype { TT2TDB , TT2TCB }
 

Variables

static IFTEphemeris ifte
 

Macro Definition Documentation

◆ TT2TDB_FILE

#define TT2TDB_FILE   "/ephemeris/TDB.1950.2050"

Definition at line 37 of file create_time_correction_ephemeris.h.

◆ IFTEPH_FILE

#define IFTEPH_FILE   "/ephemeris/TIMEEPH_short.te405"

Definition at line 39 of file create_time_correction_ephemeris.h.

◆ MAXFNAME

#define MAXFNAME   512

Definition at line 41 of file create_time_correction_ephemeris.h.

◆ MJDEPOCH

#define MJDEPOCH   44244.0

Definition at line 43 of file create_time_correction_ephemeris.h.

◆ DAYSTOSEC

#define DAYSTOSEC   86400.0

Definition at line 44 of file create_time_correction_ephemeris.h.

◆ GPS2TT

#define GPS2TT   51.184

Definition at line 45 of file create_time_correction_ephemeris.h.

◆ IFTE_TEPH0

#define IFTE_TEPH0   -65.564518e-6

Definition at line 49 of file create_time_correction_ephemeris.h.

◆ IFTE_KM1

#define IFTE_KM1   1.55051979176e-8

Definition at line 54 of file create_time_correction_ephemeris.h.

◆ IFTE_K

#define IFTE_K   (((long double)1.0) + ((long double)IFTE_KM1))

Definition at line 55 of file create_time_correction_ephemeris.h.

◆ USAGE

#define USAGE
Value:
"Usage: %s [options]\n\n"\
" --help display this message\n"\
" --verbose display all error messages\n"\
" --ephem-type TEMPO/TDB or TEMPO2/TCB/Teph\n"\
" --output-path path into which to output the ascii ephemeris (the\n\ file name will get constructed from the ephemeris type\n\ and the start and end years of the input times.)\n"\
" --start a start GPS time\n"\
" --end an end GPS time\n"\
" --interval an interval (in seconds) between entries\n"\
"\n"

Definition at line 57 of file create_time_correction_ephemeris.h.

Enumeration Type Documentation

◆ etype

enum etype
Enumerator
TT2TDB 
TT2TCB 

Definition at line 70 of file create_time_correction_ephemeris.h.

Function Documentation

◆ get_input_args()

void get_input_args ( inputParams_t inputParams,
int  argc,
char argv[] 
)

Definition at line 146 of file create_time_correction_ephemeris.c.

◆ fortran_mod()

double fortran_mod ( double  a,
double  p 
)

Definition at line 435 of file create_time_correction_ephemeris.c.

◆ open_file()

int open_file ( char  fname[MAXFNAME])

Definition at line 356 of file create_time_correction_ephemeris.c.

◆ read_double()

double read_double ( void  )

Definition at line 413 of file create_time_correction_ephemeris.c.

◆ read_int()

int read_int ( void  )

Definition at line 392 of file create_time_correction_ephemeris.c.

◆ close_file()

void close_file ( void  )

Definition at line 387 of file create_time_correction_ephemeris.c.

◆ FB_deltaT()

double FB_deltaT ( long double  mjd_tt,
char  fname[MAXFNAME] 
)

Definition at line 260 of file create_time_correction_ephemeris.c.

◆ IF_deltaT()

double IF_deltaT ( long double  mjd_tt)

Definition at line 345 of file create_time_correction_ephemeris.c.

◆ IFTE_init()

void IFTE_init ( const char  fname[MAXFNAME])

Definition at line 444 of file create_time_correction_ephemeris.c.

◆ IFTE_close_file()

void IFTE_close_file ( void  )

Definition at line 518 of file create_time_correction_ephemeris.c.

◆ IFTEinterp()

static void IFTEinterp ( struct IFTE_interpolation_info iinfo,
const double  coef[],
const double  t[2],
const int  ncf,
const int  ncm,
const int  na,
const int  ifl,
double  posvel[] 
)
static

◆ IFTE_get_Vals()

void IFTE_get_Vals ( double  JDeph0,
double  JDeph1,
int  kind,
double *  res 
)

Definition at line 599 of file create_time_correction_ephemeris.c.

◆ IFTE_get_DeltaT_DeltaTDot()

void IFTE_get_DeltaT_DeltaTDot ( double  Teph0,
double  Teph1,
double *  DeltaT,
double *  DeltaTDot 
)

Definition at line 663 of file create_time_correction_ephemeris.c.

◆ IFTE_DeltaT()

double IFTE_DeltaT ( double  Teph0,
double  Teph1 
)

Definition at line 672 of file create_time_correction_ephemeris.c.

◆ IFTswap8()

void IFTswap8 ( char dword)

Definition at line 550 of file create_time_correction_ephemeris.c.

◆ IFTswapDouble()

void IFTswapDouble ( double *  dbl)

Definition at line 567 of file create_time_correction_ephemeris.c.

◆ IFTswapInts()

void IFTswapInts ( int word,
int  n 
)

Definition at line 542 of file create_time_correction_ephemeris.c.

◆ IFTswapInt()

void IFTswapInt ( int word)

Definition at line 537 of file create_time_correction_ephemeris.c.

◆ IFTswap4()

void IFTswap4 ( char word)

Definition at line 526 of file create_time_correction_ephemeris.c.

◆ IFTswap8N()

void IFTswap8N ( char dwords,
int  n 
)

Definition at line 572 of file create_time_correction_ephemeris.c.

◆ IFTswapDoubles()

void IFTswapDoubles ( double *  dbl,
int  N 
)

Definition at line 593 of file create_time_correction_ephemeris.c.

Variable Documentation

◆ ifte

IFTEphemeris ifte
static

Definition at line 123 of file create_time_correction_ephemeris.h.