Skip to content

Fix duplicate timestamps in merging InSAR with GPS#37

Open
scottstanie wants to merge 1 commit intoopera-adt:mainfrom
scottstanie:fix-duplicate-timestamps
Open

Fix duplicate timestamps in merging InSAR with GPS#37
scottstanie wants to merge 1 commit intoopera-adt:mainfrom
scottstanie:fix-duplicate-timestamps

Conversation

@scottstanie
Copy link
Copy Markdown
Contributor

The full GPS workflow was sometimes creating duplicate InSAR rows:
image
It was not obvious in the graphs/linear fits, but I was manually editing these out for other summary statistics.

The problem was multiple GPS rows (from adjacent days or different times on the same day) were matching to the same InSAR epoch when using merge_asof with tolerance="1D", direction="nearest"

Now, after the merge, we keep only the closest GPS row per InSAR epoch by:

  1. Preserving the matched InSAR epoch as a column (insar_time)
  2. Computing the time difference between GPS and InSAR times
  3. Selecting the GPS row with the minimum time difference per InSAR epoch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant