Skip to content

Commit

Permalink
populate uris in eo3 ds with stac url (#152)
Browse files Browse the repository at this point in the history
* populate uris in eo3 ds with stac url

* format file

* correct variable type

* populate uris with self-ref-href

* correct variable type

---------

Co-authored-by: emmaai <[email protected]>
  • Loading branch information
emmaai and emmaai committed Apr 12, 2024
1 parent 407db82 commit 69bdf64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions odc/stac/eo3/_eo3converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,14 @@ def _to_dataset(
"$schema": "https://schemas.opendatacube.org/dataset",
"crs": str(crs),
"grids": grids,
"location": "",
"measurements": measurements,
"properties": dicttoolz.keymap(
lambda k: STAC_TO_EO3_RENAMES.get(k, k), properties
),
"lineage": {},
}

return Dataset(product, prep_eo3(ds_doc), uris=[ds_doc.get("location", "")])
return Dataset(product, prep_eo3(ds_doc), uris=[item.href if item.href else ""])


def _item_to_ds(
Expand Down

0 comments on commit 69bdf64

Please sign in to comment.