Git Product home page Git Product logo

pysdr-1's Introduction

PySDR

PySDR displays spectral waterfall, a visualization of signal's frequency spectrum over time. It is developed for SDR-related applications, but can be fed any equidistantly-sampled complex-valued signal for which it makes sense.

A live waterfall is launched by pysdr-waterfall. It connects to the JACK audio system and takes its input from there, or, if the flag -r is passed, it expects its input on the standard input in the form of an endless stream of 32-bit interleaved floats.

$ pysdr-waterfall -h
usage: pysdr-waterfall [-h] [-b BINS] [-H HEIGHT] [-o OVERLAP] [-j NAME]
                       [-r RATE] [-d ARGS] [-p FILENAME]

Plot live spectral waterfall of a quadrature signal.

optional arguments:
  -h, --help            show this help message and exit
  -b BINS, --bins BINS  number of FFT bins (default: 4096)
  -H HEIGHT, --height HEIGHT
                        minimal height of the waterfall in seconds
                        (default corresponds to 1024 windows)
  -o OVERLAP, --overlap OVERLAP
                        overlap between consecutive windows as a
                        proportion of the number of bins (default: 0.75)
  -j NAME, --jack NAME  feed signal from JACK and use the given client
                        name (by default, with name 'pysdr')
  -r RATE, --raw RATE   feed signal from the standard input, expects 2
                        channel interleaved floats with the given sample-
                        rate
  -d ARGS, --detector ARGS
                        attach the given detector script, expects to be
                        given the script filename followed by arguments
                        for the script, all joined by spaces and passed on
                        the command-line as one quoted argument
  -p FILENAME, --persfn FILENAME
                        a file in which to preserve the visualization
                        parameters that come from interactive
                        manipulation, i.e. the visible area of the
                        waterfall and the selected magnitude range (save
                        triggered by pressing 'p')

stretching

Example usage with sox (cross-platform)

$ sox -d -e floating-point -b 32 -r 48000 -t raw --buffer 1024 - | ./pysdr-waterfall -r 48000

Example usage with ALSA

$ arecord -f FLOAT_LE -c 2 -r 44100 --buffer-size 1024 | pysdr-waterfall -r 44100

Record Viewer

There's also pysdr-reciewer, which displays spectral waterfall of short recordings. The recordings are expected to be either WAV files, or FITS files in the format produced by Radio Observer. The number of frequency bins reflects the aspect ratio of the waterfall, and so is interactive.

Usage

$ pysdr-recviewer path/to/recording

Dependencies

Ubuntu

$ sudo apt-get install python-numpy python-opengl python-dev libjack-jackd2-dev python-pil

In-place build

The package has a binary component which has to be built on the target machine. (It is not needed for pysdr-waterfall at the moment.)

For usage without installation, do an in-place build first.

$ python setup.py build_ext --inplace

Installation

$ python setup.py install

Supported designs

Radio Meteor Detection Station

PySDR is developed to be used, among others, with the RMDS designs by the MLAB project.

Technical description

Purchase from UST

License

Everything in this repository is GNU GPL v3 licensed.

pysdr-1's People

Contributors

kaklik avatar oploc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.