Skip to content

v1.11.1 Simple fromarray()

Latest

Choose a tag to compare

@Teque5 Teque5 released this 30 May 17:51
· 1 commit to main since this release
b98e700

sigmf.fromarray() to make using sigmf easier...

import numpy as np
import sigmf

data = np.array([0.1 + 0.2j, 0.3 + 0.4j], dtype=np.complex64)
meta = sigmf.fromarray(data)
# optional additional metadata
meta.sample_rate = 8000
meta.description = "sample recording"
meta.add_capture(start_index=0, metadata={sigmf.FREQUENCY_KEY: 915e6})
# creates recording.sigmf-data and recording.sigmf-meta
meta.tofile("recording")
# or create compressed archive
meta.tofile("recording.sigmf.gz")

What's Changed

Full Changelog: v1.11.0...v1.11.1