xdem icon indicating copy to clipboard operation
xdem copied to clipboard

[POC] simple CLI nuth and kaab

Open adebardo opened this issue 1 year ago • 1 comments

Given that Valentin is making good progress this month, we will set up a simple CLI that allows for the coregistration of two DEMs with Nuth and Kaab.

Context

The goal of this ticket is to implement coregistration from the xdem run.

  • [ ] add the right function to veirfy both path exists

  • [ ] Load the reference and secondary DEMs using the accessor: reference_elev, to_be_aligned_elev = geoutils.rasters.load_multiple_rasters([config["inputs"]["reference_elev"], config["inputs"]["to_be_aligned_elev"])

  • [ ] Execute a coregistration:

from worflows import dem_coregistration

coreg_dem, coreg_method, out_stats, inlier_mask = dem_coregistration(reference_elev, to_be_aligned_elev, config["outputs"]["path"])
coreg_dem.save("aligned_dem.tif")
print(coreg.meta)
print(out_stats)
inlier_mask.save("inlier_mask.tif")

For the tests

  • [ ] Retrieve test data and ground truth data
  • [ ] Verify that the outputs matches the ground truth from here in the file tests/test_cli.py
  • [ ] add tests for new entry

For the documentation

  • [ ] Update the quick start guide in the documentation

adebardo avatar Oct 28 '24 16:10 adebardo

/estimate 3d

adebardo avatar Oct 28 '24 16:10 adebardo