Add apply_z_correction
Parameter to warp_dem
Function
#670
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #643.
Description
This pull request introduces a new parameter,
apply_z_correction
, to thewarp_dem
function. This enhancement allows users to control whether vertical correction (Z-offset) is applied during the DEM warping process. The default behavior remains the same, with the Z-correction applied. However, users can now disable this correction by settingapply_z_correction=False
.Changes
apply_z_correction
parameter: A boolean parameter was added to thewarp_dem
function and theBlockwiseCoreg
class to allow toggling of Z-offset application. When set to False, the Z-adjustment step is skipped during the warping process.Test Update
warp_dem
has been updated to ensure that the function works as expected whenapply_z_correction=False
.