datacube.index._datasets.DatasetResource.add

DatasetResource.add(dataset, with_lineage=None, **kwargs)[source]

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

Parameters
  • dataset (Dataset) – dataset to add

  • with_lineage (Optional[bool]) –

    True|None – attempt adding lineage datasets if missing False – record lineage relations, but do not attempt adding

    lineage datasets to the db

  • kwargs – only used to support deprecated behaviour

Return type

Dataset