Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate Already Processed Pairs by Searching S3 #179

Merged
merged 19 commits into from
Nov 7, 2024

Conversation

AndrewPlayer3
Copy link
Contributor

No description provided.

its_live_monitoring/src/main.py Show resolved Hide resolved
its_live_monitoring/src/main.py Outdated Show resolved Hide resolved
its_live_monitoring/src/main.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jhkennedy jhkennedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay this is looking good! I picked a reference scene processed yesterday:

LC09_L1GT_063110_20241105_20241105_02_T2

https://hyp3-its-live.asf.alaska.edu/jobs/77728a21-a200-4064-a9d9-b8fd22598096

And ran it through its-live-monitoring (output below). I'm seeing it successfully de-duplicate from S3!

$ python its_live_monitoring/src/main.py -v LC09_L1GT_063110_20241105_20241105_02_T2
2024-11-06 22:49:28,765 - DEBUG - its_live_monitoring/src/main.py -v LC09_L1GT_063110_20241105_20241105_02_T2
2024-11-06 22:49:28,881 - INFO - LC09_L1GT_063110_20241105_20241105_02_T2 qualifies for processing
2024-11-06 22:49:29,061 - DEBUG - LC08_L1GT_063110_20241028_20241104_02_T2 qualifies for processing
2024-11-06 22:49:29,061 - DEBUG - LC09_L1GT_063110_20241020_20241020_02_T2 qualifies for processing
2024-11-06 22:49:29,061 - DEBUG - LC08_L1GT_063110_20241012_20241021_02_T2 qualifies for processing
2024-11-06 22:49:29,062 - DEBUG - LC09_L1GT_063110_20241004_20241004_02_T2 qualifies for processing
2024-11-06 22:49:29,062 - DEBUG - LC08_L1GT_063110_20240926_20241005_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,062 - DEBUG - LC09_L1GT_063110_20240918_20240919_02_T2 qualifies for processing
2024-11-06 22:49:29,062 - DEBUG - LC08_L1GT_063110_20240910_20240914_02_T2 qualifies for processing
2024-11-06 22:49:29,063 - DEBUG - LC08_L1GT_063110_20240403_20240411_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,063 - DEBUG - LC09_L1GT_063110_20240326_20240326_02_T2 qualifies for processing
2024-11-06 22:49:29,063 - DEBUG - LC08_L1GT_063110_20240318_20240402_02_T2 qualifies for processing
2024-11-06 22:49:29,239 - DEBUG - LC09_L1GT_063110_20240310_20240310_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,239 - DEBUG - LC08_L1GT_063110_20240302_20240314_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,240 - DEBUG - LC09_L1GT_063110_20240223_20240223_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,240 - DEBUG - LC08_L1GT_063110_20240215_20240223_02_T2 qualifies for processing
2024-11-06 22:49:29,240 - DEBUG - LC09_L1GT_063110_20240207_20240207_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,240 - DEBUG - LC08_L1GT_063110_20240130_20240207_02_T2 qualifies for processing
2024-11-06 22:49:29,241 - DEBUG - LC09_L1GT_063110_20240122_20240122_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,241 - DEBUG - LC08_L1GT_063110_20240114_20240124_02_T2 qualifies for processing
2024-11-06 22:49:29,241 - DEBUG - LC09_L1GT_063110_20240106_20240106_02_T2 qualifies for processing
2024-11-06 22:49:29,241 - DEBUG - LC08_L1GT_063110_20231229_20240108_02_T2 qualifies for processing
2024-11-06 22:49:29,407 - DEBUG - LC09_L1GT_063110_20231221_20231223_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,408 - DEBUG - LC08_L1GT_063110_20231213_20240102_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,408 - DEBUG - LC09_L1GT_063110_20231205_20231205_02_T2 qualifies for processing
2024-11-06 22:49:29,408 - DEBUG - LC08_L1GT_063110_20231127_20231208_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,408 - DEBUG - LC09_L1GT_063110_20231119_20231119_02_T2 qualifies for processing
2024-11-06 22:49:29,409 - DEBUG - LC08_L1GT_063110_20231111_20231117_02_T2 qualifies for processing
2024-11-06 22:49:29,409 - DEBUG - LC09_L1GT_063110_20231103_20231103_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,409 - DEBUG - LC08_L1GT_063110_20231026_20231101_02_T2 qualifies for processing
2024-11-06 22:49:29,409 - DEBUG - LC09_L1GT_063110_20231018_20231018_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,409 - DEBUG - LC08_L1GT_063110_20231010_20231017_02_T2 qualifies for processing
2024-11-06 22:49:29,548 - DEBUG - LC09_L1GT_063110_20231002_20231002_02_T2 qualifies for processing
2024-11-06 22:49:29,548 - DEBUG - LC08_L1GT_063110_20230924_20231002_02_T2 disqualifies for processing because it has too much cloud cover
2024-11-06 22:49:29,548 - DEBUG - LC09_L1GT_063110_20230916_20230916_02_T2 qualifies for processing
2024-11-06 22:49:29,548 - DEBUG - LC08_L1GT_063110_20230908_20230912_02_T2 qualifies for processing
2024-11-06 22:49:29,659 - DEBUG - Found 21 secondary scenes for LC09_L1GT_063110_20241105_20241105_02_T2
2024-11-06 22:49:29,686 - INFO - Found 21 pairs for LC09_L1GT_063110_20241105_20241105_02_T2
2024-11-06 22:49:29,694 - DEBUG -                                    reference                                 secondary
1   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20241020_20241020_02_T2
3   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20241004_20241004_02_T2
4   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240918_20240919_02_T2
6   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240326_20240326_02_T2
11  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240106_20240106_02_T2
13  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231205_20231205_02_T2
14  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231119_20231119_02_T2
18  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231002_20231002_02_T2
19  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20230916_20230916_02_T2
0   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20241028_20241104_02_T2
2   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20241012_20241021_02_T2
5   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240910_20240914_02_T2
7   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240318_20240402_02_T2
8   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240215_20240223_02_T2
9   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240130_20240207_02_T2
10  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240114_20240124_02_T2
12  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231229_20240108_02_T2
15  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231111_20231117_02_T2
16  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231026_20231101_02_T2
17  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231010_20231017_02_T2
20  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20230908_20230912_02_T2
2024-11-06 22:49:30,146 - INFO - Deduplicated HyP3 running/pending pairs; 21 remaining
2024-11-06 22:49:30,151 - DEBUG -                                    reference                                 secondary
1   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20241020_20241020_02_T2
3   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20241004_20241004_02_T2
4   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240918_20240919_02_T2
6   LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240326_20240326_02_T2
11  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20240106_20240106_02_T2
13  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231205_20231205_02_T2
14  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231119_20231119_02_T2
18  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20231002_20231002_02_T2
19  LC09_L1GT_063110_20241105_20241105_02_T2  LC09_L1GT_063110_20230916_20230916_02_T2
0   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20241028_20241104_02_T2
2   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20241012_20241021_02_T2
5   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240910_20240914_02_T2
7   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240318_20240402_02_T2
8   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240215_20240223_02_T2
9   LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240130_20240207_02_T2
10  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20240114_20240124_02_T2
12  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231229_20240108_02_T2
15  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231111_20231117_02_T2
16  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231026_20231101_02_T2
17  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20231010_20231017_02_T2
20  LC09_L1GT_063110_20241105_20241105_02_T2  LC08_L1GT_063110_20230908_20230912_02_T2
2024-11-06 22:49:33,930 - INFO - Deduplicated already published pairs; 0 remaining
2024-11-06 22:49:33,934 - DEBUG - Empty DataFrame
Columns: [reference, secondary]
Index: []
2024-11-06 22:49:33,936 - INFO - 0 HyP3 Jobs: 0 succeeded, 0 failed, 0 running, 0 pending.

@jhkennedy jhkennedy marked this pull request as ready for review November 7, 2024 07:55
@jhkennedy jhkennedy requested a review from a team as a code owner November 7, 2024 07:55
@AndrewPlayer3 AndrewPlayer3 merged commit bab883c into develop Nov 7, 2024
4 checks passed
@AndrewPlayer3 AndrewPlayer3 deleted the s3_deduplication branch November 7, 2024 18:03
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.

2 participants