Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

2.6.0

History Node

2.6.0rc1

History Node

2.6.0b7

History Node

2.6.0b6

History Node

2.6.0b5

History Node

2.6.0b4

History Node

2.6.0b3

History Node

2.6.0b2

History Node

2.6.0b1

History Node

2.6.0a8

History Node

2.6.0a7

History Node

2.6.0a6

History Node

2.6.0a5

History Node

2.6.0a4

History Node

2.6.0a1

History Node

2.6.0.dev4

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
digital_rf-2.6.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.8 MB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27m-manylinux1_i686.whl (1.2 MB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27m-manylinux1_x86_64.whl (1.4 MB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27mu-manylinux1_i686.whl (1.2 MB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27mu-manylinux1_x86_64.whl (1.4 MB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27m-win32.whl (171.1 kB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp27-cp27m-win_amd64.whl (169.9 kB) Copy SHA256 hash SHA256 Wheel cp27 May 4, 2018
digital_rf-2.6.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.8 MB) Copy SHA256 hash SHA256 Wheel cp35 May 4, 2018
digital_rf-2.6.0-cp35-cp35m-manylinux1_i686.whl (1.2 MB) Copy SHA256 hash SHA256 Wheel cp35 May 4, 2018
digital_rf-2.6.0-cp35-cp35m-manylinux1_x86_64.whl (1.4 MB) Copy SHA256 hash SHA256 Wheel cp35 May 4, 2018
digital_rf-2.6.0-cp35-cp35m-win32.whl (172.6 kB) Copy SHA256 hash SHA256 Wheel cp35 May 4, 2018
digital_rf-2.6.0-cp35-cp35m-win_amd64.whl (172.4 kB) Copy SHA256 hash SHA256 Wheel cp35 May 4, 2018
digital_rf-2.6.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.8 MB) Copy SHA256 hash SHA256 Wheel cp36 May 4, 2018
digital_rf-2.6.0-cp36-cp36m-manylinux1_i686.whl (1.2 MB) Copy SHA256 hash SHA256 Wheel cp36 May 4, 2018
digital_rf-2.6.0-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB) Copy SHA256 hash SHA256 Wheel cp36 May 4, 2018
digital_rf-2.6.0-cp36-cp36m-win32.whl (172.6 kB) Copy SHA256 hash SHA256 Wheel cp36 May 4, 2018
digital_rf-2.6.0-cp36-cp36m-win_amd64.whl (172.4 kB) Copy SHA256 hash SHA256 Wheel cp36 May 4, 2018
digital_rf-2.6.0.tar.gz (1.0 MB) Copy SHA256 hash SHA256 Source None May 4, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page