opendatacube / eo-datasets

Easily write, validate and convert EO datasets and metadata.
Apache License 2.0
50 stars 26 forks source link

Indexing multilayer HDF files #221

Open giorgiobasile opened 3 years ago

giorgiobasile commented 3 years ago

I'm trying to index some MODIS HDF files, my understanding looking at some examples (i.e. this one) is that I should produce datasets documents having something like:


measurements:
  lc_type_1: 
    path: file.hdf
    layer: LC-Type1 # name of the HDF layer
  lc_type_2:
    path: file.hdf # same file as above
    layer: LC-Type2

Unfortunately, I don't understand how to achieve this with eo-datasets, as the note_measurement and write_measurement APIs do not allow to specify anything like a layer. Is there any solution for this?

giorgiobasile commented 2 years ago

I have found a related discussion on GIS StackExchange, support has been added for eodatasets>=0.23, although I noticed only the write_measurement method supports multi-band images, but not the note_measurement one.