Skip to main content

Python tools to read/write Digital RF data in HDF5 format

Project description

The Digital RF project encompasses a standardized HDF5 format for reading and writing of radio frequency data and the software for doing so. The format is designed to be self-documenting for data archive and to allow rapid random access for data processing.

This package includes:

  • digital_rf Python package

  • Tools for managing and processing Digital RF data

  • gr_digital_rf Python package for interfacing with GNU Radio

  • GNU Radio Companion blocks

  • thor.py UHD radio recorder script

  • Example scripts and applications

Digital RF C and MATLAB libraries can be found at the official source code repository. To build from source, you must have the HDF5 library and headers installed.

For help and/or questions, contact the user mailing list.

GNU Radio Configuration

If you plan on using Digital RF with GNU Radio, make sure to run the pip command in the same Python environment that your GNU Radio installation uses so that GNU Radio can find the packages. Depending on your GNU Radio installation, it may be necessary to add the Digital RF blocks to your GRC blocks path by creating or editing the GRC configuration file

Unix (local):

$HOME/.gnuradio/config.conf

Windows (local):

%APPDATA%/.gnuradio/config.conf

Unix (global):

/etc/gnuradio/conf.d/grc.conf

Custom (global):

{INSTALL_PREFIX}/etc/gnuradio/conf.d/grc.conf

to contain:

[grc]
local_blocks_path = {PIP_PREFIX}/share/gnuradio/grc/blocks

(replacing {PIP_PREFIX} with the pip installation prefix, “/usr/local” for example).

Example Usage

The following code will load and read data located in a directory “/data/test”.

Load the module and create a reader object:

import digital_rf as drf
do = drf.DigitalRFReader('/data/test')

List channels:

do.get_channels()

Get data bounds for channel ‘cha’:

s, e = do.get_bounds('cha')

Read first 10 samples from channel ‘cha’:

data = do.read_vector(s, 10, 'cha')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

digital_rf-2.6.9.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file digital_rf-2.6.9.tar.gz.

File metadata

  • Download URL: digital_rf-2.6.9.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for digital_rf-2.6.9.tar.gz
Algorithm Hash digest
SHA256 61293e88bff5ad849ffe08b13665345a2eec2add3fa9891dcba80e9b9af48877
MD5 7b6e792ebd7b7f510ec9aafa28686f08
BLAKE2b-256 7b914f1520fd0d8e5a60a19e51c6845a148e7dda5bb0f2a3eb97ddf6688f2617

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page