datacube.model.Dataset

class datacube.model.Dataset(type_: datacube.model.DatasetType, metadata_doc: dict, local_uri: Optional[str] = None, uris: Optional[List[str]] = None, sources: Optional[Mapping[str, Dataset]] = None, indexed_by: Optional[str] = None, indexed_time: Optional[datetime.datetime] = None, archived_time: Optional[datetime.datetime] = None)[source]

A Dataset. A container of metadata, and refers typically to a multi-band raster on disk.

Most important parts are the metadata_doc and uri.

Parameters:
  • metadata_doc – the document (typically a parsed json/yaml)
  • uris – All active uris for the dataset
__init__(type_: datacube.model.DatasetType, metadata_doc: dict, local_uri: Optional[str] = None, uris: Optional[List[str]] = None, sources: Optional[Mapping[str, Dataset]] = None, indexed_by: Optional[str] = None, indexed_time: Optional[datetime.datetime] = None, archived_time: Optional[datetime.datetime] = None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(type_, metadata_doc, local_uri, …) Initialize self.
metadata_doc_without_lineage() Return metadata document without nested lineage datasets

Attributes

bounds bounding box of the dataset in the native crs
center_time mid-point of time range
crs Return CRS if available
extent valid extent of the dataset or None
format
id UUID of a dataset
is_active Is this dataset active?
is_archived Is this dataset archived?
key_time datetime.datetime
local_path A path to this dataset on the local filesystem (if available).
local_uri The latest local file uri, if any.
managed
measurements
metadata
metadata_type
time
transform
uri_scheme