Open adebardo opened 1 month ago
Looks good! :slightly_smiling_face:
So the "explain affine only" would essentially be a check like coreg_method.is_affine
for a Coreg
object or all(c.is_affine for c in coreg_method)
for a CoregPipeline
object?
I'm not sure of the behaviour of the is_affine
property on a pipeline right now (it might fail), we could modify it so it derives the proper attribute directly here: https://github.com/GlacioHack/xdem/blob/595acb9bf2ba150232cf161fc09f8747c84b5602/xdem/coreg/base.py#L1602 (either by finding a solution for it to run on all subclasses, or simply by overridding the property in CoregPipeline
).
Context
The CNES wants to integrate the ability to instantiate an initial offset for the co-registration calculation. Because the
dem_coregistration
function allows for easy addition of this feature and we will recommend its use to CNES members, we propose simple modifications at this level.Implementation
Using the
translate
function from Geoutils:The
translate
function from Geoutils allows for translating a Digital Elevation Model (DEM). We will call this function in thedem_coregsitration
method .Tests
dem_coregistration
function with an initial offset value different from 0.Here, a new paragraph should be added to test this updated version.
Documentation
estimated_initial_shift
/estimation 3d