Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POC] simple CLI nuth and kaab #623

Open
7 tasks
adebardo opened this issue Oct 28, 2024 · 1 comment
Open
7 tasks

[POC] simple CLI nuth and kaab #623

adebardo opened this issue Oct 28, 2024 · 1 comment
Labels
[POC] TODO Ready for developpment

Comments

@adebardo
Copy link

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
Copy link
Author

/estimate 3d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[POC] TODO Ready for developpment
Projects
None yet
Development

No branches or pull requests

1 participant