Skip to content

Technical Documentation / Working with Data / Publishing Science Results - STEP 2 #45

@edobrowolska

Description

@edobrowolska

#Step 2: Creating and uploading a STAC Item Catalog
Description

  • I would add also this as a second sentence to introduction: The STAC items should be created for all assets in your dataset (single files), gathered in dedicated STAC Catalogs to become available to EarthCODE users.

  • The hierarchy is structured as follows: ( I would update it to following):

  1. STAC Catalog: A top-level container with a title and a description, grouping related data files (behaves like a folder in file management system)
    In a STAC Catalog you can gather different STAC components. Usually it serves to create smaller folders (as directories) to organize STAC Items in a logical way. You can also add extra information to describe the items better, similar to how the STAC Collection does.
    Should we add also sentence like this? : "There are no limitations on the number of items that can be grouped within a STAC Catalog. However, the performance of the STAC Browser may be affected by the size and quantity of the items, potentially resulting in slower display times"
  2. STAC Item: One item represents a single data file (e.g. one GeoTiff). In STAC it is represented in a form of GeoJSON feature with additional metadata requested such as geospatial extent, temporal range, projection etc. Each item is provided with direct link to actual data files (its remote location) in form of associated Assets. One item can have mutliple Assets which can also describe different bands or file types.
  3. STAC Collection: Collection is created to include additional metadata about the Items that are part of specific STAC Catalogs. Open Science Catalogue repository stores collections to describe the products accessible throuh STAC Catalogs. In Open Science Catalogue STAC Collections are created in Step 3.
  • Remove explanation of Assets

  • Add a "STAC in a nutshell" o explain different STAC comonent by linking to the documentation: https://stacspec.org/en/tutorials/intro-to-stac/

  • Example file (in code format) should include more description related to actual Open Science Catalog entries.
    Below you can find an example of the hierarchy of STAC Catalog described above:

Example STAC Catalog structure

my-items-catalog
├── catalog.json
└── item_1
└── item_1.json
└── item_2
└── item_2.json

An example of the basic STAC catalog.json file is provided below:
{
"type": "Catalog",
"id": "my-items-catalog-id",
"stac_version": "1.1.0",
"description": "Provide here a meaningful description of the dataset",
"links": [
{
"rel": "root",
"href": "./catalog.json",
"type": "application/json",
"title": "Title of the Dataset"
},
{
"rel": "item",
"href": "./item_1/item_1.json", #relative link to the item.json describing single file in the dataset
"type": "application/geo+json"
},
{
"rel": "item",
"href": "./item_2/item_2.json",
"type": "application/geo+json"
},
],
"title": "Title of the Dataset"
}

An example of the basic STAC item.json file (describing single file in the dataset):
{
"type": "Feature",
"stac_version": "1.1.0",
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
],
"id": "item_1",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-50.17968937855544,
66.77834561360399
],
[
-47.9894188361956,
66.83503196763441
],
[
-48.056356656894216,
67.37093506267574
],
[
-50.295235368856346,
67.31275872920898
],
[
-50.17968937855544,
66.77834561360399
]
]
]
},
"bbox": [
-50.295235368856346,
66.77834561360399,
-47.9894188361956,
67.37093506267574
],
"properties": {
"datetime": "2025-03-18T09:47:57.377671Z"
},
"links": [
{
"rel": "root",
"href": "../catalog.json",
"type": "application/json",
"title": "Title of the Dataset"
},
{
"rel": "parent",
"href": "../catalog.json",
"type": "application/json",
"title": "Title of the Dataset"
}
],
"assets": {
"data": {
"href": "https://EarthCODE/OSCAcssets/PROJECT/PRODUCT/item_1.tif",
"type": "image/tiff; application=geotiff",
"eo:bands": [
{
"name": "b1",
"description": "gray"
}
],
"roles": []
}
}
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions