Skip to content
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

Replace NaN values with zero #7

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

gmgunter
Copy link
Member

@gmgunter gmgunter commented Dec 5, 2023

Closes #2

SNAPHU errors if the input interferogram contains NaN or infinity values, but NaN is commonly used as a fill value to represent invalid samples, which we want to mask out for purposes of unwrapping.

As @scottstanie reminded me, it's convenient for the Python wrapper to replace NaN values with zeros, since SNAPHU treats zero-magnitude samples as invalid (masked out).

SNAPHU errors if the input interferogram contains NaN or infinity
values, but NaN is commonly used as a fill value to represent invalid
samples, which SNAPHU should mask out for purposes of unwrapping.

It's convenient for the Python wrapper to replace NaN values with zeros,
since SNAPHU treats zero-magnitude samples as invalid (masked out).
@gmgunter gmgunter changed the title Replace NaN-values with zero Replace NaN values with zero Dec 5, 2023
@gmgunter gmgunter merged commit f194f79 into isce-framework:main Dec 5, 2023
5 checks passed
@gmgunter gmgunter deleted the replace-nans branch December 5, 2023 05:13
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.

Snaphu crashes when using interferograms/correlation with nan as nodata
1 participant