-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating the .sigmf
archive format
#44
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,21 @@ file contains information that describes the dataset. | |
3. The metadata file MUST have a `.meta` filename extension. | ||
4. The dataset file MUST have a `.data` filename extension. | ||
|
||
#### Archive Format | ||
|
||
The metadata and dataset files that comprise a SigMF recording may be combined | ||
into a file archive. Multiple SigMF recordings may be stored in a single | ||
archive. | ||
|
||
1. The archive MUST use the `tar` archive format, as specified by POSIX.1-2001. | ||
2. The archive file's filename extension MUST be `.sigmf`. | ||
3. Metadata and dataset files MUST NOT be in the top-level directory of the | ||
archive. | ||
4. Each SigMF recording (comprised of a metadata file and a dataset file) MUST | ||
be in separate directories. | ||
5. The metadata and dataset files within a directory must have the same | ||
filenames as the directory itself. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like how point 3 is written negatively; it does not rule out that you could have two levels of directories (which is another complication), or using absolute paths (which would be bad). I would suggest something to the effect of (I don't know what language POSIX uses to describe tar files):
(The item 4 is to allow for extensions without allowing for arbitrary junk. More minimally, we could say that for now no other files are allowed.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really like your suggestion, @kpreid. Nice work =) |
||
|
||
### Dataset Format | ||
|
||
The samples in the dataset file must be in a SigMF-supported format. There are | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should discuss the idea of combining multiple recordings separately before putting it in the spec. It is a UI/API complication for anything that wants to read a SigMF recording because you then need more than a file-picker, and people will be tempted to create little languages for representing pathnames-plus-item-in-the-archive, which gets messy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - this is perhaps a little more complex than I first anticipated.