I am having trouble indexing GeoTIFF files using the Python API. I have managed to generate a .yml file for my .tif file and would like to now add it to the index. Basically what datacube dataset add XYZ.yml would do.

I was able to find


I then created the dataset:

yml = yaml.safe_load(ymlfile) # ymlfile is the corresponding XYZ.yml

but I can't seem to figure out what the DatasetType should be.

1 Answer 1


A "Dataset Type" is a Product Definition, as documented here.

The simplest way to programmatically get a document indexed is documented here.

A slightly different example is captured in code here.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.