LALPulsar  6.1.0.1-89842e6
ExtrapolatePulsarSpins.c File Reference

Defines functions to extrapolate the pulsar spin-paramters \( \{f, \dot{f},\ddot{f},...\} \) from one SSB epoch to another. More...

Prototypes

int XLALInitPulsarSpinRangeFromSpins (PulsarSpinRange *range, const LIGOTimeGPS *refTime, const PulsarSpins fkdot1, const PulsarSpins fkdot2)
 Initialise a PulsarSpinRange struct from two PulsarSpins structs. More...
 
int XLALExtrapolatePulsarSpinRange (PulsarSpinRange *range1, const PulsarSpinRange *range0, const REAL8 dtau)
 General pulsar-spin extrapolation function: given a "spin-range" (ie spins + spin-bands) range0 at time \( \tau_0 \) , propagate the whole spin-range to time \( \tau_1 \) . More...
 
int XLALExtrapolatePulsarSpins (PulsarSpins fkdot1, const PulsarSpins fkdot0, REAL8 dtau)
 Extrapolate the Pulsar spin-parameters \( \{f, \dot{f},\ddot{f},...\} \) (fkdot0) from the initial reference-epoch \( \tau_0 \) to the new reference-epoch \( \tau_1 \) . More...
 
int XLALExtrapolatePulsarPhase (REAL8 *phi1, const PulsarSpins fkdot1, const REAL8 phi0, const REAL8 dtau)
 Extrapolate phase \( \phi_0 \) from \( \tau_0 \) to \( \tau_1 \) , given the spins fkdot1 at \( \tau_1 \) . More...
 
int XLALCWSignalCoveringBand (REAL8 *minCoverFreq, REAL8 *maxCoverFreq, const LIGOTimeGPS *time1, const LIGOTimeGPS *time2, const PulsarSpinRange *spinRange, const REAL8 binaryMaxAsini, const REAL8 binaryMinPeriod, const REAL8 binaryMaxEcc)
 Determines a frequency band which covers the frequency evolution of a band of CW signals between two GPS times. More...
 
int XLALCWSignalBand (REAL8 *minFreq, REAL8 *maxFreq, const DetectorStateSeries *detStates, const PulsarDopplerParams *doppler)
 Determines the frequency band occupied by the frequency evolution of a given CW signal between two GPS times. More...
 
DetectorStateSeriesXLALPrepareCWSignalBand (SkyPosition *skypos_maxdoppler, const LIGOTimeGPS tStart, const REAL8 Tspan, const REAL8 dT, const LALDetector *detector, const EphemerisData *edat)
 (Optional) Helper function for using XLALCWSignalBand(): compute DetectorStateSeries for given time-span and detector, and optionally also the sky-position with maximal Doppler band-width. More...
 

Detailed Description

Defines functions to extrapolate the pulsar spin-paramters \( \{f, \dot{f},\ddot{f},...\} \) from one SSB epoch to another.

Author
Reinhard Prix

Definition in file ExtrapolatePulsarSpins.c.

Go to the source code of this file.

Macros

#define MYMAX(x, y)   ( (x) > (y) ? (x) : (y) )
 
#define MYMIN(x, y)   ( (x) < (y) ? (x) : (y) )
 
#define COPY_VECT(dst, src)   do { (dst)[0] = (src)[0]; (dst)[1] = (src)[1]; (dst)[2] = (src)[2]; } while(0)
 
#define SUB_VECT(dst, src)   do { (dst)[0] -= (src)[0]; (dst)[1] -= (src)[1]; (dst)[2] -= (src)[2]; } while(0)
 
#define MULT_VECT(v, lam)   do{ (v)[0] *= (lam); (v)[1] *= (lam); (v)[2] *= (lam); } while(0)
 
#define DOT_VECT(u, v)   ((u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2])
 
#define NORM_VECT(v)   sqrt(DOT_VECT(v,v))
 

Macro Definition Documentation

◆ MYMAX

#define MYMAX (   x,
  y 
)    ( (x) > (y) ? (x) : (y) )

Definition at line 54 of file ExtrapolatePulsarSpins.c.

◆ MYMIN

#define MYMIN (   x,
  y 
)    ( (x) < (y) ? (x) : (y) )

Definition at line 55 of file ExtrapolatePulsarSpins.c.

◆ COPY_VECT

#define COPY_VECT (   dst,
  src 
)    do { (dst)[0] = (src)[0]; (dst)[1] = (src)[1]; (dst)[2] = (src)[2]; } while(0)

Definition at line 56 of file ExtrapolatePulsarSpins.c.

◆ SUB_VECT

#define SUB_VECT (   dst,
  src 
)    do { (dst)[0] -= (src)[0]; (dst)[1] -= (src)[1]; (dst)[2] -= (src)[2]; } while(0)

Definition at line 57 of file ExtrapolatePulsarSpins.c.

◆ MULT_VECT

#define MULT_VECT (   v,
  lam 
)    do{ (v)[0] *= (lam); (v)[1] *= (lam); (v)[2] *= (lam); } while(0)

Definition at line 58 of file ExtrapolatePulsarSpins.c.

◆ DOT_VECT

#define DOT_VECT (   u,
 
)    ((u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2])

Definition at line 59 of file ExtrapolatePulsarSpins.c.

◆ NORM_VECT

#define NORM_VECT (   v)    sqrt(DOT_VECT(v,v))

Definition at line 60 of file ExtrapolatePulsarSpins.c.