xdem
xdem copied to clipboard
[POC] get classif for CLI
Context
The purpose of this ticket is to implement the reading of classification masks from the CLI.
New Configuration
[inputs]
[inputs.classification]
path = "path/to/file"
description = ["land", "buildings", "forest"]
associated_dem = "reference_elev"
Code
:warning: The masks will be treated as rasters using the GeoUtils tool.
:warning: The masks are binary masks stacked in different bands.
- [ ] First, it is necessary to update the input checks in
verify_inputs(config["inputs"])
Reading a raster from the CLI:
- [ ] In the
runofxdem_cli.py, add a line to read this classification
mask = gu.Raster('xdem_gironde_mask.tif')
- [ ] If only one DEM is in inputs
associated_demshould be optionnal
Tests
- [ ] Add verification tests for the
verify_inputs(config["inputs"])functions.
Doc
- [ ] Add a paragraph about classification
estimation
1d
All good for me