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

Linear samples not matching time series 'valid observation' threshold #351

Open adeane-ga opened 3 years ago

adeane-ga commented 3 years ago

Description

Expected behaviour If we set ts_pthr to 10, then we should see a velocity map that includes results only for those pixels where there are 10 or more observations.

Summary of findings

Where is this happening? _These code links are from the time_series.py script_

Data Example _Here I am working on a small cropped data set to document issue. There are 17 IFGs and 8 time series epochs. I have ts_pthr set to 4. So our time series and rates should only include 4 or more obervations per pixel. But we see that there is as little as two for some pixels._

Linear rate map: image

Linear samples map: image

Print out of relevant variables The array sel is the IFGs after MST selection. I printed the length of this out per pixel after the if statement which uses the ts_pthr value of 4 as a threshold:

image

I did the same thing for the variable nsamp which is the final amount of samples in a pixel:

image

Remaining questions