##// END OF EJS Templates
Show More
Commit message Age Author Refs
r1792:800f91ef3d84
update jroplot_base.py
isr
0
r1791:e4984c469c9f
fix line 461 y 665
0
r1790:f455e29986ba
borramos la linea self.interval no se utilizaba y generaba error
0
r1789:2739006ee497
Added ToLilBlock class from Roberto
0
r1788:c7146b87b3fa
manual header update
0
r1787:06ef6157f99b
update extrapoints spectraplot
0
r1786:ad62c3fdbfa5
update extrapoints spectraplot
0
r1785:6f1a660b8ab2
ax.plt.remove(), se aƱaden 3 lineas de codigo
0
r1784:57448bf73d50
update uniquechannel
0
r1783:14f11b916f42
fix TxLagRate, add RemoveDC mode, update HDFWriter
0
< 1 2 3 4 5 6 7 .. 180 >

Signal Chain

Signal Chain is a radar data processing library wich includes modules to read, and write different files formats, besides modules to process and visualize the data.

Dependencies

  • GCC (gcc or gfortran)
  • Python.h (python-dev or python-devel)
  • Python-TK (python-tk)
  • HDF5 libraries (libhdf5-dev)

Installation

To get started the easiest way to install it is through PyPI with pip. We strongly recommend to use an virtual environment like virtualenv or anaconda.

pip install schainpy

From source

First, ensure that you have the above-listed dependencies installed, then clone the repository and install as normal python package:

git clone https://github.com/JRO-Peru/schainpy.git
cd schain
git checkout `branch-name` (optional)
sudo pip install ./

Using Docker

Download Dockerfile from the repository, and create a docker image:

docker build -t schain .

You can run a container using an xml file or a schain script also you need to mount a volume for the data input and for the output files/plots:

docker run -it --rm --volume /path/to/host/data:/data schain xml /data/test.xml
docker run -it --rm --volume /path/to/host/data:/data --entrypoint /urs/local/bin/python schain /data/test.py

CLI (command line interface)

Signal Chain provides the following commands:

  • schainGUI: Open the GUI
  • schain: Signal chain command line

Example

Here you can find an script to read Spectra data (.pdata), remove dc and plot self-spectra & RTI:

#!/usr/bin/python

from schainpy.controller import Project

prj = Project()

read_unit = prj.addReadUnit(
    datatype='Spectra',
    path='/path/to/pdata/',
    startDate='2014/01/31',
    endDate='2014/03/31',
    startTime='00:00:00',
    endTime='23:59:59',
    online=0,
    walk=0
    )

proc_unit = prj.addProcUnit(
    datatype='Spectra',
    inputId=read_unit.getId()
    )

op = proc_unit.addOperation(name='selectChannels')
op.addParameter(name='channelList', value='0,1')

op = proc_unit.addOperation(name='selectHeights')
op.addParameter(name='minHei', value='80')
op.addParameter(name='maxHei', value='200')

op = proc_unit.addOperation(name='removeDC')

op = proc_unit.addOperation(name='SpectraPlot')
op.addParameter(name='wintitle', value='Spectra', format='str')

op = proc_unit.addOperation(name='RTIPlot')
op.addParameter(name='wintitle', value='RTI', format='str')

prj.start()