Skip to content

smart_geocubes.core.patches

Metadata for a single patch in a data cube.

Classes:

  • PatchIndex

    Metadata for a single patch in a data cube.

PatchIndex dataclass

PatchIndex(
    id: str,
    geometry: Geometry,
    time: tuple[str, str]
    | tuple[datetime, datetime]
    | str
    | datetime
    | None = None,
    item: PatchItem | None = None,
)

Bases: Generic[PatchItem]

Metadata for a single patch in a data cube.

Attributes:

geometry instance-attribute

geometry: Geometry

The time of the patch, if applicable.

id instance-attribute

id: str

The Geometry defining the spatial extent in EPSG:4326.

time class-attribute instance-attribute

time: (
    tuple[str, str]
    | tuple[datetime, datetime]
    | str
    | datetime
    | None
) = None

An associated item or metadata object useful for other operations.