xdem icon indicating copy to clipboard operation
xdem copied to clipboard

[POC] get classif for CLI

Open adebardo opened this issue 1 year ago • 1 comments

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 run of xdem_cli.py, add a line to read this classification
	mask = gu.Raster('xdem_gironde_mask.tif')
  • [ ] If only one DEM is in inputs associated_dem should be optionnal

Tests

  • [ ] Add verification tests for the verify_inputs(config["inputs"]) functions.

Doc

  • [ ] Add a paragraph about classification

estimation

1d

adebardo avatar Aug 23 '24 13:08 adebardo

All good for me

adehecq avatar Sep 17 '24 13:09 adehecq