odc.stac.ParsedItem

class odc.stac.ParsedItem(id, collection, bands, geometry=None, datetime=None, datetime_range=(None, None), href=None)[source]

Captures essentials parts for data loading from a STAC Item.

Only includes raster bands of interest.

__init__(id, collection, bands, geometry=None, datetime=None, datetime_range=(None, None), href=None)

Methods

__init__(id, collection, bands[, geometry, ...])

assets()

Extract bands grouped by asset they belong to.

crs([bands])

First non-null CRS across assets.

geoboxes([bands])

Unique GeoBox s, highest resolution first.

get(k[,d])

image_geometry([crs, bands])

Extract footprint of a given band(s) from proj metadata in a given projection.

items()

keys()

resolve_bands([bands])

Query bands taking care of aliases.

safe_geometry([crs, bands])

Get item geometry footprint in desired projection or native.

solar_date_at(lon)

Nominal datetime adjusted by longitude.

strip()

Copy of self but with stripped bands.

values()

Attributes

datetime

Nominal timestamp.

datetime_range

Time period covered.

geometry

Footprint of the dataset.

href

Self link from stac item.

mid_longitude

Return longitude of the center point.

nominal_datetime

Resolve timestamp to a single value.

solar_date

Nominal datetime adjusted by longitude.

id

Item id copied from STAC.

collection

Collection this Item is part of.

bands

Raster bands.