STAC Catalog
This documentation describes the STAC catalog (SpatioTemporal Asset Catalog) created for the organization and management of Earth observation product metadata. The catalog includes data from the Sentinel, Landsat, and ERA5 programs, which are categorized into collections.
Relevant usage descriptions of the STAC catalog can also be found on the pages of these programs in this documentation.
The catalog is accessible at https://stac.cesnet.cz/.
STAC Catalog Structure
A detailed specification of the STAC catalog is available at STAC Specification.
Currently, no STAC extensions are explicitly used. However, if you have any suggestions to extend our current implementation, do not hesitate to contact us.
Catalog
A STAC catalog is a way of organizing and linking data so that it can be easily browsed and searched. It functions like a list containing data and links to other (sub)catalogs.
Collection
A STAC collection provides additional information about a set of data (e.g., part of Sentinel 1 data - collection sentinel-1-slc). It extends the functionality of the catalog by adding fields that describe the spatial and temporal extent of the data, licenses, keywords, providers, etc. The list of collections is available at the endpoint /collections.
Item
A STAC item is a self-contained record containing data and metadata. Its specification may include a timestamp, a thumbnail image, data links, links to relevant items, and asset links.
Asset
An asset is a file associated with a specific item. An asset can be downloaded, e.g., a thumbnail image, GeoTIFF, or NetCDF file. The metadata of an asset includes information such as name, description, type, and the link to the file (_href_
).
API
To call the API, use the identical address https://stac.cesnet.cz/.
A detailed documentation of the methods is available in the API Documentation.
Authentication is not required for searching.
To search for products, use the endpoint /search. In the body of the request, you send a JSON containing bounding box (bbox) and time range.
The response will be returned in the following format:
where features contains the items matching the search parameters, numberMatched contains the total number of items matching the search parameters, numberReturned is the number of items currently returned, and href nested within links is the URL pointing to the next page of search results.
Browser
A product browser is also available through the graphical interface: https://stac.cesnet.cz/browser/.
Data is also organized into collections here, and individual assets can be downloaded.
Python Libraries for Geospatial Data
Python provides the PySTAC library, which allows working with the STAC catalog.
When using it, you need to use the API address https://stac.vm.cesnet.cz/.
Below is an example of how to work with a collection using the STAC API.
The Leafmap library is used in Jupyter notebooks for geospatial analysis. It allows you to retrieve coordinates, which can then be utilized when working with the PySTAC library. Another option is to use some online tool such as a bbox finder.
If you already know the coordinates, you can use the intersects
filter (for point intersection) or the bbox
filter (for bounding box). The following examples are inspired by the existing tutorial.
The result will display how many items match the query - specifically belonging to the sentinel-1-grd collection and intersecting with Brno.
The search results can be iterated further to retrieve details about each of the 10 returned items. The resulting metadata will have a similar format:
To access the download links for specific images, we need to access the assets, which can be listed.
In these, we can then select links to, for example, the preview image, which we can obtain from the given link:
Tutorial
A more complex tutorial for several use cases was prepared for the CSCALE project. You can follow the tutorial at C-SCALE Data Discovery Notebook.
Last updated on