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 (bool) – True – attempt adding lineage if it’s missing, False don’t
Return type:

Dataset