-
Notifications
You must be signed in to change notification settings - Fork 19
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
Adapt short wavelength filter to use gdal_fillnodata
to mitigate edge effects
#520
Conversation
CI error is a temporary problem with dependency version mismatches conda-forge/jaxlib-feedstock#296 |
|
||
filtered_ifg = unw_ifg_interp - lowpass_filtered * in_bounds_pixels | ||
filtered_ifg = filled_data - lowpass_filtered * in_bounds_pixels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah good catch! Weird that it ever worked for me...
@@ -42,6 +45,9 @@ def filter_long_wavelength( | |||
Value to place in output pixels which were masked. | |||
If `None`, masked pixels are filled with the ramp value fitted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not fitting ramp anymore.
Should we say like this?
If 'None', masked pixels are filled with interpolated values using 'gdal_fillnodata'.
* Update filtering.py * Update filtering.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Testing on a horizontal ramp:
the main branch leaves an edge effect:
This PR gives all zeros, as we would want.
Sanity check on small, real unwrapping interferogram looks okay as well.