Scene#
- class Scene[source]#
Bases:
object
The raster data and labels associated with an area of interest.
Attributes
Bounding box applied to the source data.
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 givenlabel_source
and thelabel_store
to be identical to the extent of the givenraster_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.
- __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 givenlabel_source
and thelabel_store
to be identical to the extent of the givenraster_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 extent: Box#
Extent of the associated
RasterSource
.