Skip to content

Bad Behavior when writing NCD to SigMF Archive #161

Description

@Teque5

We expect the use pattern for a NCD created by sigmf.fromfile() to be that you open your wav/bluefile/etc and then save a .sigmf-meta adjacent to that file with meta.tofile('whatever.sigmf-meta').

Now if you instead decide to do meta.tofile('whatever.sigmf') then it will create a tar with the metadata and no data file. This creates an unreadable .sigmf archive.

Options

  1. Disallow writing archives from NCD datasets
  2. Write the original whatever.bluefile into the whatever.sigmf archive along with the NCD whatever.sigmf-meta. This technically complies with the SigMF spec (archives MAY contain other files), but something reading a .sigmf file might be confused by NCD files.
  3. Convert the NCD to a "normal" file before writing it into an archive. This may be complex due to multiple captures and multiple header-bytes and trailing-bytes fields that can exist in NCDs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions