skysafe / gr-sigmf

GNURadio blocks to read, write, and modify SigMF datasets
Other
30 stars 11 forks source link

Support for sigmf archives in the source block #7

Open pwicks86 opened 6 years ago

pwicks86 commented 6 years ago

It would be nice if the source block could support archived SigMF recordings directly, without requiring them to be unarchived. The way to approach this is probably to integrate libarchive to interface with the tar file containing a given recording. Ideally, we could get the offset and size of the individual files in a SigMF archive and then simply use the same C-style file I/O that we do for the normal source block, but as far as I've been able to tell, libarchive doesn't expose the offsets of member files directly. That said, it does have an API to allow for the reading of member files directly from an archive, so it shouldn't be too hard to adapt to the way we do things now in the source block. Some open questions: