-
Notifications
You must be signed in to change notification settings - Fork 297
fix conversion from phase to range for covariance #1456
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
base: main
Are you sure you want to change the base?
fix conversion from phase to range for covariance #1456
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the phase-to-range conversion for covariance to correctly use the squared phase-to-range factor when converting from radians to meters in interferogram inversion. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey - I've left some high level feedback:
- For clarity and to avoid any confusion about sign handling, consider using
ts_cov *= phase2range**2instead ofnp.abs(phase2range)**2, since the covariance scaling should inherently be sign-independent andphase2rangeis already defined with the appropriate sign.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- For clarity and to avoid any confusion about sign handling, consider using `ts_cov *= phase2range**2` instead of `np.abs(phase2range)**2`, since the covariance scaling should inherently be sign-independent and `phase2range` is already defined with the appropriate sign.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
7c6171d to
8d68fd4
Compare
|
Can confirm this bug exists: our in-house code applies a post-hoc fix for it. This correction looks right and shouldn't cause side effects. |
Description of proposed changes
This PR address issue #1340 which highlights that the conversion from phase to meters for covariance should be using a squared conversion factor in ifgram_inversion.py.
Reminders
Summary by Sourcery
Bug Fixes: