#include <lal/Resample.h>
One of the crucial problems in searching for
constant-frequency astrophysical signals is removing the effects of
Doppler modulation due to the Earth's motion. This is normally
accomplished by constructing a canonical time coordinate
of an
inertial frame (i.e. the barycentred time), and
decimating/resampling the data at fixed intervals in
. The
reconstructed
depends on the direction to the source relative
to the Earth's motion; in addition, slow intrinsic parameterized
modulations in the source frequency can also be corrected by this
coordinate transformation.
Most of the routines in this module assume that
can be
piecewise expanded as a Taylor series in
. That is, one defines a
set of fitting regions
, and a set of fitting points
. In each region one then writes:
The procedure for resampling according to
is normally combined
with decimating the time series. That is, one takes a time
series sampled at constant intervals
in
, and samples it
at constant intervals
in
, where the
decimation factor
is normally taken to be an integer
. When
and
are drifting out of phase relatively
slowly, this means that most of the time every
sample
in the original time series becomes the next sample in the decimated
time series. However, when
and
drift out of synch by an
amount
, one can force the decimated time series to track
(rather than
) by sampling the
next
datum (rather than the
). If the drift is sufficiently
rapid or
is sufficiently large, one may be forced to choose the
point
,
, etc.; the size of this adjustment is called
the correction shift. The number of (resampled) time intervals
between one correction point and the next is called the correction
interval.
Unless otherwise specified, all time variables and parameters in the
functions under this header can be assumed to measure the detector
time coordinate
. Canonical times are specified by giving the
difference
.