earthcode 0.1.8__tar.gz → 0.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {earthcode-0.1.8 → earthcode-0.1.9}/.github/workflows/ci.yml +12 -10
- {earthcode-0.1.8 → earthcode-0.1.9}/.github/workflows/pages.yml +12 -11
- {earthcode-0.1.8 → earthcode-0.1.9}/.github/workflows/publish.yml +9 -10
- earthcode-0.1.9/.gitignore +23 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/PKG-INFO +40 -17
- earthcode-0.1.9/README.md +67 -0
- earthcode-0.1.9/_toc.yml +21 -0
- earthcode-0.1.9/cli/analyse_fairness.ipynb +417 -0
- earthcode-0.1.9/docs/contributing_to_the_osc.md +159 -0
- earthcode-0.1.9/docs/fairtool.md +126 -0
- earthcode-0.1.9/docs/guides/0.Prerequisites-EarthCODE-Workspaces.ipynb +117 -0
- earthcode-0.1.9/docs/guides/0.Prerequisites-local.ipynb +128 -0
- earthcode-0.1.9/docs/guides/1.Project.ipynb +202 -0
- earthcode-0.1.9/docs/guides/2.0.Product.ipynb +251 -0
- earthcode-0.1.9/docs/guides/3.Workflow.ipynb +171 -0
- earthcode-0.1.9/docs/guides/4.Experiment.ipynb +177 -0
- earthcode-0.1.9/docs/guides/5.Templates.ipynb +198 -0
- earthcode-0.1.9/docs/tutorials/cog_file_metadata_creation.ipynb +1103 -0
- earthcode-0.1.9/docs/tutorials/create_osc_entry_from_prr.ipynb +551 -0
- {earthcode-0.1.8/examples → earthcode-0.1.9/docs/tutorials}/earthcode_data_discovery.ipynb +1 -1
- earthcode-0.1.9/docs/tutorials/end_to_end_subglacial_lakes.ipynb +4632 -0
- earthcode-0.1.9/docs/tutorials/parquet_file_metadata.ipynb +3978 -0
- earthcode-0.1.9/docs/tutorials/zarr_file_metadata.ipynb +6113 -0
- earthcode-0.1.9/earthcode/fairtool.py +766 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/experiment_generator.py +10 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/product_generator.py +9 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/stac_generator.py +14 -8
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/template_generator.py +1 -1
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/workflow_generator.py +10 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/git_add.py +1 -1
- earthcode-0.1.9/earthcode/prr.py +87 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/static.py +77 -2
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/validator.py +20 -12
- {earthcode-0.1.8 → earthcode-0.1.9}/pixi.lock +10433 -9813
- {earthcode-0.1.8 → earthcode-0.1.9}/pixi.toml +17 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/pyproject.toml +3 -2
- {earthcode-0.1.8 → earthcode-0.1.9}/tests/test_creation.py +1 -1
- earthcode-0.1.9/tests/test_fairtool.py +282 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/tests/test_notebooks.py +16 -59
- {earthcode-0.1.8 → earthcode-0.1.9}/tests/test_validation.py +3 -3
- earthcode-0.1.8/.gitignore +0 -15
- earthcode-0.1.8/README.md +0 -45
- earthcode-0.1.8/_toc.yml +0 -18
- earthcode-0.1.8/earthcode/fairtool.py +0 -577
- earthcode-0.1.8/earthcode/generators/project_generator.py +0 -52
- earthcode-0.1.8/examples/contribute_via_osc_editor.ipynb +0 -2004
- earthcode-0.1.8/examples/contribute_via_pr_osc.ipynb +0 -2279
- earthcode-0.1.8/guide/0.Prerequisites-EarthCODE-Workspaces.ipynb +0 -109
- earthcode-0.1.8/guide/0.Prerequisites-local.ipynb +0 -105
- earthcode-0.1.8/guide/1.Project.ipynb +0 -184
- earthcode-0.1.8/guide/2.0.Product.ipynb +0 -231
- earthcode-0.1.8/guide/2.1.Product_files_PRR.ipynb +0 -144
- earthcode-0.1.8/guide/2.1.Product_files_self_hosted.ipynb +0 -163
- earthcode-0.1.8/guide/3.Workflow.ipynb +0 -152
- earthcode-0.1.8/guide/4.Experiment.ipynb +0 -166
- earthcode-0.1.8/tests/test_fairtool.py +0 -95
- {earthcode-0.1.8 → earthcode-0.1.9}/.gitattributes +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/LICENSE +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/_config.yml +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/assets/clone-and-branch.gif +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/assets/commitclip.gif +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/assets/create-token.gif +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/assets/pullrequest.gif +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/cli/generate_embeddings.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/__init__.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/__init__.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/templates/experiment.yaml +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/templates/product.yaml +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/templates/project.yaml +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/generators/templates/workflow.yaml +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/gitclerk_add.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/metadata_input_definitions.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/catalog.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/collection.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/contacts.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/eo-missions/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/eo-missions/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/experiments/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/experiments/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/license.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/osc.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/products/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/products/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/projects/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/projects/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/records.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/themes/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/themes/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/themes.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/variables/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/variables/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/workflows/children.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/schemas/workflows/parent.json +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/earthcode/search.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/tests/test_search.py +0 -0
- {earthcode-0.1.8 → earthcode-0.1.9}/tests/test_valid_generators.py +0 -0
|
@@ -25,23 +25,25 @@ jobs:
|
|
|
25
25
|
|
|
26
26
|
steps:
|
|
27
27
|
- name: Checkout earthcode-library
|
|
28
|
-
uses: actions/checkout@
|
|
28
|
+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
29
29
|
with:
|
|
30
30
|
path: earthcode-library
|
|
31
|
+
persist-credentials: false
|
|
31
32
|
|
|
32
33
|
- name: Checkout open-science-catalog-metadata
|
|
33
|
-
uses: actions/checkout@
|
|
34
|
+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
34
35
|
with:
|
|
35
36
|
repository: ESA-EarthCODE/open-science-catalog-metadata
|
|
36
37
|
path: open-science-catalog-metadata
|
|
38
|
+
persist-credentials: false
|
|
37
39
|
|
|
38
|
-
- name:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
- name: Set up Pixi
|
|
41
|
+
uses: prefix-dev/setup-pixi@ad1da6449d9e506fd127fd67ab2d054a769f6a94 # v0.11.2
|
|
42
|
+
with:
|
|
43
|
+
pixi-version: v0.82.1
|
|
44
|
+
working-directory: earthcode-library
|
|
45
|
+
locked: true
|
|
46
|
+
cache: true
|
|
45
47
|
|
|
46
48
|
- name: Run test suite
|
|
47
|
-
run: pixi run -e default pytest
|
|
49
|
+
run: pixi run --locked -e default pytest
|
|
@@ -29,8 +29,6 @@ on:
|
|
|
29
29
|
|
|
30
30
|
permissions:
|
|
31
31
|
contents: read
|
|
32
|
-
pages: write
|
|
33
|
-
id-token: write
|
|
34
32
|
|
|
35
33
|
concurrency:
|
|
36
34
|
group: pages
|
|
@@ -43,19 +41,19 @@ jobs:
|
|
|
43
41
|
|
|
44
42
|
steps:
|
|
45
43
|
- name: Checkout repository
|
|
46
|
-
uses: actions/checkout@
|
|
47
|
-
|
|
48
|
-
- name: Set up Python
|
|
49
|
-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
|
44
|
+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
50
45
|
with:
|
|
51
|
-
|
|
52
|
-
cache: pip
|
|
46
|
+
persist-credentials: false
|
|
53
47
|
|
|
54
|
-
- name:
|
|
55
|
-
|
|
48
|
+
- name: Set up Pixi
|
|
49
|
+
uses: prefix-dev/setup-pixi@ad1da6449d9e506fd127fd67ab2d054a769f6a94 # v0.11.2
|
|
50
|
+
with:
|
|
51
|
+
pixi-version: v0.82.1
|
|
52
|
+
locked: true
|
|
53
|
+
cache: true
|
|
56
54
|
|
|
57
55
|
- name: Build site
|
|
58
|
-
run:
|
|
56
|
+
run: pixi run --locked docs
|
|
59
57
|
|
|
60
58
|
- name: Upload Pages artifact
|
|
61
59
|
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
|
|
@@ -67,6 +65,9 @@ jobs:
|
|
|
67
65
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
68
66
|
needs: build
|
|
69
67
|
runs-on: ubuntu-latest
|
|
68
|
+
permissions:
|
|
69
|
+
pages: write
|
|
70
|
+
id-token: write
|
|
70
71
|
environment:
|
|
71
72
|
name: github-pages
|
|
72
73
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
@@ -20,23 +20,22 @@ jobs:
|
|
|
20
20
|
|
|
21
21
|
steps:
|
|
22
22
|
- name: Checkout repository
|
|
23
|
-
uses: actions/checkout@
|
|
23
|
+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
24
24
|
with:
|
|
25
25
|
persist-credentials: false
|
|
26
26
|
|
|
27
|
-
- name: Set up
|
|
28
|
-
uses:
|
|
27
|
+
- name: Set up Pixi
|
|
28
|
+
uses: prefix-dev/setup-pixi@ad1da6449d9e506fd127fd67ab2d054a769f6a94 # v0.11.2
|
|
29
29
|
with:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
run: python -m pip install --upgrade build twine
|
|
30
|
+
pixi-version: v0.82.1
|
|
31
|
+
locked: true
|
|
32
|
+
cache: true
|
|
34
33
|
|
|
35
34
|
- name: Build distribution artifacts
|
|
36
|
-
run: python -m build
|
|
35
|
+
run: pixi run --locked python -m build --no-isolation
|
|
37
36
|
|
|
38
37
|
- name: Check distribution metadata
|
|
39
|
-
run: python -m twine check dist/*
|
|
38
|
+
run: pixi run --locked python -m twine check dist/*
|
|
40
39
|
|
|
41
40
|
- name: Upload distribution artifacts
|
|
42
41
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
|
|
@@ -65,4 +64,4 @@ jobs:
|
|
|
65
64
|
path: dist/
|
|
66
65
|
|
|
67
66
|
- name: Publish to PyPI
|
|
68
|
-
uses: pypa/gh-action-pypi-publish@
|
|
67
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
# pixi environments
|
|
3
|
+
.pixi
|
|
4
|
+
.idea
|
|
5
|
+
*.egg-info
|
|
6
|
+
*__pycache__*
|
|
7
|
+
*.json
|
|
8
|
+
test*.ipynb
|
|
9
|
+
open-science-catalog-metadata
|
|
10
|
+
htmlcov/
|
|
11
|
+
*.coverage
|
|
12
|
+
_build/
|
|
13
|
+
dist/
|
|
14
|
+
dev.ipynb
|
|
15
|
+
earthcode/models
|
|
16
|
+
guide/project.yaml
|
|
17
|
+
guide/.ipynb_checkpoints/
|
|
18
|
+
guide/product.yaml
|
|
19
|
+
earthcode/generators/project_generator.py
|
|
20
|
+
guide/workflow.yaml
|
|
21
|
+
guide/experiment.yaml
|
|
22
|
+
docs/examples/downloaded_data/
|
|
23
|
+
*.ipynb_checkpoints/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: earthcode
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Tools for creating, validating, and searching EarthCODE Open Science Catalog metadata.
|
|
5
5
|
Project-URL: Homepage, https://github.com/ESA-EarthCODE/earthcode-library
|
|
6
6
|
Project-URL: Repository, https://github.com/ESA-EarthCODE/earthcode-library
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering
|
|
19
19
|
Requires-Python: >=3.12
|
|
20
20
|
Requires-Dist: bottleneck<2,>=1.6.0
|
|
21
|
+
Requires-Dist: certifi>=2026.10.19
|
|
21
22
|
Requires-Dist: dask<2026,>=2025.12.0
|
|
22
23
|
Requires-Dist: fsspec<2026,>=2025.10.0
|
|
23
24
|
Requires-Dist: geopandas<2,>=1.1.2
|
|
@@ -49,32 +50,55 @@ Requires-Dist: pytest<10,>=9.0.2; extra == 'dev'
|
|
|
49
50
|
Description-Content-Type: text/markdown
|
|
50
51
|
|
|
51
52
|
# Introduction
|
|
52
|
-
|
|
53
|
+
The EarthCODE Library is a Python package developed to support the creation, validation, and search of Open Science Catalog metadata within the EarthCODE publishing workflow. It provides a shared implementation layer for catalog-related operations, reducing the need for project teams and platforms to maintain separate, ad hoc approaches for generating and checking metadata. This repository includes the core package, a command-line interface, usage examples, publication guides, and a test suite,
|
|
53
54
|
This repository provides Python tools for creating, validating, and searching EarthCODE [Open Science Catalog metadata](https://opensciencedata.esa.int/).
|
|
54
55
|
|
|
56
|
+
Documentation on usage and guides is maintained at: https://esa-earthcode.github.io/earthcode-library/README.html
|
|
55
57
|
|
|
56
|
-
## Installation
|
|
58
|
+
## 1. Installation
|
|
57
59
|
```bash
|
|
58
60
|
pip install earthcode
|
|
59
61
|
```
|
|
62
|
+
### Requirements
|
|
63
|
+
The *minimum* required Python version if you would like to install the library locally is 3.12
|
|
64
|
+
|
|
60
65
|
|
|
61
|
-
##
|
|
66
|
+
## 2. Quick start
|
|
67
|
+
```bash
|
|
68
|
+
# 1. Import the library
|
|
69
|
+
import earthcode
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Alternatively, start with `guide/0.Prerequisites-EarthCODE-Workspaces.ipynb` if you are using the EarthCODE workspace.
|
|
71
|
+
# 2. Search through the catalog
|
|
72
|
+
from earthcode.search import search
|
|
66
73
|
|
|
74
|
+
# 3. Search through semantix text
|
|
75
|
+
# Here we take as an example the search done by semantix text and search the catalog via the collection.id which is known
|
|
76
|
+
search(collection_ids="seasfire-cube")[0]
|
|
77
|
+
|
|
78
|
+
# 4. Filter the products in the catalog
|
|
79
|
+
search("global chlorophyll dataset", variable=chlorophyll.id, type="products", mission="sentinel-3")
|
|
80
|
+
```
|
|
67
81
|
|
|
68
|
-
##
|
|
69
|
-
|
|
82
|
+
## 3. How to contribute to Open Science Catalogue?
|
|
83
|
+
With `earthcode` library creating new entries in the catalogue is semi-automatic. Please find step by step instructions in the `docs/` folder.
|
|
84
|
+
Start by going through the `docs/contributing_to_the_osc` document.
|
|
85
|
+
|
|
86
|
+
## 4. Search through Open Science Catalogue
|
|
87
|
+
In the `examples/` folder you can find notebooks that show:
|
|
70
88
|
- How to use the library to semantically search the Open Science Catalog - `examples/earthcode_data_discovery.ipynb`
|
|
71
|
-
- (Experimental) How to combine the library and the OSC editor - `examples/contribute_via_osc_editor.ipynb`
|
|
72
|
-
- How to validate a local copy of the catalog and open a PR - `examples/contribute_via_pr_osc.ipynb`
|
|
73
89
|
|
|
90
|
+
# Looking for support?
|
|
91
|
+
We are ready to assist you in case you have any questions/found a bug or mistake, please use GitHub Issues to open a ticket!
|
|
92
|
+
Alternatively contact the team via e-mail: earthcode@esa.int
|
|
93
|
+
|
|
94
|
+
If you would like to request a specific feature, or any question to the community of Earthcode and library developers, please use the [EarthCODE discourse Technical Support channel](https://discourse-earthcode.eox.at/c/technical-support/8)
|
|
74
95
|
|
|
75
|
-
|
|
96
|
+
## Development
|
|
76
97
|
|
|
77
|
-
|
|
98
|
+
If you want to contribute a feature to the library you are welcome to contribute via pull request.
|
|
99
|
+
First, fork this repository; then make your suggested change and open a PR against this repo. Make sure to add tests for any new functionality.
|
|
100
|
+
|
|
101
|
+
### Local install
|
|
78
102
|
1. `git clone https://github.com/ESA-EarthCODE/earthcode-library.git`
|
|
79
103
|
2. Install pixi - https://pixi.sh/dev/installation/
|
|
80
104
|
3. `cd earthcode-library`
|
|
@@ -83,9 +107,8 @@ In the examples folder you can find notebooks that show:
|
|
|
83
107
|
|
|
84
108
|
You can run tests through `pixi run pytest`. If running on Windows use ` pixi run pytest --basetemp=C:\t` to avoid long path errors, since some of the project names are >260 chars.
|
|
85
109
|
|
|
86
|
-
## To
|
|
87
|
-
|
|
88
|
-
edit pyproject.toml to 1.1.4 and run
|
|
110
|
+
## To publish a realease
|
|
111
|
+
Edit pyproject.toml to 1.1.4 and run
|
|
89
112
|
|
|
90
113
|
- `pixi lock`
|
|
91
114
|
- `git add pyproject.toml pixi.toml pixi.lock`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Introduction
|
|
2
|
+
The EarthCODE Library is a Python package developed to support the creation, validation, and search of Open Science Catalog metadata within the EarthCODE publishing workflow. It provides a shared implementation layer for catalog-related operations, reducing the need for project teams and platforms to maintain separate, ad hoc approaches for generating and checking metadata. This repository includes the core package, a command-line interface, usage examples, publication guides, and a test suite,
|
|
3
|
+
This repository provides Python tools for creating, validating, and searching EarthCODE [Open Science Catalog metadata](https://opensciencedata.esa.int/).
|
|
4
|
+
|
|
5
|
+
Documentation on usage and guides is maintained at: https://esa-earthcode.github.io/earthcode-library/README.html
|
|
6
|
+
|
|
7
|
+
## 1. Installation
|
|
8
|
+
```bash
|
|
9
|
+
pip install earthcode
|
|
10
|
+
```
|
|
11
|
+
### Requirements
|
|
12
|
+
The *minimum* required Python version if you would like to install the library locally is 3.12
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 2. Quick start
|
|
16
|
+
```bash
|
|
17
|
+
# 1. Import the library
|
|
18
|
+
import earthcode
|
|
19
|
+
|
|
20
|
+
# 2. Search through the catalog
|
|
21
|
+
from earthcode.search import search
|
|
22
|
+
|
|
23
|
+
# 3. Search through semantix text
|
|
24
|
+
# Here we take as an example the search done by semantix text and search the catalog via the collection.id which is known
|
|
25
|
+
search(collection_ids="seasfire-cube")[0]
|
|
26
|
+
|
|
27
|
+
# 4. Filter the products in the catalog
|
|
28
|
+
search("global chlorophyll dataset", variable=chlorophyll.id, type="products", mission="sentinel-3")
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 3. How to contribute to Open Science Catalogue?
|
|
32
|
+
With `earthcode` library creating new entries in the catalogue is semi-automatic. Please find step by step instructions in the `docs/` folder.
|
|
33
|
+
Start by going through the `docs/contributing_to_the_osc` document.
|
|
34
|
+
|
|
35
|
+
## 4. Search through Open Science Catalogue
|
|
36
|
+
In the `examples/` folder you can find notebooks that show:
|
|
37
|
+
- How to use the library to semantically search the Open Science Catalog - `examples/earthcode_data_discovery.ipynb`
|
|
38
|
+
|
|
39
|
+
# Looking for support?
|
|
40
|
+
We are ready to assist you in case you have any questions/found a bug or mistake, please use GitHub Issues to open a ticket!
|
|
41
|
+
Alternatively contact the team via e-mail: earthcode@esa.int
|
|
42
|
+
|
|
43
|
+
If you would like to request a specific feature, or any question to the community of Earthcode and library developers, please use the [EarthCODE discourse Technical Support channel](https://discourse-earthcode.eox.at/c/technical-support/8)
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
If you want to contribute a feature to the library you are welcome to contribute via pull request.
|
|
48
|
+
First, fork this repository; then make your suggested change and open a PR against this repo. Make sure to add tests for any new functionality.
|
|
49
|
+
|
|
50
|
+
### Local install
|
|
51
|
+
1. `git clone https://github.com/ESA-EarthCODE/earthcode-library.git`
|
|
52
|
+
2. Install pixi - https://pixi.sh/dev/installation/
|
|
53
|
+
3. `cd earthcode-library`
|
|
54
|
+
4. `pixi install`
|
|
55
|
+
5. `pixi run jupyter lab`
|
|
56
|
+
|
|
57
|
+
You can run tests through `pixi run pytest`. If running on Windows use ` pixi run pytest --basetemp=C:\t` to avoid long path errors, since some of the project names are >260 chars.
|
|
58
|
+
|
|
59
|
+
## To publish a realease
|
|
60
|
+
Edit pyproject.toml to 1.1.4 and run
|
|
61
|
+
|
|
62
|
+
- `pixi lock`
|
|
63
|
+
- `git add pyproject.toml pixi.toml pixi.lock`
|
|
64
|
+
- `git commit -m "Release v1.1.4"`
|
|
65
|
+
- `git push origin main`
|
|
66
|
+
- `git tag -a v1.1.4 -m "Release v1.1.4"`
|
|
67
|
+
- `git push origin v1.1.4`
|
earthcode-0.1.9/_toc.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
format: jb-book
|
|
2
|
+
root: docs/contributing_to_the_osc.md
|
|
3
|
+
parts:
|
|
4
|
+
- caption: Tutorials
|
|
5
|
+
chapters:
|
|
6
|
+
- file: docs/tutorials/earthcode_data_discovery
|
|
7
|
+
- file: docs/tutorials/end_to_end_subglacial_lakes
|
|
8
|
+
- file: docs/tutorials/create_osc_entry_from_prr
|
|
9
|
+
- file: docs/tutorials/cog_file_metadata_creation
|
|
10
|
+
- file: docs/tutorials/zarr_file_metadata
|
|
11
|
+
- file: docs/tutorials/parquet_file_metadata
|
|
12
|
+
- caption: Guides
|
|
13
|
+
chapters:
|
|
14
|
+
- file: docs/guides/0.Prerequisites-EarthCODE-Workspaces
|
|
15
|
+
- file: docs/guides/0.Prerequisites-local
|
|
16
|
+
- file: docs/guides/1.Project
|
|
17
|
+
- file: docs/guides/2.0.Product
|
|
18
|
+
- file: docs/guides/3.Workflow
|
|
19
|
+
- file: docs/guides/4.Experiment
|
|
20
|
+
- file: docs/guides/5.Templates
|
|
21
|
+
- file: docs/fairtool
|