Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a CRS argument to all coreg.fit functions * Replace old slope/aspect calculation with xdem implementation * Add a CRS argument to all coreg.fit functions * Replace old slope/aspect calculation with xdem implementation * Replace subsampling with geoutils.spatial_tools implementation * Improve testing subsampling for deramp coreg * Remove duplicate of deramping * Add function to calculate standard ddem stats * Fix circular import in previous commit * Ensure fit/apply always take transform+crs as input, update tests accordingly. Make non-resampling possible for NuthKaab. * Fix issue with arg name in overloading. Remove optional type for transform/crs. * Raise an error if unproject CRS is used for NuthKaab * Remove unused functions * Move the functions in a more logical order (nothing is changed) * Remove dilate_mask option of function * Fix bug with option not taken into account in CoregPipeline * Fix bug with resampling option not taken into account in Coregpipeline * Revert to old slope/aspect calculation, more efficient * Add a function to create inlier_mask for coreg * Add inout to ignored codespell errors * Add tests for create_inlier_mask function * Update dem_coregistration function to use create_inlier_mask * Fix typo in previous commit and apply linting * Fix issue iwth NMAD improperly calculated * Add a filter to remove pixels with dh above an absolute threshold * Update comment * Implement resample=False in dem_coregistration * Remove the hmode/vmode. Update docstring of dem_coregistration. * Enable input src/ref dem as Raster and not only path to file * Implement resample=False for BiasCorr * Update tests for create_inlier_mask * Make sure option resample=False is flagged as not implemented for BlockWiseCoreg * Add tests for resample=False option * Linting * Update default coreg method and modify outputs of dem_coregistration * Add test suite for dem_coregistration function * Update pre-commit * Fix mypy issue * Account for PR comments * Remove NaN forcing * Linting * Remove unnecessary type * Rename fit_func * Improve docstrings * Simplify if statement * Make resampling algo an optional argument for Coreg.apply * Fix two bugs and add comment * Update NuthKaab shift in tests * Update tests in examples and coreg * Update test_spatialstats values with new coreg that outputs ddem with less nodata * Fix runtime warning in code example * Fix coregistration code snippet * Fix coreg example with new transform and crs argument of Coreg class --------- Co-authored-by: rhugonne <romain.hugonnet@gmail.com>
- Loading branch information