GeoscienceAustralia / PyRate

A Python tool for estimating velocity and time-series from Interferometric Synthetic Aperture Radar (InSAR) data.
https://geoscienceaustralia.github.io/PyRate/
Apache License 2.0
203 stars 71 forks source link

Fix reference phase bug #341

Closed richardt94 closed 3 years ago

richardt94 commented 3 years ago

@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.