20 #include <lal/LALDatatypes.h>
21 #include <lal/BandPassTimeSeries.h>
23 #ifndef _RESAMPLETIMESERIES_H
24 #define _RESAMPLETIMESERIES_H
26 #if defined(__cplusplus)
56 #define RESAMPLETIMESERIESH_ENULL 1
57 #define RESAMPLETIMESERIESH_ENNUL 2
58 #define RESAMPLETIMESERIESH_EZERO 3
59 #define RESAMPLETIMESERIESH_ERATE 4
60 #define RESAMPLETIMESERIESH_EUPSM 5
61 #define RESAMPLETIMESERIESH_EHIGH 6
62 #define RESAMPLETIMESERIESH_ELOG2 7
63 #define RESAMPLETIMESERIESH_EFILT 8
64 #define RESAMPLETIMESERIESH_EINVD 9
65 #define RESAMPLETIMESERIESH_ELDAS 10
69 #define RESAMPLETIMESERIESH_MSGENULL "Null pointer"
70 #define RESAMPLETIMESERIESH_MSGENNUL "Non-null pointer"
71 #define RESAMPLETIMESERIESH_MSGEZERO "Length of input time series is zero"
72 #define RESAMPLETIMESERIESH_MSGERATE "Sample rate is zero"
73 #define RESAMPLETIMESERIESH_MSGEUPSM "Cannot upsample"
74 #define RESAMPLETIMESERIESH_MSGEHIGH "Input sample rate is greater than 32kHz"
75 #define RESAMPLETIMESERIESH_MSGELOG2 "Only power-of-two resampling is avaliable"
76 #define RESAMPLETIMESERIESH_MSGEFILT "Unknown filter type"
77 #define RESAMPLETIMESERIESH_MSGEINVD "Invalid or non-integer resample factor"
78 #define RESAMPLETIMESERIESH_MSGELDAS "Input resample factor with LDAS FIR"
109 tagResampleTSFilterParams
148 #elif defined(__cplusplus)
double REAL8
Double precision real floating-point number (8 bytes).
int XLALResampleREAL4TimeSeries(REAL4TimeSeries *series, REAL8 dt)
int XLALResampleREAL8TimeSeries(REAL8TimeSeries *series, REAL8 dt)
void LALResampleREAL4TimeSeries(LALStatus *status, REAL4TimeSeries *ts, ResampleTSParams *params)
ResampleTSFilter
This enum type contains the different low pass filters available to prevent power above the new Nyqui...
@ LDASfirLP
For downsampling by a factor of 2, 4 or 8 an implementation of the FIR filter used by the LDAS dataco...
@ defaultButterworth
An IIR butterwoth filter of order 20 with attenuation 0.1 at the new Nyquist frequency.
LAL status structure, see The LALStatus structure for more details.
This structure stores data used for constructing a low- or high-pass filter: either the order and cha...
Time series of REAL4 data, see DATATYPE-TimeSeries types for more details.
This structure stores the direct and recursive REAL8 filter coefficients, as well as the history of t...
Time series of REAL8 data, see DATATYPE-TimeSeries types for more details.
This structure controls the behaviour of the resampling function.
ResampleTSFilter filterType
The type of filter with which to perform the low pass filtering.
REAL8 deltaT
The sample interval desired in the down sampled time series.
ResampleTSFilterParams filterParams
Filter parameters for the low pass filter (Presently ignored)
This union is provided so that the code can store the parameters of the filter in a place accessible ...
REAL8IIRFilter iirfilter
A structure of type REAL8IIRFilter used to store the parameters of the IIR or FIR filter used to perf...
PassBandParamStruc butterworth
A structure of type PassBandParamStruc used to store the parameters of the butterworth filter used to...