LALFrame 3.0.7.1-eeff03c
LALFrStreamLegacy.c File Reference

Prototypes

void LALFrCacheOpen (LALStatus *status, LALFrStream **output, LALCache *cache)
 
void LALFrOpen (LALStatus *status, LALFrStream **stream, const CHAR *dirname, const CHAR *pattern)
 
void LALFrClose (LALStatus *status, LALFrStream **stream)
 
void LALFrSeek (LALStatus *status, const LIGOTimeGPS *epoch, LALFrStream *stream)
 

Go to the source code of this file.

Macros

#define DEFINE_LAL_GET_TS_FUNCTION(laltype)
 
#define DEFINE_LAL_GET_TSM_FUNCTION(laltype)
 
#define DEFINE_LAL_GET_FS_FUNCTION(laltype)
 
#define DEFINE_LAL_WRITE_TS_FUNCTION(laltype)
 

Macro Definition Documentation

◆ DEFINE_LAL_GET_TS_FUNCTION

#define DEFINE_LAL_GET_TS_FUNCTION (   laltype)
Value:
void LALFrGet ## laltype ## TimeSeries(LALStatus *status, laltype ## TimeSeries *series, FrChanIn *chanin, LALFrStream *stream) \
{ \
int errnum; \
int code; \
XLAL_PRINT_DEPRECATION_WARNING("XLALFrStreamGet" #laltype "TimeSeries"); \
INITSTATUS(status); \
strcpy(series->name, chanin->name); \
XLAL_TRY(code = XLALFrStreamGet ## laltype ## TimeSeries(series, stream), errnum); \
if ((code < 0) || errnum) { \
if (stream->state & LAL_FR_STREAM_END) { \
} \
} \
RETURN(status); \
}
#define FRAMESTREAMH_EDONE
Definition: LALFrStream.h:261
#define FRAMESTREAMH_MSGEREAD
Definition: LALFrStream.h:269
#define FRAMESTREAMH_MSGEDONE
Definition: LALFrStream.h:275
#define FRAMESTREAMH_EREAD
Definition: LALFrStream.h:255
@ LAL_FR_STREAM_END
end of frame stream
Definition: LALFrStream.h:73
code
This structure details the state of the frame stream.
Definition: LALFrStream.h:95

Definition at line 127 of file LALFrStreamLegacy.c.

◆ DEFINE_LAL_GET_TSM_FUNCTION

#define DEFINE_LAL_GET_TSM_FUNCTION (   laltype)
Value:
void LALFrGet ## laltype ## TimeSeriesMetadata(LALStatus *status, laltype ## TimeSeries *series, FrChanIn *chanin, LALFrStream *stream) \
{ \
int code; \
XLAL_PRINT_DEPRECATION_WARNING("XLALFrStreamGet" #laltype "TimeSeriesMetadata"); \
INITSTATUS(status); \
strcpy(series->name, chanin->name); \
code = XLALFrStreamGet ## laltype ## TimeSeriesMetadata(series, stream); \
if (code < 0) { \
} \
RETURN(status); \
}

Definition at line 145 of file LALFrStreamLegacy.c.

◆ DEFINE_LAL_GET_FS_FUNCTION

#define DEFINE_LAL_GET_FS_FUNCTION (   laltype)
Value:
void LALFrGet ## laltype ## FrequencySeries(LALStatus *status, laltype ## FrequencySeries *series, FrChanIn *chanin, LALFrStream *stream) \
{ \
int code; \
XLAL_PRINT_DEPRECATION_WARNING("XLALFrStreamGet" #laltype "FrequencySeries"); \
INITSTATUS(status); \
strcpy(series->name, chanin->name); \
code = XLALFrStreamGet ## laltype ## FrequencySeries(series, stream); \
if (code < 0) { \
} \
RETURN(status); \
}

Definition at line 159 of file LALFrStreamLegacy.c.

◆ DEFINE_LAL_WRITE_TS_FUNCTION

#define DEFINE_LAL_WRITE_TS_FUNCTION (   laltype)
Value:
void LALFrWrite ## laltype ## TimeSeries(LALStatus *status, laltype ## TimeSeries *series, FrOutPar *params) \
{ \
LALFrameH *frame; \
char fname[FILENAME_MAX]; \
double duration; \
int t0, dt; \
XLAL_PRINT_DEPRECATION_WARNING("XLALFrWrite" #laltype "TimeSeries"); \
INITSTATUS(status); \
duration = series->deltaT * series->data->length; \
t0 = series->epoch.gpsSeconds; \
dt = (int)ceil(XLALGPSGetREAL8(&series->epoch)+duration) - t0; \
snprintf(fname, sizeof(fname), "%s-%s-%d-%d.gwf", \
params->source ? params->source : "F", \
params->description ? params->description : "UNKNOWN", \
t0, dt); \
frame = XLALFrameNew(&series->epoch, duration, "LAL", params->run, params->frame, 0); \
XLALFrameAdd ## laltype ## TimeSeriesProcData(frame, series); \
XLALFrameWrite(frame, fname); \
XLALFrameFree(frame); \
RETURN(status); \
}
LALFrameH * XLALFrameNew(const LIGOTimeGPS *epoch, double duration, const char *project, int run, int frnum, INT8 detectorFlags)
Creates a new frame structure.
Definition: LALFrameIO.c:411
REAL8 XLALGPSGetREAL8(const LIGOTimeGPS *epoch)
double dt
Definition: stream.c:110
double t0
Definition: stream.c:109

Definition at line 194 of file LALFrStreamLegacy.c.

Function Documentation

◆ LALFrCacheOpen()

void LALFrCacheOpen ( LALStatus status,
LALFrStream **  output,
LALCache cache 
)

Definition at line 30 of file LALFrStreamLegacy.c.

◆ LALFrOpen()

void LALFrOpen ( LALStatus status,
LALFrStream **  stream,
const CHAR dirname,
const CHAR pattern 
)

Definition at line 58 of file LALFrStreamLegacy.c.

◆ LALFrClose()

void LALFrClose ( LALStatus status,
LALFrStream **  stream 
)

Definition at line 73 of file LALFrStreamLegacy.c.

◆ LALFrSeek()

void LALFrSeek ( LALStatus status,
const LIGOTimeGPS epoch,
LALFrStream stream 
)

Definition at line 84 of file LALFrStreamLegacy.c.