Skip to main content

read_sigmf

Function read_sigmf 

Source
pub fn read_sigmf(path: impl AsRef<Path>) -> Result<SigMF>
Expand description

Read a SigMF recording from its .sigmf-meta or .sigmf-data file, their common base name, or a .sigmf archive (the first recording of the archive).

The reader follows SigMF 1.x: every data type (Datatype), interleaved channels (core:num_channels), the header bytes of the captures (core:header_bytes) and the trailing bytes of the file (core:trailing_bytes) removed, a non-conforming dataset (core:dataset, a data file of another name next to the metadata).

ยงErrors

Error::Io for a missing file, Error::Config for invalid metadata, Error::Shape for a data file that is not a whole number of samples.