Calculate rainfall information from commercial microwave link (CML) data, using the pycomlink library.
-
Linear Algebra Libraries, installed on your OS - BLAS and LAPACK. Follow these instructions for Linux, or look for instructions specific to your OS in internet:
Debian:
sudo apt install libblas3 liblapack3 liblapack-dev libblas-dev
Fedora:
sudo dnf install blas blas-devel lapack lapack-devel
-
Tested with Python 3.9 and 3.10.
git clone https://github.com/tzstoyanov/iraincalc
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Input parameters of the program are two CSV files, describing links and
measured data. The links file describes a set of AB
links and must have
these mandatory rows:
CarTer_Index
- Index of the link.LonA
andlatA
- Coordinates of the A point of the link.LonB
andlatB
- Coordinates of the B point of the link.CarTer_rxFrequency
- Receiving frequency.CarTer_txFrequency
- Transmitting frequency.
The data file describes the power of the received and transmitted signal for each link at given time. The file must have these mandatory rows:
CarTer_Index
- Index of the link. This must correspond with the link index from the links file.tx
- Transmitting power.rx
- Receiving power.t
-date
- date and time of this measurement in formatYYYY-MM-DD hh:mm:ss
, whereYYYY
is the year,MM
is the month,DD
is the day,hh
is the hour,mm
are minutes andss
are seconds.
Make directory for the output files:
mkdir out
Run the program with your data:
./iraincalc.py -l <links>.csv -s <data>.csv -p ./out/
A set of csv files will be generated in the out/
directory, one for each
link. Each file has these rows:
latitude
andlongitude
- Coordinates of the link.time
- Time of the measurement.rain
- Calculated rain.
iRainCalc is available under the GPLv2.0 or later license.