1
0
Fork 0
pystrf/README.md

79 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2022-07-31 14:09:47 -06:00
# Spacecruft pystrf
This is the spacecruft clone of `pystrf`.
Upstream:
* https://gitlab.com/librespacefoundation/pystrf.git
2022-06-18 09:21:46 -06:00
# pystrf
Python based radio frequency satellite tracking.
2022-06-21 02:49:45 -06:00
This is a python port of STRF (https://github.com/cbassa/strf), but will include additional functionality to work with SatNOGS HDF5 artifacts and advanced Doppler curve detection algorithms.
## Installation
2022-07-31 13:56:14 -06:00
Install package dependencies:
```
2022-07-31 19:28:25 -06:00
sudo apt install python3-virtualenv python3-pip python3-tk
2022-07-31 13:56:14 -06:00
```
Optionally, set up python virtual environment:
```
virtualenv -p python3 env
source env/bin/activate
pip install --upgrade pip
```
Install dependencies with
```
pip install -r requirements.txt
```
Install the git large filesystem to download example spectra and run
```
git lfs init
2022-07-31 19:19:27 -06:00
# maybe should be
git lfs install
```
Clone the repository via HTML
```
git clone https://gitlab.com/librespacefoundation/pystrf.git
```
or via SSH (you may have to add SSH keys to your gitlab account)
```
git clone git@gitlab.com:librespacefoundation/pystrf.git
```
2022-06-21 02:49:45 -06:00
## Usage
2022-07-31 19:58:20 -06:00
Enter `virtualenv`, if used:
```
cd pystrf/
source env/bin/activate
```
2022-06-21 02:49:45 -06:00
To view data attached as example:
```
2022-07-31 19:36:33 -06:00
./rfplot.py -p data/2021-08-04T20_48_35 -c tle/satnogs.tle
2022-07-31 19:58:20 -06:00
2022-07-31 20:32:26 -06:00
./rfplot.py -p data/2021-08-04T20_48_35 -c tle/bulk.tle -C 9990
2022-06-21 02:49:45 -06:00
```
2022-07-31 20:20:25 -06:00
2022-07-31 20:32:26 -06:00
![pystrf-bin-example](img/pystrf-2021-08-04T20_48_35.png)
*Example with `data/2021-08-04T20_48_35` files*
2022-07-31 20:20:25 -06:00
Example using SatNOGS observation ID (requires observation uploading h5 artifact):
```
./rfplot.py -p 6282358 -c tle/satnogs.tle
```
2022-07-31 20:25:31 -06:00
![pystrf-observation-example](img/pystrf-obs-6282358.png)
*Observation ID 6282358*
* https://network.satnogs.org/observations/6282358/
# License
Under same license as upstream Libre Space Foundation's repo, AGPL3.