Functions | |
| def | read_timeseries (source, channel, start=None, duration=None, datatype=None, verbose=False) |
| Read a TimeSeries of channel data from a source. More... | |
| def | read_channel_from_stream (stream, channel, start, duration, datatype=None) |
| Read the TimeSeries of a single channel from an open stream. More... | |
| def | get_stream_length (stream, channel) |
| Find the number of samples represented in a frame stream. More... | |
| def | get_stream_duration (stream) |
| Find the duration of time stored in a frame stream. More... | |
| def lalframe.frread.read_timeseries | ( | source, | |
| channel, | |||
start = None, |
|||
duration = None, |
|||
datatype = None, |
|||
verbose = False |
|||
| ) |
Read a TimeSeries of channel data from a source.
Acceptable sources are:
| source | input source, see above for details |
| channel | string name of channel, e.g. 'L1:LDAS-STRAIN', or a list of channel names |
| start | LIGOTimeGPS start time for output TimeSeries |
| duration | float duration (seconds) for output TimeSeries |
| datatype | datatype, either an integer from the LALTYPECODE, a string matchine the corresponding type, or a numpy dtype |
| verbose | print verbose output, default: False |
Example 1, reading from a frame file:
Example 2, reading from a cache:
Example 3, restricting data input:
Example 4, specifying data type:
| def lalframe.frread.read_channel_from_stream | ( | stream, | |
| channel, | |||
| start, | |||
| duration, | |||
datatype = None |
|||
| ) |
| def lalframe.frread.get_stream_length | ( | stream, | |
| channel | |||
| ) |