Reads a single-channel strain data from an HDF5 file along with its DQ mask.
Usage
read_H5(file, sampling.freq, dq.level = "BURST_CAT2")
Arguments
- file
A character string. Path to the HDF5 file.
- sampling.freq
A numeric scalar. Sampling frequency (Hz) of the strain data.
- dq.level
A character string. DQ level to extract (default: "BURST_CAT2").
Use "all" to extract all DQ bits.
Value
A ts object containing the strain data with the following attributes:
dqmask
A ts object of the same length representing the DQ mask.
Details
This function assumes the HDF5 file has the structure: meta/GPSstart,
strain/Strain, and quality/simple/DQmask.
The extracted strain data will carry dqmask as an attribute.