opendatacube / eo-datasets

Easily write, validate and convert EO datasets and metadata.
Apache License 2.0
49 stars 26 forks source link

Select datastrip files for the current granule #275

Closed jeremyh closed 1 year ago

jeremyh commented 1 year ago

Add code to decide between multiple datastrip files.

Some S2 files we're seeing have multiple datastrips in them (not just multiple granules).

The new code will read all datastrip metadata files to find which one contains the current tile (granule), and only use it.

codecov[bot] commented 1 year ago

Codecov Report

Base: 84.91% // Head: 84.88% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (a372f95) compared to base (e4131ca). Patch coverage: 80.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #275 +/- ## =========================================== - Coverage 84.91% 84.88% -0.04% =========================================== Files 25 25 Lines 4375 4385 +10 =========================================== + Hits 3715 3722 +7 - Misses 660 663 +3 ``` | [Impacted Files](https://codecov.io/gh/opendatacube/eo-datasets/pull/275?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendatacube) | Coverage Δ | | |---|---|---| | [eodatasets3/prepare/sentinel\_l1\_prepare.py](https://codecov.io/gh/opendatacube/eo-datasets/pull/275/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendatacube#diff-ZW9kYXRhc2V0czMvcHJlcGFyZS9zZW50aW5lbF9sMV9wcmVwYXJlLnB5) | `79.90% <80.00%> (-0.25%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendatacube). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendatacube)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.