datacube.index.abstract.AbstractDatasetResource.add#

abstract AbstractDatasetResource.add(dataset, with_lineage=True)[source]#

Add dataset to the index. No-op if it is already present.

Parameters
  • dataset (Dataset) – Unpersisted dataset model

  • with_lineage (bool) –

    • True (default) attempt adding lineage datasets if missing

    • False record lineage relations, but do not attempt adding lineage datasets to the db

Return type

Dataset

Returns

Persisted Dataset model