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

Output to folder hierarchy #10

Open
datadavev opened this issue May 21, 2024 · 1 comment
Open

Output to folder hierarchy #10

datadavev opened this issue May 21, 2024 · 1 comment
Assignees

Comments

@datadavev
Copy link
Member

STAC collections may themselves contain collections, which is a convenient way to gather exported resources and view with a stac-browser.

Task here is to save an export to a subfolder of a root folder, and provide a stac collection document in the root folder that links to the collection in the export folder. For example:

./data
    stac.json. 
    export-1/
        stac.json
        some-data.json
        some-data_geo.parquet
    export-2/
        stac.json
        some-more-data.json
        some-more-data_geo.parquet

The stac collection document in data/stac.json might have contents something like:

{
    "type": "Collection",
    ...
    "links": [
    {
        "rel":"child",
        "type":"application/json",
        "title":"Some data",
        "href":"export-1/stac.json"
    },
    {
        "rel":"child",
        "type":"application/json",
        "title":"Some more data",
        "href":"export-2/stac.json"
    }
    ]
}

The source of this catalog provides an example of child collections: https://radiantearth.github.io/stac-browser/#/external/raw.githubusercontent.com/eco4cast/neon4cast-ci/main/catalog/catalog.json?.language=en

@dannymandel
Copy link
Member

0987bb6

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

No branches or pull requests

2 participants