Files
mvn_flight/README.markdown
2025-10-30 16:16:31 +03:00

4.1 KiB

mvn_flight

This project contains tools for decoding, converting, and visualizing telemetry data from the MVN. It includes utilities for unpacking binary archives, converting them to CSV, and generating plots for selected time intervals.

Contents

  • Project structure
  • Requirements
  • Setup
  • Using the tools
    • Plot all ASOTR data
    • Plot ASOTR data in specified date borders (for MVN reports)
  • Contacts

Note 1: <PATH_TO_MVN_FLIGHT> - path where is mvn_flight scripts is cloned from heagit
Note 2: <PATH_TO_ASOTR_DATA> - path with raw MVN ASOTR data

Project structure

-> /bin/ - ready-to-use binary files and python scripts for assembling, extracting and plotting telemetry data
--> /bin/asotr_unzip_plot.sh or /bin/asotr_unzip_plot.bat — scripts to automate the unpack-convert-plot chain ASOTR data (Linux/Windows).
--> /bin/plot_flight_borders.py — Python script to generate plots from CSV data.
--> /bin/plot_flight_borders.sh or /bin/plot_flight_borders.bat - scripts to automate plot generations for MVN reports
--> /bin/tm_brd_parser.py - python script for demostration processing BRD telemetry data (1 Hz evolution)
--> /bin/tm_wheel_parser.py - python script for demostration processing BRD wheel telemetry data
-> /asotr_csv/ — binary parser to collect data from raw ASOTR data to CSV. This parser written using the Rust language. For more informatin see documentation in /asotr_csv/README.markdown).
-> /data/ — folder containing processed CSV files.
-> /plots/ — folder where output plots are saved.

Requirements

  • Ubuntu linux or Windows 10/11
  • sftp client
  • git client
  • Donwloaded data from science data server to directory <PATH_TO_ASOTR_DATA>.
    If you don't have MVN data, you might download it from server with science SRG data (IP: 193.232.11.95).
    For questions about downloading science data contact Shtykovsky A. (a.shtykovsky@cosmos.ru) or Chelovekov I. (chelovekov@cosmos.ru)

Linux (for example):

sftp username@IP_address
cd mvn/data/data/2025
get -r 20250101*

Setup

  1. Clone the repo to your computer:
git clone http://heagit.cosmos.ru/gamkov/mvn_flight.git
  1. Install wsl (for Windows 10/11):
    2.1 open powershell
wsl --install

2.2 Restart windows
2.3 check that the wsl is installed correctly

wsl --list --online
  1. Install Docker in wsl if you use Windows (follow the instructions in web-cite):
    https://docs.docker.com/engine/install/ubuntu/

Running a docker image is an alternative way to use mvn_flight software. Just follow the instructions:

  1. in docker-compose.yml file replace the following string:
    /home/danila/Danila/work/MVN/flight/data:/mnt/raw_mvn_data
    with:
    <PATH_TO_ASOTR_DATA>:/mnt/raw_mvn_data (see Requirements)

  2. compose and run docker image (in wsl if you use Windows):

docker compose up -d --build
  1. Check docker images and currently running containers:
docker images
docker ps -a

Using the tools

Plot all ASOTR data

  1. Donwload data from science data server to directory: <PATH_TO_ASOTR_DATA>.

  2. Parse all raw data from ASOTR into csv files and plot all csv data:

cd <PATH_TO_MVN_FLIGHT>
docker compose run --rm asotr_cronjob

or using crontab (parse all ASOTR raw data every 2 hours):

crontab -e
0 */2 * * * cd <PATH_TO_MVN_FLIGHT> && docker compose run --rm asotr_cronjob

csv files with ASOTR data: in directory:
<PATH_TO_MVN_FLIGHT>/data/asotr/

Plot ASOTR data in specified date borders (for MVN reports)

cd \<PATH_TO_MVN_FLIGHT\>
docker exec -it asotr_container bash
ls
./plot_flight_borders.sh 25.10.2025_00:00:00 28.10.2025_10:00:00

where:
25.10.2025_00:00:00 - start date_time
28.10.2025_10:00:00 - end date_time

plots with data are in the directory:

<PATH_TO_MVN_FLIGHT>/plots/reports

Attention: this plots you should pack to arcive and send to vvl@cosmos.ru

Contatcs

For questions about the program, please contact Danila Gamkov, email: danila_gamkov@cosmos.ru