|
bool | ExtractChannels (const unsigned int aGps) |
| Extracts channels at a given GPS time.
|
|
vector< string > | GetChannelList (const string aFilter="") |
| Returns the current channel list.
|
|
unsigned int | GetChannelSampling (const string aChannelName) |
| Returns the sampling rate of a given channel [Hz].
|
|
unsigned int | GetChannelSampling (const string aChannelName, unsigned int &aChannelIndex) |
| Returns the sampling rate of a given channel [Hz].
|
|
double * | GetData (unsigned int &aSize, const string aChannelName, const double aGpsStart, const double aGpsEnd, const double aMissing=999.0) |
| Returns a data vector for a given channel and a GPS range.
|
|
string | GetInputFfl (void) |
| Returns the path to the input frame file list.
|
|
Segments * | GetSegments (void) |
| Returns a pointer to the segments covered by the ffl.
|
|
bool | GetStatus (void) |
| Returns the class status.
|
|
bool | IsChannel (const string aChannelName) |
| Tests whether a channel exists in the dataset pointed by the ffl.
|
|
TGraph * | PlotData (const string aChannelName, const double aGpsStart, const double aGpsEnd) |
| Plots a data vector time series.
|
|
bool | PrintChannels (const unsigned int aGps=0) |
| Prints the list of channels at a given GPS time.
|
|
bool | PrintData (const string aChannelName, const double aGpsStart, const double aGpsEnd, string aFileName) |
| Prints a data vector in a text file.
|
|
void | SetPlotName (const string aName) |
| Sets a new name for the plotting structure.
|
|
|
| ffl (const string aFrameFileList, const string aPlotStyle="GWOLLUM", const unsigned int aVerbosity=0, const string aTmpDirPath=".", const unsigned int aNTrials=1, const unsigned int aNSleepSeconds=0) |
| Constructor of the ffl class.
|
|
virtual | ~ffl (void) |
| Destructor of the ffl class.
|
|
Load frame files and access data in frames.
This class is designed to load frame files and provide methods to access the data. The native format for file registration is the so-called FFL format. A FFL file is a text file where each line identifies a frame file. Each line must contained exactly 5 columns:
- path to a frame file
- starting GPS time of the frame file
- duration of the frame file [s]
- unused column [0]
- unused column [0]
- Note
- The FFL format is the native format for this class. However the lalcache format (LCF) is also supported. In that case the LCF file is first converted to a FFL file before processing.
This class is using the Frame Library functions.
- Author
- Florent Robinet
ffl::ffl |
( |
const string |
aFrameFileList, |
|
|
const string |
aPlotStyle = "GWOLLUM" , |
|
|
const unsigned int |
aVerbosity = 0 , |
|
|
const string |
aTmpDirPath = "." , |
|
|
const unsigned int |
aNTrials = 1 , |
|
|
const unsigned int |
aNSleepSeconds = 0 |
|
) |
| |
Constructor of the ffl class.
The frame file list is provided. Two formats are supported: the native Frame File List (FFL) and the lalcache format (LCF). For both cases, it is possible to list another file (LCF or FFL) with a line with the following format: file path - GPS start - duration.
When working with LCF files or when working with secondary files, a working FFL file will be created. In that case, a tmp directory must be provided.
- Note
- It is possible to perform several attemps when accessing the frame file data. You can configure the number of attemps and the time distance between attempts.
- Parameters
-
[in] | aFrameFileList | Path to frame file list |
[in] | aPlotStyle | Plotting style |
[in] | aVerbosity | Verbosity level |
[in] | aTmpDirPath | Path to temporary directory. If needed, this path is used to build a working FFL file. |
[in] | aNTrials | Number of trials to access the data. |
[in] | aNSleepSeconds | Number of seconds between trials. |
double * ffl::GetData |
( |
unsigned int & |
aSize, |
|
|
const string |
aChannelName, |
|
|
const double |
aGpsStart, |
|
|
const double |
aGpsEnd, |
|
|
const double |
aMissing = 999.0 |
|
) |
| |
Returns a data vector for a given channel and a GPS range.
A pointer to the data vector is returned. The size of the vector is returned. If the data cannot be read, a pointer to NULL is returned and the data size is set to 0.
- Note
- The data access is tried several times, as configured with the constructor.
If there are missing data in the requested time stretch, no data vector is returned by default (aMissing=999.0
). For any other value for aMissing
, the data vector is returned and the missing sample are given the value aMissing
.
- Note
- The user is in charge of deleting the returned vector.
- Parameters
-
[out] | aSize | Number of samples in the returned vector. |
[in] | aChannelName | Channel name. |
[in] | aGpsStart | Starting GPS time. |
[in] | aGpsEnd | Ending GPS time. |
[in] | aMissing | Special value to flag missing samples. If =999.0, no flagging, the function returns NULL. |