void LALFrWrite ## laltype ## TimeSeries(
LALStatus *status, laltype ## TimeSeries *series,
FrOutPar *params) \
{ \
LALFrameH *frame; \
char fname[FILENAME_MAX]; \
double duration; \
XLAL_PRINT_DEPRECATION_WARNING("XLALFrWrite" #laltype "TimeSeries"); \
INITSTATUS(status); \
duration = series->deltaT * series->data->length; \
t0 = series->epoch.gpsSeconds; \
snprintf(fname, sizeof(fname), "%s-%s-%d-%d.gwf", \
params->source ? params->source : "F", \
params->description ? params->description : "UNKNOWN", \
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.
REAL8 XLALGPSGetREAL8(const LIGOTimeGPS *epoch)