0

I am trying to write a Python script to index ODC dataset yamls. It looks to me as though the ODC Python API is capable of indexing datasets.

I found this bit of code from ODC - Dataset Writing:

resolver = Doc2Dataset(index)
dataset = resolver(dataset_dictionary, 'file:///tmp/test-dataset.json')
index.dataset.add(dataset)

I am unsure what the resolver inputs are...

1 Answer 1

1

The first argument (dataset_dictionary above) is the read and parsed dataset yaml file as a Python dictionary.

The second is the network/filesystem location of the dataset. This is usually the persistent location of the EO3 yaml file and it is the base URI against which the relative URIs of the various measurements (as provided in the dataset yaml file) are evaluated.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.