ODC installation, Indexing and Ingestion complete for LANDSAT-8 SR products. Now trying to execute notebooks for Cloud statistics computation using data_cube_notebooks Responses of Notebook Cells included below:

#Get available products
products_info = dc.list_products()


name description license
LS8_Ingested     Landsat 8 USGS Collection 1 Higher Level SR sc...    None
ls8_l2_c1_scene  Landsat 8 USGS Collection 1 Higher Level SR sc...    None 

name default_crs default_resolution                                                   
LS8_Ingested           None               None  
ls8_l2_c1_scene        None               None

Product definition is loaded from verified already available yaml files. Glimpse attached:

name: ls8_l2_c1_scene
description: Landsat 8 USGS Collection 1 Higher Level SR scene proessed using LaSRC. 30m UTM based projection.
metadata_type: eo

        code: LANDSAT_8
        name: OLI_TIRS
    product_type: LaSRC
        name: GeoTiff

Trying to list products:

# List LANDSAT 8 products
print("LANDSAT 8 Products:")
products_info[["platform", "name"]][products_info.platform == "LANDSAT_8"]

KeyError: "['platform'] not in index"

  1. Output of 'dc.list_products()' is dataframe with index(['name', 'description', 'license', 'default_crs', 'default_resolution'], dtype='object'). Surely there is no platform in index. How to add it then in index?

1 Answer 1


Those notebooks are quite out of date. You can use it as an example, and adapt to your needs.

If you have an up to date version of Datacube, doing this will print a nice list of products and their respective information:

import datacube
dc = datacube.Datacube()


Another minor concern I have is that you're using Collection 1 data with EO metadata. Collection 2 has been out for a while, and EO3 metadata types are more common. What you're doing will work, though.

enter image description here

  • So platform no more in INDEX? and Why default_crs and resolution are None in my case. Will changing metadata_type to eo3 will solve it as well.
    – u tyagi
    Commented Dec 7, 2021 at 15:51
  • Platform is no longer a field in this summary table. The default_crs can be set in the product definition, but should only be set if the datasets all have a consistent CRS.
    – Alex Leith
    Commented Dec 8, 2021 at 22:05
  • Any links to eo3 dataset metadata(yaml) and their preparation scripts.? (preferably for LS8 SR).
    – u tyagi
    Commented Dec 9, 2021 at 5:36
  • Can you ask a new question perhaps. Try to be clear and specific.
    – Alex Leith
    Commented Dec 10, 2021 at 6:08

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.