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

Fix handling of nodata during timeseries conversion to meters #433

Merged

Conversation

scottstanie
Copy link
Collaborator

@scottstanie scottstanie commented Sep 19, 2024

After re-referencing, the nodata values at the boundaries are turned into random numbers. This now uses masked arrays which can retain the mask during shifting/scaling.

In a small test, the unwrapped interferograms have ~93% valid data:

$ gdalinfo -stats unwrapped/20180210_20180222.unw.tif | tail -1
    STATISTICS_VALID_PERCENT=93

but the timeseries rasters have ~all "valid data":

$ gdalinfo -stats timeseries/20180210_20180222.tif | tail -1
    STATISTICS_VALID_PERCENT=99.999

after this PR, this is fixed:

$ gdalinfo -stats timeseries/20180210_20180222.tif | tail -1
    STATISTICS_VALID_PERCENT=93

@scottstanie scottstanie merged commit 32b4df7 into isce-framework:main Sep 19, 2024
5 checks passed
@scottstanie scottstanie deleted the fix-timeseries-reference-nodata branch September 19, 2024 18:57
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.

1 participant