Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a STAC Catalog #236

Open
StefanBrand opened this issue Oct 7, 2022 · 0 comments · May be fixed by #243
Open

Provide a STAC Catalog #236

StefanBrand opened this issue Oct 7, 2022 · 0 comments · May be fixed by #243

Comments

@StefanBrand
Copy link
Member

I've found the index of STAC collections here: https://collections.eurodatacube.com/stac/index.json Unfortunately it is not a valid STAC catalog and can therefore not be browsed with tools like STAC Browser.

A valid STAC catalog can be created with minimal effort, e.g.:

{
    "type": "Catalog",
    "stac_version": "1.0.0",
    "id": "eurodatacube-collections-catalog",
    "description": "A STAC catalog that contains all collections available on EuroDataCube.",
    "links": [
        {
            "href": "https://collections.eurodatacube.com/stac/index.json",
            "rel": "self"
        },
        {
            "href": "https://collections.eurodatacube.com/stac/index.json",
            "rel": "root"
        },
        {
            "id": "SENTINEL2_L2A_MOSAIC_120",
            "href": "https://collections.eurodatacube.com/stac/sentinel-s2-l2a-mosaic-120.json",
            "rel": "child"
        },
        ...
    ]
}

I think the relevant change would have to be made to this file:

[
{{#each datasets}}
{"id": "{{OpenEOPID}}", "link": "{{rootUrl}}stac/{{Slug}}.json"}{{#unless @last}},{{/unless}}
{{/each}}
]

Something along the lines of:

{
  "type": "Catalog",
  "stac_version": "1.0.0",
  "id": "eurodatacube-collections-catalog",
  "description": "A STAC catalog that contains all collections available on EuroDataCube.",
  "links": [
    {
      "href": "{{rootUrl}}stac/index.json",
      "rel": "self"
    },
    {
      "href": "{{rootUrl}}stac/index.json",
      "rel": "root"
    },
    {{#each datasets}}
      {"id": "{{OpenEOPID}}", "rel": "child", "href": "{{rootUrl}}stac/{{Slug}}.json"}{{#unless @last}},{{/unless}}
    {{/each}}
  ]
}
@dthiex dthiex linked a pull request Nov 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant