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
200 stars 70 forks source link

Fix spatial temporal filter #311

Closed mcgarth closed 3 years ago

mcgarth commented 3 years ago

This PR fixes the spatio-temporal filter functionality (that previously produced spurious results) in pyrare.core.aps and puts the functionality under unit test.

chandra2ga commented 3 years ago

I reviewed this PR and performed different unit tests. Now I can confirm that this PR is working as expected and ready to merge.

Here are some feedback:

  1. 1- 4 comments are checked.
  2. 5th comment regarding spatial interpolation, it's good to have nearest neighbor method as default option but I would definitely suggest to keep other options open for users to choose, and might suitable for their processing.
  3. I checked and performed unit test for temporal and spatial gaussian filters option. Looks alright to me.

So I approved this PR and ready to merge into develop/ 👍

mcgarth commented 3 years ago

To be clear, nearest is the default option for spatial interpolation in the APS filter, but cubic and linear methods are still selectable via the slpnanfill_method config parameter option.

I have removed slpnanfill_method from the top level input_parameters.conf because I believe nearest to be the best choice. But those users who are in the know, can add that parameter into their config file and choose linear or cubic options instead. ;-)