Skip to content

Fix reference phase bug #341

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

Merged
merged 1 commit into from
Jun 17, 2021
Merged

Fix reference phase bug #341

merged 1 commit into from
Jun 17, 2021

Conversation

richardt94
Copy link
Contributor

@mcgarth noticed a bug where areas outside the frame contained non-NaN values in the phase closure loop plots. I traced this back to the reference phase subtraction - this was done without masking the no-data values in the source dataset, so if the no-data val was zero, no-data pixels would become non-zero after subtracting the reference phase, and then be treated as valid pixels downstream. This PR converts no-data pixels to NaN before doing ref phase subtraction.

@richardt94 richardt94 changed the base branch from master to develop June 17, 2021 05:26
@richardt94 richardt94 requested a review from mcgarth June 17, 2021 05:27
@richardt94 richardt94 force-pushed the ref_phase_mask_fix branch from 63d0e50 to 74387f4 Compare June 17, 2021 05:31
Copy link
Contributor

@mcgarth mcgarth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve this PR subject to the test suite all passing

@richardt94 richardt94 merged commit 5caba9e into develop Jun 17, 2021
@mcgarth mcgarth deleted the ref_phase_mask_fix branch June 18, 2021 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants