LALApps 10.1.0.1-eeff03c
getdata.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Duncan Brown, Jolien Creighton, Lisa M. Goggin
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20#ifndef GETDATA_H
21#define GETDATA_H
22
23/*
24 *
25 * Routines to read frame data.
26 * Routines to create simulated data.
27 * Routines to condition (resample; highpass filter) data.
28 * Routines to convert double-precision data to single precision.
29 *
30 */
31
32#include <lal/LALDatatypes.h>
33#include <lal/LALFrStream.h>
34#include <stdio.h>
35#include <gsl/gsl_rng.h>
36#include <lal/LALStdlib.h>
37#include <lal/FrequencySeries.h>
38#include <lal/TimeSeries.h>
39#include <lal/LALSimNoise.h>
40
41/* create simulated data */
43 const char *channelName,
44 LIGOTimeGPS *epoch,
46 int dataType,
48 UINT4 simSeed,
49 REAL4 simScale
50 );
51
52/* create simulated data using LALSimNoise */
53
55 const char *channelName,
56 LIGOTimeGPS *epoch,
59 UINT4 simSeed,
61 );
62
63
65 const char *channelName,
66 LIGOTimeGPS *epoch,
68 int dataType,
70 );
71
72
73/* read frame data */
75 const char *cacheName,
76 const char *channelName,
77 LIGOTimeGPS *epoch,
79 int dataType
80 );
81
82/* read double-precision frame data and convert to single-precision data */
84 const char *cacheName,
85 const char *channelName,
86 LIGOTimeGPS *epoch,
88 int dataType,
89 REAL8 dblHighPassFreq
90 );
91
92/* low-level routine to read single-precision frame data */
94 LIGOTimeGPS *epoch, REAL8 duration, LALFrStream *stream );
95
96/* low-level routine to read double-precision frame data */
98 LIGOTimeGPS *epoch, REAL8 duration, LALFrStream *stream );
99
100/* resample time series */
102
103/* highpass filter time series */
105
106/* highpass filter double-precision time series */
108
109/* trim padding from data */
111
112#endif /* GETDATA_H */
INT4 sampleRate
Definition: blindinj.c:124
INT4 duration
Definition: blindinj.c:123
REAL4TimeSeries * ring_get_frame_data(const char *cacheName, const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, int dataType)
Definition: getdata.c:171
REAL4TimeSeries * get_simulated_data(const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, int dataType, REAL8 sampleRate, UINT4 simSeed, REAL4 simScale)
Definition: getdata.c:41
REAL4TimeSeries * get_zero_data(const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, int dataType, REAL8 sampleRate)
Definition: getdata.c:130
int highpass_REAL4TimeSeries(REAL4TimeSeries *series, REAL8 frequency)
Definition: getdata.c:380
REAL4TimeSeries * fr_get_REAL4TimeSeries(const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, LALFrStream *stream)
Definition: getdata.c:273
REAL8TimeSeries * fr_get_REAL8TimeSeries(const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, LALFrStream *stream)
Definition: getdata.c:315
REAL4TimeSeries * get_simulated_data_new(const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, REAL8 sampleRate, UINT4 simSeed, REAL8FrequencySeries *psd)
Definition: getdata.c:88
int resample_REAL4TimeSeries(REAL4TimeSeries *series, REAL8 sampleRate)
Definition: getdata.c:357
REAL4TimeSeries * get_frame_data_dbl_convert(const char *cacheName, const char *channelName, LIGOTimeGPS *epoch, REAL8 duration, int dataType, REAL8 dblHighPassFreq)
Definition: getdata.c:209
int trimpad_REAL4TimeSeries(REAL4TimeSeries *series, REAL8 padData)
Definition: getdata.c:430
int highpass_REAL8TimeSeries(REAL8TimeSeries *series, REAL8 frequency)
Definition: getdata.c:406
double REAL8
uint32_t UINT4
float REAL4
Definition: series.h:36
CHAR * channelName
Definition: tmpltbank.c:402
INT4 padData
Definition: tmpltbank.c:394