datacube.model.Dataset

class datacube.model.Dataset(type_, metadata_doc, uris=None, sources=None, indexed_by=None, indexed_time=None, archived_time=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 (Dict[str, Any]) – the document (typically a parsed json/yaml)

  • uris (Optional[List[str]]) – All active uris for the dataset

__init__(type_, metadata_doc, uris=None, sources=None, indexed_by=None, indexed_time=None, archived_time=None)[source]

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

Methods

__init__(type_, metadata_doc[, uris, …])

Initialize self.

metadata_doc_without_lineage()

Return metadata document without nested lineage datasets

Attributes

bounds

Optional[BoundingBox] :returns: 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

str

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

bool

measurements

Dict[str, Any]

metadata

DocReader

metadata_type

MetadataType

time

Optional[Range]

transform

Optional[Affine]

uri_scheme

str