#include <math.h>
#include <lal/LALError.h>
#include <lal/Date.h>
#include "ExtrapolatePulsarSpins.h"
Include dependency graph for ExtrapolatePulsarSpins.c:

Go to the source code of this file.
Defines | |
| #define | MYMAX(x, y) ( (x) > (y) ? (x) : (y) ) |
| #define | MYMIN(x, y) ( (x) < (y) ? (x) : (y) ) |
| #define | GPS2REAL8(gps) (1.0 * (gps).gpsSeconds + 1.e-9 * (gps).gpsNanoSeconds ) |
| #define | TRUE (1==1) |
| #define | FALSE (1==0) |
Functions | |
| NRCSID (EXTRAPOLATEPULSARSPINSC,"$Id: ExtrapolatePulsarSpins.c,v 1.14 2008/04/30 18:53:06 kipp Exp $") | |
| void | LALExtrapolatePulsarSpinRange (LALStatus *status, PulsarSpinRange *range1, LIGOTimeGPS epoch1, const PulsarSpinRange *range0) |
General pulsar-spin extraploation function: given a "spin-range" (ie spins + spin-bands) at time , propagate the whole spin-range to time . | |
| void | LALExtrapolatePulsarSpins (LALStatus *status, PulsarSpins fkdot1, LIGOTimeGPS epoch1, const PulsarSpins fkdot0, LIGOTimeGPS epoch0) |
Extrapolate the Pulsar spin-paramters (fkdotOld) from the initial reference-epoch (epoch0) to the new reference-epoch (epoch1). | |
| int | XLALExtrapolatePulsarSpins (PulsarSpins fkdotOut, const PulsarSpins fkdotIn, REAL8 DeltaTau) |
| Lightweight API to extrapolate PulsarSpins by a time-difference 'DeltaTau'. | |
| void | LALExtrapolatePulsarPhase (LALStatus *status, REAL8 *phi1, PulsarSpins fkdot1, LIGOTimeGPS epoch1, REAL8 phi0, LIGOTimeGPS epoch0) |
| Extrapolate phase phi0 from epoch0 to epoch1, given the spins fkdot1 at epoch1 Returns phi1 in the range [0, 2pi]. | |
Definition in file ExtrapolatePulsarSpins.c.
Definition at line 41 of file ExtrapolatePulsarSpins.c.
Definition at line 42 of file ExtrapolatePulsarSpins.c.
| #define GPS2REAL8 | ( | gps | ) | (1.0 * (gps).gpsSeconds + 1.e-9 * (gps).gpsNanoSeconds ) |
Definition at line 44 of file ExtrapolatePulsarSpins.c.
| #define TRUE (1==1) |
Definition at line 46 of file ExtrapolatePulsarSpins.c.
| #define FALSE (1==0) |
Definition at line 47 of file ExtrapolatePulsarSpins.c.
| NRCSID | ( | EXTRAPOLATEPULSARSPINSC | , | |
| "$Id: ExtrapolatePulsarSpins. | c, | |||
| v 1.14 2008/04/30 18:53:06 kipp Exp $" | ||||
| ) |
| void LALExtrapolatePulsarSpinRange | ( | LALStatus * | status, | |
| PulsarSpinRange * | range1, | |||
| LIGOTimeGPS | epoch1, | |||
| const PulsarSpinRange * | range0 | |||
| ) |
General pulsar-spin extraploation function: given a "spin-range" (ie spins + spin-bands) at time
, propagate the whole spin-range to time
.
NOTE: *range1 is allowed to point to the same spin-range as *range0: the input will be overwritten with the output.
NOTE2: The output-range is in the 'canonical' order of
, where
.
NOTE3: This function works correctly for both epoch1 > epoch0 and epoch1 <= epoch0 !
Definition at line 65 of file ExtrapolatePulsarSpins.c.
| void LALExtrapolatePulsarSpins | ( | LALStatus * | status, | |
| PulsarSpins | fkdot1, | |||
| LIGOTimeGPS | epoch1, | |||
| const PulsarSpins | fkdot0, | |||
| LIGOTimeGPS | epoch0 | |||
| ) |
Extrapolate the Pulsar spin-paramters
(fkdotOld) from the initial reference-epoch
(epoch0) to the new reference-epoch
(epoch1).
This is equivalent to LALExtrapolatePulsarSpins(), but uses the fixed-size array-type 'PulsarSpins' = REAL8[PULSAR_MAX_SPINS] instead, which is easier to handle and avoids any dynamic-memory hassles.
NOTE: this can be called with fkdot1 == fkdot0, in which case the input will be correctly replaced by the output.
| fkdot1 | [out] spin-parameters at epoch1 |
| epoch1 | [in] GPS SSB-time of new epoch1 |
| fkdot0 | [in] spin-params at reference epoch0 |
| epoch0 | [in] GPS SSB-time of reference-epoch0 |
Definition at line 137 of file ExtrapolatePulsarSpins.c.
| int XLALExtrapolatePulsarSpins | ( | PulsarSpins | fkdotOut, | |
| const PulsarSpins | fkdotIn, | |||
| REAL8 | DeltaTau | |||
| ) |
Lightweight API to extrapolate PulsarSpins by a time-difference 'DeltaTau'.
NOTE: This allows fkdotIn to point to the same memory as fkdotOut !
| fkdotOut | output fkdot array |
| fkdotIn | inptut fkdot array |
| DeltaTau | time-difference to extrapolate fkdot to |
Definition at line 165 of file ExtrapolatePulsarSpins.c.
| void LALExtrapolatePulsarPhase | ( | LALStatus * | status, | |
| REAL8 * | phi1, | |||
| PulsarSpins | fkdot1, | |||
| LIGOTimeGPS | epoch1, | |||
| REAL8 | phi0, | |||
| LIGOTimeGPS | epoch0 | |||
| ) |
Extrapolate phase phi0 from epoch0 to epoch1, given the spins fkdot1 at epoch1 Returns phi1 in the range [0, 2pi].
| phi1 | [out] phase at epoch1 |
| fkdot1 | [in] spin-params at reference epoch1 |
| epoch1 | [in] GPS SSB-time of epoch1 |
| phi0 | [in] initial phase at epoch 0 |
| epoch0 | [in] GPS SSB-time of reference-epoch |
Definition at line 203 of file ExtrapolatePulsarSpins.c.
1.5.2