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

Address issue where a small number of Sentinel-2 scenes in GCP bucket are missing some bands #110

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

favyen2
Copy link
Collaborator

@favyen2 favyen2 commented Nov 21, 2024

Previously we ignored the error during ingestion. Then we changed it so the error remains. Neither is perfect since this means either the job fails or some items failed to ingest; it would be better to avoid those scenes during prepare (get_items) so that we can read other windows instead (if possible).

This PR implements that, so in get_items we only match with scenes that have all the bands intact in the bucket.

Note this PR depends on #104.

@favyen2 favyen2 changed the title Address known issue where a small number of Sentinel-2 scenes in GCP bucket are missing some bands Address issue where a small number of Sentinel-2 scenes in GCP bucket are missing some bands Nov 21, 2024
Copy link
Collaborator

@Hgherzog Hgherzog left a comment

Choose a reason for hiding this comment

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

Overall looks good, need to add some tests for the error catching functionality, otherwise minor comments

rslearn/data_sources/gcp_public_data.py Outdated Show resolved Hide resolved
rslearn/data_sources/gcp_public_data.py Outdated Show resolved Hide resolved
rslearn/data_sources/gcp_public_data.py Outdated Show resolved Hide resolved
rslearn/data_sources/gcp_public_data.py Outdated Show resolved Hide resolved
rslearn/data_sources/gcp_public_data.py Show resolved Hide resolved
rslearn/data_sources/gcp_public_data.py Show resolved Hide resolved
@favyen2
Copy link
Collaborator Author

favyen2 commented Jan 9, 2025

thanks, made these updates!

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