Skip to content

Conversation

@soxofaan
Copy link
Member

@soxofaan soxofaan commented Jun 5, 2025

for #699, #692, #586

@soxofaan soxofaan force-pushed the issue699-stac11-band-support branch from 7d82278 to 1bbfeed Compare June 5, 2025 13:05
@soxofaan soxofaan force-pushed the issue699-stac11-band-support branch from 3b7212d to 2d42695 Compare June 16, 2025 12:41
soxofaan added 4 commits June 17, 2025 18:09
Support for STAC 1.1 item_assets through `Collection.item_assets`
is only available since 1.12. Below that DIY dict handling is necessary.
@soxofaan soxofaan force-pushed the issue699-stac11-band-support branch from 3c773d1 to 6d5c5ad Compare June 17, 2025 16:10
return TemporalDimension(name=name, extent=extent)

def _band_from_eo_bands_metadata(self, band: Union[dict, pystac.extensions.eo.Band]) -> Band:
"""Construct band from metadata dict in eo v1.1 style"""
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
"""Construct band from metadata dict in eo v1.1 style"""
"""Construct band from metadata in eo v1.1 style"""

return bands

# TODO: instead of warning: exception, or return None?
self._warn("bands_from_stac_item: no band name source found")
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: way to suppress this warning when traversing a deeper hierarchy?

return _BandList(self._band_from_common_bands_metadata(b) for b in asset.extra_fields["bands"])

# TODO: instead of warning: exception, or return None?
self._warn("bands_from_stac_asset: no band name source found")
Copy link
Member Author

Choose a reason for hiding this comment

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

way to suppress warning when traversing

soxofaan added a commit that referenced this pull request Jun 18, 2025
…tructs

no need to trigger low level warnings when traversing and merging larger STAC hierarchies
soxofaan added 2 commits June 18, 2025 13:27
…tructs

no need to trigger low level warnings when traversing and merging larger STAC hierarchies
@soxofaan soxofaan force-pushed the issue699-stac11-band-support branch from 79eae28 to 68c4b6b Compare June 18, 2025 11:27
soxofaan added a commit that referenced this pull request Jun 18, 2025
soxofaan added a commit that referenced this pull request Jun 18, 2025
@soxofaan soxofaan force-pushed the issue699-stac11-band-support branch from c9fc810 to 81d0d84 Compare June 18, 2025 13:26
@soxofaan soxofaan merged commit 06cf1f2 into master Jun 18, 2025
14 checks passed
@soxofaan soxofaan deleted the issue699-stac11-band-support branch June 19, 2025 07:58
soxofaan added a commit that referenced this pull request Sep 9, 2025
…tructs

no need to trigger low level warnings when traversing and merging larger STAC hierarchies
soxofaan added a commit that referenced this pull request Sep 9, 2025
soxofaan added a commit that referenced this pull request Sep 9, 2025
soxofaan added a commit that referenced this pull request Sep 9, 2025
…tructs

no need to trigger low level warnings when traversing and merging larger STAC hierarchies
soxofaan added a commit that referenced this pull request Sep 9, 2025
soxofaan added a commit that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants