MaxVol soil sampling based on environmental features - DEM, TWI, Slope, NDVI.
Description
How to run example of MaxVol soil-sampling based on environmental features?
Open How_to_start.ipynb
in Google Colab!
To plot results of comparison of MaxVol, cLHS and Simple Random Sampling open Plots.ipynb
maxvolpy - MaxVol python
https://pypi.org/project/maxvolpy/
Whitebox-tools - advanced geospatial data analysis
https://jblindsay.github.io/wbt_book/intro.html
Clone this repository and create new conda env
on your local machine
https://github.com/EDSEL-skoltech/maxvol_sampling
Create new conda env
with gdal
package for MaxVol
conda env create -f py3_maxvol_soil.yml
Activate it
conda activate maxvol_soil_sampling
To run MaxVol soil sampling based on test DEM, terrain features and NDVI:
$bash run_maxvol.sh --path_to_file ./DEM_files/dem.tif --path_to_output ./terrain --number_of_points 15
Anna Petrovskaia - [email protected] Mikhail Gasanov – [email protected]
Distributed under the MIT license. See LICENSE
for more information.
- Check path in bash scripts
- Add plots to README with examples
- Fork it (https://github.com/EDSEL-skoltech/maxvol_sampling/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request