Skip to content

Commit 091f84f

Browse files
committed
STAC to English
1 parent b8a4be5 commit 091f84f

File tree

3 files changed

+56
-47
lines changed

3 files changed

+56
-47
lines changed
-310 KB
Binary file not shown.

docs/related/collgs/sentinel.md

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ The same functions of this panel are also available in the context menu, which c
6868

6969
The search results are displayed below the search bar.
7070

71-
![copsi_product_detail.png](copsi_product_detail.png)
72-
7371
Each product in the list is displayed in a frame, with the product name shown at the top in the header.
7472

7573
On the left side of the frame, you will find the main information about the product, such as the platform name, capture date, and file size.

docs/related/collgs/stac.md

+56-45
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
# STAC katalog
2-
Tato dokumentace popisuje STAC katalog (SpatioTemporal Asset Catalog) vytvořený pro organizaci a správu metadat produktů
3-
dálkového průzkumu Země. Katalog zahrnuje data z programů [Sentinel](./sentinel.md), [Landsat](./landsat.md) a [ERA5](./era5.md),
4-
která jsou rozřazena do kolekcí.
5-
Relevantní popisy použití STAC katalogu naleznete také na stránkách těchto programů v této dokumentaci.
6-
Katalog je přístupný na adrese [https://stac.cesnet.cz/](https://stac.cesnet.cz/).
1+
# STAC Catalog
72

8-
## Struktura katalogu
9-
Podrobná specifikace STAC katalogu je dostupná v angličtině na [https://stacspec.org/en/about/stac-spec/](https://stacspec.org/en/about/stac-spec/).
3+
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](./sentinel.md), [Landsat](./landsat.md), and [ERA5](./era5.md) programs, which are categorized into collections.
104

11-
**Katalog** - STAC katalog je způsob, jak uspořádat a propojit data, aby se dala snadno procházet a vyhledávat.
12-
Funguje jako seznam, který obsahuje data a odkazy na další (pod)katalogy.
5+
Relevant usage descriptions of the STAC catalog can also be found on the pages of these programs in this documentation.
136

14-
**Kolekce** - STAC kolekce poskytuje dodatečné informace o souboru dat (např. část dat Sentinelu 1 - kolekce sentinel-1-slc).
15-
Rozšiřuje funkčnost katalogu přidáním dalších polí, která umožňují popis prostorového a časového rozsahu dat,
16-
licence, klíčových slov, poskytovatelů, apod. Seznam kolekcí je přístupný na endpointu [/collections](https://stac.vm.cesnet.cz/collections).
7+
The catalog is accessible at [https://stac.cesnet.cz/](https://stac.cesnet.cz/).
178

18-
**Item** - STAC item je ucelený záznam obsahující data a metadata, jehož specifikace může obsahovat časovou značku, náhledový obrázek,
19-
odkazy k datům, odkazy k relevantním itemům a asset linky.
9+
## STAC Catalog Structure
2010

21-
**Asset** - soubor přidružený ke konkrétnímu itemu. Asset je možné stáhnout, např.
22-
náhledový obrázek, GeoTIFF nebo NetCDF soubor. Součástí metadat assetu jsou informace jako název, popis, typ a odkaz na soubor (_href_).
11+
A detailed specification of the STAC catalog is available at [STAC Specification](https://stacspec.org/en/about/stac-spec/).
12+
13+
### **Catalog**
14+
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.
15+
16+
### **Collection**
17+
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](https://stac.vm.cesnet.cz/collections).
18+
19+
### **Item**
20+
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.
21+
22+
### **Asset**
23+
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_`).
2324

2425
## API
25-
Pro volání API použijte identickou adresu [https://stac.cesnet.cz/](https://stac.cesnet.cz/).
26-
Podrobná dokumentace metod je k dispozici v angličtině zde: [https://stac.cesnet.cz/api.html](https://stac.cesnet.cz/api.html).
27-
Pro prohledávání není potřeba autentizace.
2826

29-
K vyhledání produktů slouží endpoint [/search](https://stac.cesnet.cz/search).
30-
Na tento endpoint v těle requestu zasíláte JSON obsahující ohraničující body (_bbox_) a časové rozmezí.
27+
To call the API, use the identical address [https://stac.cesnet.cz/](https://stac.cesnet.cz/).
28+
29+
A detailed documentation of the methods is available in the [API Documentation](https://stac.cesnet.cz/api.html).
30+
31+
Authentication is not required for searching.
32+
33+
To search for products, use the endpoint [/search](https://stac.cesnet.cz/search). In the body of the request, you send a JSON containing bounding box (_bbox_) and time range.
34+
3135

3236
```
3337
{
@@ -36,7 +40,7 @@ Na tento endpoint v těle requestu zasíláte JSON obsahující ohraničující
3640
}
3741
```
3842

39-
Odpověď získáte v následujícím formátu:
43+
The response will be returned in the following format:
4044

4145
```
4246
{
@@ -54,59 +58,60 @@ Odpověď získáte v následujícím formátu:
5458
]
5559
}
5660
```
57-
kde **features** obsahuje itemy splňující vyhledávací parametry, **numberMatched** obsahuje celkový počet itemů splňujících
58-
vyhledávací parametry, **numberReturned** počet aktuálně vrácených itemů a **href** zanořený v **links** je URL odkazující na další
59-
stránku výsledků tohoto vyhledávání.
6061

62+
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.
63+
64+
## Browser
65+
A product browser is also available through the graphical interface: [https://stac.cesnet.cz/browser/](https://stac.cesnet.cz/browser/).
6166

62-
## Prohlížeč
63-
Rovněž je k dispozici prohlížeč produktů v grafickém rozhraní: [https://stac.cesnet.cz/browser/](https://stac.cesnet.cz/browser/).
6467
![stac_browser.png](stac_browser.png)
65-
I zde jsou data rozřazena do kolekcí a je možné stáhnout jednotlivé assety.
6668

67-
## PySTAC a další knihovny Pythonu pro práci s geoprostorovými daty
68-
Python poskytuje knihovnu [PySTAC](https://pystac.readthedocs.io/en/stable/), která umožňuje práci se STAC katalogem.
69-
Při jejím použití je nutné použít API adresu [https://stac.vm.cesnet.cz/](https://stac.vm.cesnet.cz/).
69+
Data is also organized into collections here, and individual assets can be downloaded.
70+
71+
## Python Libraries for Geospatial Data
72+
73+
Python provides the [PySTAC](https://pystac.readthedocs.io/en/stable/) library, which allows working with the STAC catalog.
74+
75+
When using it, you need to use the API address [https://stac.vm.cesnet.cz/](https://stac.vm.cesnet.cz/).
7076

7177
```python
7278
from pystac_client import Client
7379
api_url = "https://stac.vm.cesnet.cz/"
7480
client = Client.open(api_url)
7581
```
7682

77-
Příklad práce s kolekcí
83+
Below is an example of how to work with a collection using the STAC API.
84+
7885
```python
7986
collections = client.get_collections()
8087
s1_collection = client.get_collection("sentinel-1-grd")
8188
print(s1_collection.description)
8289
```
8390

84-
Knihovna [Leafmap](https://leafmap.org/) slouží v prostředí Jupyter notebooků pro geoprostorovou analýzu
85-
a umožňuje získání souřadnic, které dále využijeme po práci s knihovnou PySTAC. Pokud již známe souřadnice,
86-
využijeme filtr `intersects` (protínání bodu), nebo `bbox` (ohraničená oblast). Následující příklady jsou
87-
inspirovány [existujícím návodem v angličtině](https://carpentries-incubator.github.io/geospatial-python/instructor/05-access-data.html#search-a-stac-catalog).
91+
The [Leafmap](https://leafmap.org/) 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](http://bboxfinder.com).
92+
93+
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 in English](https://carpentries-incubator.github.io/geospatial-python/instructor/05-access-data.html#search-a-stac-catalog).
8894

8995
```python
9096
from shapely.geometry import Point
91-
point = Point(16.6068, 49.1951) # souřadnice Brna
97+
point = Point(16.6068, 49.1951) # coordinates of Brno
9298
search = client.search(
9399
collections=[s1_collection],
94100
intersects=point,
95-
max_items=10, # omezení na počet výsledků
96-
method="GET" # výchozí metoda vyžaduje autentizaci, je nutné explicitně specifikovat GET
101+
max_items=10, # limit on items of response
102+
method="GET" # the default method requires authentication, so it is necessary to explicitly specify GET
97103
)
98104
print(search.matched())
99105
```
100106

101-
Výsledek zobrazí, kolik itemů odpovídá zadání - příslušnost ke kolekci sentinel-1-grd a protínání Brna.
107+
The result will display how many items match the query - specifically belonging to the sentinel-1-grd collection and intersecting with Brno.
102108

103109
```python
104110
for item in (search.item_collection()):
105111
print(item.properties)
106112
```
107113

108-
Výsledek vyhledávání můžeme dále iterovat a zjistit podrobnosti o každém z 10 vrácených itemů. Výsledná
109-
metadata mají podobný formát:
114+
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:
110115

111116
```json
112117
{
@@ -135,13 +140,15 @@ metadata mají podobný formát:
135140
}
136141
```
137142

138-
Pro přístup k odkazům ke stažení konkrétních snímků musíme přistoupit k assetům, které můžeme vylistovat.
143+
To access the download links for specific images, we need to access the assets, which can be listed.
144+
139145
```python
140146
assets = items[0].assets
141147
print(assets.keys())
142148
```
143149

144-
V nich pak můžeme vybírat odkazy na např. náhledový obrázek, který získáme z daného linku:
150+
In these, we can then select links to, for example, the preview image, which we can obtain from the given link:
151+
145152
```python
146153
import requests
147154
from matplotlib import pyplot as plt
@@ -157,3 +164,7 @@ plt.show()
157164
```
158165

159166
![stac_thumbnail.png](stac_thumbnail.png)
167+
168+
## Tutorial
169+
170+
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](related/notebooks/c-scale-notebooks/1-C-SCALE_Data_Discovery.ipynb).

0 commit comments

Comments
 (0)