Module stac_helpers

Source
Expand description

STAC helpers for querying and processing STAC ItemCollections.

This module provides utility functions for working with STAC (SpatioTemporal Asset Catalog) data including extracting datetimes, asset names, and sourcing files.

Functionsยง

canonical_asset_name ๐Ÿ”’
get_asset_href
Gets the asset href for a specific date and asset name from a STAC feature collection.
get_asset_names
Extracts asset names from a STAC ItemCollection.
get_items_for_date
Gets STAC items matching a specific date (within 24 hours).
get_name_from_bands ๐Ÿ”’
get_sorted_datetimes
Extracts sorted datetimes from a STAC ItemCollection.
get_sources_for_asset
Gets file paths for a specific asset from STAC items.
swap_coordinates
Swaps x and y coordinates in a geometry.
unique_datetimes_in_range
Returns unique datetimes from a vector, merging those within 6 hours of each other.