opendatacube / datacube-core

Open Data Cube analyses continental scale Earth Observation data through time
http://www.opendatacube.org
Apache License 2.0
509 stars 177 forks source link

datacube.utils.documents.UnknownMetadataType: Unknown metadata type: 'eo3' while running the command datacube product add s2_l2a.odc-product.yaml in opendatacube #1503

Closed chiranjivSharma closed 11 months ago

chiranjivSharma commented 11 months ago

Expected behaviour

Actual behaviour

... eg. Incorrect result, python stacktrace, etc. ...

Steps to reproduce the behaviour

... Include code, command line parameters as appropriate ...

Environment information

Note: Stale issues will be automatically closed after a period of six months with no activity. To ensure critical issues are not closed, tag them with the Github pinned tag. If you are a community member and not a maintainer please escalate this issue to maintainers via GIS StackExchange or Slack.

Ariana-B commented 11 months ago

Is the eo3 metadata type in the database? You may need to run datacube metadata add eo3.odc-type.yaml first.

chiranjivSharma commented 11 months ago

could you help in identifying the location of eo3.odc-type.yaml this yaml file? not able to locate the file

SpacemanPaul commented 11 months ago

If you created the ODC database with datacube system init the eo3 metadata type should have already been inserted.

The eo3 metadata type can be found in the datacube-core repo here: https://github.com/opendatacube/datacube-core/blob/develop/datacube/index/default-metadata-types.yaml

Or it can be found via DEA Explorer, e.g. https://explorer-aws.dea.ga.gov.au/metadata-types/eo3.odc-type.yaml

chiranjivSharma commented 11 months ago

Thanks it helped