Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Addresses #423.
Problem
In
estimate_iono_main_diff_low_high, the non-dispersive phase was computed asphi0_main / 2 + z_coeff * phi0_diff_low_high. Withz_coeffas defined, the signof the second term is wrong: the returned non-dispersive phase approaches the
dispersive component rather than the non-dispersive one (e.g. a noiseless
N=3 rad, I=0 rad input returned N=0.000174 rad).
Because
compute_unwrapp_error_main_diff_low_highassumesmain = non_dispersive + dispersive,this also produced spurious integer unwrapping coefficients on a synthetic field with
no injected unwrapping errors (N=148, I=-153 rad gave (48, 1)).
Fix
Flip the sign:
non_dispersive = phi0_main / 2 - z_coeff * phi0_diff_low_high.The dispersive expression is unchanged. Residual error in both components is the
expected finite-band approximation, bounded by eps = ((fh - fl) / (2 * f0))**2
(about 1.2e-4 here).
The tests assume the forward model
phi(f) = (f/f0)*N + (f0/f)*I, withphi0_main = phi(f0)andphi0_diff_low_high = phi(fh) - phi(fl)(high minus low).The existing dispersive expression is consistent with this model; the non-dispersive
one was not. If the intended convention differs, please let me know.
I also considered
non_dispersive = phi0_main - dispersive, which closes exactly butmoves all of the finite-band error into the non-dispersive term. Happy to switch if
maintainers prefer exact closure or a full 2x2 inversion.
Tests
New
tests/python/packages/isce3/atmosphere/split_band_estimation.py, registered in CMake:On the unpatched v0.25.22 install, 5 of 6 new tests fail; with this change all 6 pass,
along with the existing
ionosphere.pytests (10 passed total). I validated by overlayingthe patched file onto the v0.25.22 conda install, not by a full source build.
Scope
This corrects the estimator only. Behaviour of the unwrapping-error correction on
genuinely contaminated data is not claimed to be solved here.