Scene#
- class Scene[source]#
Bases:
object
The raster data and labels associated with an area of interest.
Attributes
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] = None)[source]#
Construct a new Scene.
- Parameters
id (str) – ID for this scene
raster_source (RasterSource) – RasterSource for this scene
ground_truth_label_store – optional LabelSource
label_store (Optional[LabelStore]) – optional LabelStore
aoi – Optional list of AOI polygons in pixel coordinates
label_source (Optional[LabelSource]) –
Methods
__init__
(id, raster_source[, label_source, ...])Construct a new Scene.
- __init__(id: str, raster_source: RasterSource, label_source: Optional[LabelSource] = None, label_store: Optional[LabelStore] = None, aoi_polygons: Optional[list] = None)[source]#
Construct a new Scene.
- Parameters
id (str) – ID for this scene
raster_source (RasterSource) – RasterSource for this scene
ground_truth_label_store – optional LabelSource
label_store (Optional[LabelStore]) – optional LabelStore
aoi – Optional list of AOI polygons in pixel coordinates
label_source (Optional[LabelSource]) –
- property extent: Box#
Extent of the associated
RasterSource
.