Generates the dataset metadata behind the dataset browser of
zephyr-frontend and the dataset
pages of the C2SM landing page. For every
dataset in src/datasets.yaml, scheduled GitHub
Actions workflows scan the data on the IAC servers and publish JSON files at
https://data.iac.ethz.ch/zephyr/file_index/.
Documentation: adding a dataset, testing changes, workflow details and setup are described in the Zephyr documentation.
flowchart LR
Y[src/datasets.yaml] --> FI[file_index.yml<br/>file_tree.py]
Y --> FS[file_size_number.yml<br/>file_size_number.py]
J[src/datasets.json] --> PD[publish_datasets.yml]
FI -->|file_tree_*.json| IDX[(File index on<br/>data.iac.ethz.ch)]
FS -->|meta_*.json| IDX
PD -->|datasets.json| IDX
IDX --> FE[zephyr-frontend]
IDX --> LP[c2sm.github.io]
The workflows in .github/workflows/ connect to the
IAC servers over ssh, run the scripts in src/ there and copy the
results to the file index.
| Workflow | Trigger |
|---|---|
file_index.yml |
Daily at 02:00 UTC, push to main, manual |
file_size_number.yml |
Daily at 03:00 UTC, push to main, manual |
publish_datasets.yml |
Push to main that changes datasets.json, manual |
dry_run.yml |
Pull requests that change src/ |
checks.yml |
Pull requests, push to main |
Run a workflow by hand, optionally for a single dataset:
gh workflow run file_index.yml --repo C2SM/iac-metadata -f dataset=cmip7
gh workflow run file_size_number.yml --repo C2SM/iac-metadata -f dataset=cmip7Manual runs write to the production file index, even from a feature branch. To test changes, open a pull request: the dry run scans the affected datasets without publishing anything.
pip install -r src/requirements.txt pytest
pytest
shellcheck --severity=warning src/*.shPull requests need the checks and Dry run status checks to pass.
- C2SM/zephyr: extraction engine and documentation
- C2SM/zephyr-frontend: web interface that reads the published JSON files
- C2SM/zephyr-request: request processing through GitHub issues
- C2SM/c2sm.github.io: landing page that shows the variables, size and number of files of each dataset
MIT, see LICENSE.