##// END OF EJS Templates
fix line 461 y 665
fix line 461 y 665

File last commit:

r1339:2c655c5faa65 v3.0.0b4
r1791:e4984c469c9f isr
Show More
README.md
104 lines | 2.4 KiB | text/x-minidsrc | MarkdownLexer
Update README and restore parallel script
r887 # Signal Chain
Juan C. Espinoza
Add license, update setup and changelog
r1329 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.
Update README and restore parallel script
r887
Juan C. Espinoza
Add license, update setup and changelog
r1329 ## Dependencies
Update README and restore parallel script
r887
Juan C. Espinoza
Update README
r1289 - GCC (gcc or gfortran)
- Python.h (python-dev or python-devel)
- Python-TK (python-tk)
- HDF5 libraries (libhdf5-dev)
Juan C. Espinoza
Add license, update setup and changelog
r1329 ## Installation
Update README and restore parallel script
r887
HDFWriter create metadata if not given, update setup files
r1339 To get started the easiest way to install it is through
[PyPI](https://pypi.org/project/schainpy/) with pip. We strongly recommend to
use an virtual environment like virtualenv or anaconda.
Juan C. Espinoza
Add license, update setup and changelog
r1329
```bash
pip install schainpy
José Chávez
pyqt4 verification
r1102 ```
Juan C. Espinoza
Add license, update setup and changelog
r1329 ### From source
Juan C. Espinoza
Create Dockerfile
r1118
Juan C. Espinoza
Add license, update setup and changelog
r1329 First, ensure that you have the above-listed dependencies installed, then clone
the repository and install as normal python package:
Juan C. Espinoza
Create Dockerfile
r1118
Juan C. Espinoza
Add license, update setup and changelog
r1329 ```bash
HDFWriter create metadata if not given, update setup files
r1339 git clone https://github.com/JRO-Peru/schainpy.git
Juan C. Espinoza
Add license, update setup and changelog
r1329 cd schain
git checkout `branch-name` (optional)
sudo pip install ./
Juan C. Espinoza
Create Dockerfile
r1118 ```
Juan C. Espinoza
Add license, update setup and changelog
r1329 ### Using Docker
Download Dockerfile from the repository, and create a docker image:
```bash
docker build -t schain .
Juan C. Espinoza
Create Dockerfile
r1118 ```
Juan C. Espinoza
Add license, update setup and changelog
r1329
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:
```bash
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
Juan C. Espinoza
Create Dockerfile
r1118 ```
Juan C. Espinoza
Update README
r1289 ## CLI (command line interface)
Signal Chain provides the following commands:
- schainGUI: Open the GUI
- schain: Signal chain command line
Juan C. Espinoza
Add license, update setup and changelog
r1329 ## Example
Juan C. Espinoza
Update README
r1289
Juan C. Espinoza
Add license, update setup and changelog
r1329 Here you can find an script to read Spectra data (.pdata), remove dc and plot
self-spectra & RTI:
Update README and restore parallel script
r887
```python
#!/usr/bin/python
from schainpy.controller import Project
Juan C. Espinoza
Update README
r1289 prj = Project()
Update README and restore parallel script
r887
Juan C. Espinoza
Update README
r1289 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
)
Juan C. Espinoza
Add license, update setup and changelog
r1329 proc_unit = prj.addProcUnit(
datatype='Spectra',
inputId=read_unit.getId()
)
Update README and restore parallel script
r887
op = proc_unit.addOperation(name='selectChannels')
Juan C. Espinoza
Update README
r1289 op.addParameter(name='channelList', value='0,1')
Update README and restore parallel script
r887
op = proc_unit.addOperation(name='selectHeights')
Juan C. Espinoza
Update README
r1289 op.addParameter(name='minHei', value='80')
op.addParameter(name='maxHei', value='200')
Update README and restore parallel script
r887
op = proc_unit.addOperation(name='removeDC')
Juan C. Espinoza
Update README
r1289 op = proc_unit.addOperation(name='SpectraPlot')
Update README and restore parallel script
r887 op.addParameter(name='wintitle', value='Spectra', format='str')
Fix xmin & xmax in plots, fix SendToFTP
r1334 op = proc_unit.addOperation(name='RTIPlot')
Update README and restore parallel script
r887 op.addParameter(name='wintitle', value='RTI', format='str')
Juan C. Espinoza
Update README
r1289 prj.start()
Update README and restore parallel script
r887
Juan C. Espinoza
Add license, update setup and changelog
r1329 ```