skysafe / gr-sigmf

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

how to add the annotation to sigmf-meta file #17

Closed shawabka closed 3 years ago

shawabka commented 6 years ago

Hi,

how you can add the capture and the annotation fields to the sigmf-meta file? is there any example to add these fields.

thanks,

pwicks86 commented 6 years ago

The sink block should create an initial capture segment for the file and if it receives any stream tags that it knows should correspond to new capture segments (i.e. any of the tags from uhd blocks) then it should create those as well. As far as annotations, if the sink block receives any other stream tags, it will attempt convert them into annotations for the current file. If either of those things doesn't happen, then it's probably a bug in gr-sigmf and should be addressed.

Apart from that, you can always edit the metadata file after the fact to add any other relevant annotations for a given recording.

shawabka commented 6 years ago

thanks a lot for your reply, i tried to add "stream to tagged stream" block before the sigmf sink. I generated the annotation with a fixed length and with one capture only, do you have any clues on how to get different captures for different time stamps and frequencies? do you have any demo for adding the captures and annotations to the sigmf-meta file on online manner. thanks,

shawabka commented 6 years ago

thanks a lot for your reply, i tried to add "stream to tagged stream" block before the sigmf sink. I generated the annotation with a fixed length and with one capture only, do you have any clues on how to get different captures for different time stamps and frequencies? do you have any demo for adding the captures and annotations to the sigmf-meta file on online manner. thanks,

On Mon, Aug 27, 2018 at 12:41 PM Paul Wicks notifications@github.com wrote:

The sink block should create an initial capture segment for the file and if it receives any stream tags that it knows should correspond to new capture segments (i.e. any of the tags from uhd blocks) then it should create those as well. As far as annotations, if the sink block receives any other stream tags, it will attempt convert them into annotations for the current file. If either of those things doesn't happen, then it's probably a bug in gr-sigmf and should be addressed.

Apart from that, you can always edit the metadata file after the fact to add any other relevant annotations for a given recording.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/skysafe/gr-sigmf/issues/17#issuecomment-416288247, or mute the thread https://github.com/notifications/unsubscribe-auth/Af5BgIDPwbOVWgGXf6tS3Qq8iuFG_o9uks5uVCEhgaJpZM4WLqzF .