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
199 stars 69 forks source link

Bug: pixels at reference area location are masked out. #361

Open adeane-ga opened 2 years ago

adeane-ga commented 2 years ago

Problem To place all interferograms in reference to a common area, a reference pixel is chosen so that the phase from this pixel is subtracted from the whole interferogram. A kernal is used for this, where the median phase of the kernal is used as the value to subtract from the interferogram.

Visual example:

image

This is currently only occurring with higher resolution processing. But could be occurring elsewhere.

mcgarth commented 2 years ago

This is a persistent issue, first noted by @chandra2ga in multi-looked data analysis.

The easiest fix is in the APS module - keep an array that marks the location of NaNs prior to zero conversion and then use this to re-insert the NaNs in the output after APS filtering. This should then not affect the reference pixel area.