VWC (Volumetric Water Content) calculation tool based on myClim R package algorithms.
cargo install --path .cargo install soil-sensor-toolboxcargo build --releasecargo run -- <input_file> <soil_type>soil-sensor-toolbox <input_file> <soil_type>Example:
soil-sensor-toolbox data.csv universal
soil-sensor-toolbox data.csv peatAvailable soil types:
sandloamy_sand_Aloamy_sand_Bsandy_loam_Asandy_loam_Bloamsilt_loampeatwateruniversalsand_TMS1loamy_sand_TMS1silt_loam_TMS1
Direct 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.shThis will generate the output files with VWC for each soil type from the R script myClim.
Then run the tests:
cargo test