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

Bugfix: Detect and ignore NaNs in per-pixel dem error calculation #344

Closed adeane-ga closed 2 years ago

adeane-ga commented 3 years ago

_This is a small PR for some additions to the dem_error.py file, we should create a new PR for some proper testing of the DEM error corrections._

The per-pixel DEM error estimation loop would fail because the loop would contain NaNs from out of frame regions

The baseline metadata in the IFG GeoTIFFs were not being updated because of the use of np.mean in the presence of NaNs

I also did some code tidying