Scene#
- class Scene[source]#
Bases:
objectThe 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: Optional[LabelSource] = None, label_store: Optional[LabelStore] = None, aoi_polygons: Optional[List[BaseGeometry]] = None)[source]#
Constructor.
During initialization,
Sceneattempts to set the extents of the givenlabel_sourceand thelabel_storeto 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 (Optional[LabelSource]) – Source of labels for this scene.
label_store (Optional[LabelStore]) – Store of predictions for this scene.
aoi – Optional list of AOI polygons in pixel coordinates.
Methods
__init__(id, raster_source[, label_source, ...])Constructor.
- __init__(id: str, raster_source: RasterSource, label_source: Optional[LabelSource] = None, label_store: Optional[LabelStore] = None, aoi_polygons: Optional[List[BaseGeometry]] = None)[source]#
Constructor.
During initialization,
Sceneattempts to set the extents of the givenlabel_sourceand thelabel_storeto 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 (Optional[LabelSource]) – Source of labels for this scene.
label_store (Optional[LabelStore]) – Store of predictions for this scene.
aoi – Optional list of AOI polygons in pixel coordinates.
- property extent: Box#
Extent of the associated
RasterSource.