Dataset Writing

When connected to an ODC Database, these methods are available for adding, updating and archiving datasets:

dc = Datacube()

add(dataset[, with_lineage])

Add dataset to the index.

add_location(id_, uri)

Add a location to the dataset if it doesn’t already exist.


Mark datasets as archived

archive_location(id_, uri)

Archive a location of the dataset if it exists.

remove_location(id_, uri)

Remove a location from the dataset if it exists.


Mark datasets as not archived

restore_location(id_, uri)

Un-archive a location of the dataset if it exists.

update(dataset[, updates_allowed])

Update dataset metadata and location :param Dataset dataset: Dataset to update :param updates_allowed: Allowed updates :rtype: Dataset