3lips/script/README.md
2024-03-18 11:03:09 +00:00

948 B

This folder is for post-processing scripts on API data.

Scripts

  • plot_accuracy.py plots a comparison between ADS-B truth and target localisation data in ENU coordinates. Also generates RMS error values for the data.

    python plot_associate.py <input.ndjson> <target-id> (--start_time <posix>) (--stop_time <posix>)
    
  • plot_associate.py plots when each radar detected a particular target in a 2D heatmap.

    python plot_associate.py <input.ndjson> <target-id> (--start_time <posix>) (--stop_time <posix>)
    

Docker Environment

To avoid having to install extra libraries on the host machine (e.g. numpy, matplotlib), a Dockerfile is provided to create this environment.

sudo docker build -t 3lips-script .
sudo docker run -it -v /opt/3lips/save:/app/save -v /opt/3lips/script:/app/script -v /opt/3lips/event/algorithm/geometry:/app/geometry 3lips-script bash
PYTHONPATH=/app python <script> <args>