| Crates.io | soil-sensor-toolbox |
| lib.rs | soil-sensor-toolbox |
| version | 0.1.3 |
| created_at | 2025-07-02 10:55:23.858029+00 |
| updated_at | 2025-07-02 12:29:47.554976+00 |
| description | A Rust library for processing soil moisture data from TMS4 sensors. |
| homepage | |
| repository | https://github.com/LabSOIL/sensor-toolbox |
| max_upload_size | |
| id | 1734947 |
| size | 2,488,623 |
VWC (Volumetric Water Content) calculation tool based on myClim R package algorithms.
cargo install --path .
cargo install soil-sensor-toolbox
cargo build --release
cargo run -- <input_file> <soil_type>
soil-sensor-toolbox <input_file> <soil_type>
Example:
soil-sensor-toolbox data.csv universal
soil-sensor-toolbox data.csv peat
Available soil types:
sandloamy_sand_Aloamy_sand_Bsandy_loam_Asandy_loam_Bloamsilt_loampeatwateruniversalsand_TMS1loamy_sand_TMS1silt_loam_TMS1Direct from the TMS4 sensor:
0;2023.05.30 06:45;4;22.25;22.25;22.5;354;202;0;
1;2023.05.30 07:00;4;21.75;22;22.125;353;202;0;
2;2023.05.30 07:15;4;21.125;21.5;21.375;351;202;0;
...
Creates output.csv with VWC calculations.
First you will need to generate the test data:
cd ./tests/fixtures
./generate_r_data.sh
This will generate the output files with VWC for each soil type from the R script myClim.
Then run the tests:
cargo test