asotr_csv/README.markdown
2025-01-23 13:32:20 +03:00

89 lines
2.4 KiB
Markdown

# asotr_csv
The simplest parser for converting data from the ASOTR MVN control channels into the CSV format
## Contents
- Setup
- Using
- Contacts
## Setup
Instruction for setup asotr_csv project
1. Clone the repo to your computer:
```
git clone http://heagit.cosmos.ru/gamkov/asotr_csv.git
```
2. Enter the repo and install it:
```
cd <PATH_TO_ASOTR_CSV>
```
3. Install Rust compiler (if you don't have).
Installation on Linux:
```
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
```
Installation on Windows:
Go to address https://www.rust-lang.org/tools/install and follow instructions
For more detailed information you can go to: https://doc.rust-lang.ru/book/ch01-01-installation.html
4. Compile project with Rust:
```
cargo build
cargo build --release
```
After this commands you get execution file (asotr_csv) in the following directory: <PATH_TO_ASOTR_CSV>/target/release/
## Using
1. Donwload data from science data server
If you don't have MVN data, you might download it from server with science SRG data (IP: 193.232.11.95), contact Shtykovsky A.
2. Copy bash-script in order to unpack ASOTR MVN data:
```
cp <PATH_TO_ASOTR_CSV>/asotr_unzip.sh <PATH_TO_ASOTR_DATA>
```
3. Run asotr_unzip.sh for directory with MVN data, for example:
```
cd <PATH_TO_ASOTR_DATA>
./asotr_unzip.sh ./20241231-001
```
3. Copy asotr_csv parser and asotr_parse.sh script to directory with unpacked ASOTR data:
```
cd <PATH_TO_ASOTR_CSV>
cp asotr_parse.sh <PATH_TO_ASOTR_DATA>/20241231-001/data/asotr
cp target/release/asotr_csv <PATH_TO_ASOTR_DATA>/20241231-001/data/asotr
```
4. Run ASOTR data parsing into csv:
cd <PATH_TO_ASOTR_DATA>
./asotr_parse.sh
csv data are ready to use in directory:
PATH_TO_ASOTR_DATA/20241231-001/data
**File descriptions:**
asotr1_T.csv - ASOTR1 temperature data in channels 1-6 (in Celsius)
asotr1_P.csv - ASOTR1 power data in channels 1-6 (in %)
asotr1_TSET.csv - ASOTR1 temperature sets in channels 1-6 (in Celsius)
asotr2_T.csv - ASOTR2 temperature data in channels 1-6 (in Celsius)
asotr2_P.csv - ASOTR2 power data in channels 1-6 (in %)
asotr2_TSET.csv - ASOTR2 temperature sets in channels 1-6 (in Celsius)
**file data fromat:**
column 1: Unix timestamp
column 2: date
column 3: time
columns 4-9 - channels data (power, temperature or temperature set)
## Contatcs
For questions about the program, please contact Danila Gamkov, mail: danila_gamkov@cosmos.ru