Scene#

class Scene[source]#

Bases: object

The raster data and labels associated with an area of interest.

Attributes

bbox

Bounding box applied to the source data.

extent

Extent of the associated RasterSource.

__init__(id: str, raster_source: RasterSource, label_source: LabelSource | None = None, label_store: LabelStore | None = None, aoi_polygons: list['BaseGeometry'] | None = None)[source]#

Constructor.

During initialization, Scene attempts to set the extents of the given label_source and the label_store to be identical to the extent of the given raster_source.

Parameters:
  • id (str) – ID for this scene.

  • raster_source (RasterSource) – Source of imagery for this scene.

  • label_source (LabelSource | None) – Source of labels for this scene.

  • label_store (LabelStore | None) – Store of predictions for this scene.

  • aoi – Optional list of AOI polygons in pixel coordinates.

  • aoi_polygons (list['BaseGeometry'] | None) –

Methods

__init__(id, raster_source[, label_source, ...])

Constructor.

__getitem__(key: Any) tuple[Any, Any][source]#
Parameters:

key (Any) –

Return type:

tuple[Any, Any]

__init__(id: str, raster_source: RasterSource, label_source: LabelSource | None = None, label_store: LabelStore | None = None, aoi_polygons: list['BaseGeometry'] | None = None)[source]#

Constructor.

During initialization, Scene attempts to set the extents of the given label_source and the label_store to be identical to the extent of the given raster_source.

Parameters:
  • id (str) – ID for this scene.

  • raster_source (RasterSource) – Source of imagery for this scene.

  • label_source (LabelSource | None) – Source of labels for this scene.

  • label_store (LabelStore | None) – Store of predictions for this scene.

  • aoi – Optional list of AOI polygons in pixel coordinates.

  • aoi_polygons (list['BaseGeometry'] | None) –

property bbox: Box#

Bounding box applied to the source data.

property extent: Box#

Extent of the associated RasterSource.