Feature/signalhound - This is preliminary work for a Spike Signal Hound converter.#136
Feature/signalhound - This is preliminary work for a Spike Signal Hound converter.#136KelseyCreekSoftware wants to merge 6 commits intosigmf:mainfrom
Conversation
Implement converter for Signal Hound files to SigMF format with metadata extraction and IQ data handling.
Integrate Signal Hound file conversion into the main script, updating magic byte checks and handling for new file type.
|
I'll assume this isn't quite ready yet, but I'm keeping an eye on it. |
| "annotations": annotations, | ||
| } | ||
|
|
||
| return sigmf |
There was a problem hiding this comment.
This function should return SigMFFile object and not dict.
sigmf/convert/signalhound.py
Outdated
| DATATYPE = "ci16_le" # complex short int16 little-endian | ||
| # DATATYPE_SIZE = 4 # bytes per complex int16 sample (2 bytes I + 2 bytes Q) | ||
|
|
||
| logging.basicConfig( |
There was a problem hiding this comment.
A logger gets created by __main__.main() so I don't think we need this.
sigmf/convert/signalhound.py
Outdated
|
|
||
| # Define constants for Spike | ||
| ENDIANNESS = "<" | ||
| DATATYPE = "ci16_le" # complex short int16 little-endian |
There was a problem hiding this comment.
you appear to define this again later, so I think you can delete these globals
Co-authored-by: Teque5 <teque5@gmail.com>
…SigMF object instead of dictionary Updated the last modified date and refactored comments for clarity.
|
@Teque5 - Slowly working to understand the https://sigmf.readthedocs.io/en/latest/_autosummary/sigmf.sigmffile.SigMFFile.html# |
… SigMF File Object, but is not working. Implement converter for Signal Hound files to SigMF format, including metadata extraction and IQ data conversion.
|
@Teque5 - I added my attempts at using the SigMF file object. It sort of works, but --ncd and --archive are badly broken. https://github.com/KelseyCreekSoftware/sigmf-python/blob/feature/signalhound/sigmf/convert/signalhound_fileobject_broken.py This file at least generates valid meta data. https://github.com/KelseyCreekSoftware/sigmf-python/blob/feature/signalhound/sigmf/convert/signalhound.py In both many TODOs, and overly verbose code. |
This is preliminary work for a Spike Signal Hound converter.
I attempted to use the SigMF File API as much as possible and follow the general form of the blue and wav converters.
Very limited testing, but archive, NCD and XML conversion seems to work.
One thing that needs to be validated is the handling of the IQ file data itself.
The Spike XML files contain a small CSV sample of the larger IQ file. Not sure what the best way to handle this "preview" data.
There are other TODO items called out in the code.