Skip to content

Commit afed7eb

Browse files
committed
update docs
1 parent 9b0e2bd commit afed7eb

2 files changed

Lines changed: 12 additions & 18 deletions

File tree

docs/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ Options:
2828
1. Reads your configs and builds dataset STAC collections plus variable catalogs.
2929
2. Builds workflow and experiment OGC API Records.
3030
3. Forks/clones the target metadata repo (production, staging, or testing), commits generated JSON, and opens a pull request on your behalf.
31+
32+
The pull request description includes a "Generated with deep-code" attribution note.

docs/configuration.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ The sections below document every field in those templates.
1717
```yaml
1818
# Required
1919
dataset_id: your-dataset.zarr
20-
collection_id: your-collection
20+
collection_id: your-collection # no spaces — use hyphens
2121
license_type: CC-BY-4.0
22+
stac_catalog_s3_root: s3://bucket/stac/your-collection/
2223

2324
# Optional
24-
osc_themes: [cryosphere] # must match slugs at opensciencedata.esa.int/themes/catalog
25+
osc_themes: [cryosphere] # must match slugs at opensciencedata.esa.int/themes/catalog — auto-lowercased
2526
osc_region: global
2627
dataset_status: completed # ongoing | completed | planned (default: ongoing)
2728
documentation_link: https://example.com/docs
@@ -31,36 +32,27 @@ access_link: s3://bucket/your-dataset.zarr # defaults to s3://deep-esdl-public
3132
cf_parameter:
3233
- name: sea_surface_temperature
3334
units: kelvin
34-
35-
# Optional: publish a STAC Catalog + Item next to the data on S3.
36-
# When set, a lightweight STAC hierarchy (catalog.json → item.json) is written
37-
# directly to S3 and a "via" link is added to the OSC collection pointing to it.
38-
# S3 write credentials are resolved in order:
39-
# 1. STAC_S3_KEY / STAC_S3_SECRET (STAC-specific, any bucket)
40-
# 2. AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY
41-
# 3. boto3 default chain (IAM role, ~/.aws/credentials)
42-
stac_catalog_s3_root: s3://bucket/stac/your-collection/
4335
```
4436
4537
### Field reference
4638
4739
| Field | Required | Description |
4840
|---|---|---|
4941
| `dataset_id` | Yes | Zarr store identifier (used to open the dataset). |
50-
| `collection_id` | Yes | Unique ID for the STAC collection in the OSC catalog. |
51-
| `license_type` | Yes | SPDX license identifier (e.g. `CC-BY-4.0`). |
52-
| `osc_themes` | No | List of OSC theme slugs (e.g. `[cryosphere, oceans]`). |
42+
| `collection_id` | Yes | Unique ID for the STAC collection in the OSC catalog. **Must not contain spaces** — use hyphens as word separators (e.g. `My-Dataset-2024`). |
43+
| `license_type` | Yes | SPDX license identifier (e.g. `CC-BY-4.0`). Publishing fails if this field is absent. |
44+
| `osc_themes` | No | List of OSC theme slugs (e.g. `[cryosphere, oceans]`). Values are automatically lowercased so `Land` and `land` are equivalent. |
5345
| `osc_region` | No | Geographical region label (default: `Global`). |
5446
| `dataset_status` | No | One of `ongoing`, `completed`, or `planned` (default: `ongoing`). |
5547
| `access_link` | No | Public S3 URL of the Zarr store. Defaults to `s3://deep-esdl-public/{dataset_id}`. |
5648
| `documentation_link` | No | URL to dataset documentation. |
49+
| `visualisation_link` | No | URL to a visualisation of the dataset (e.g. xcube Viewer, WMS). Added as a `visualisation` link with title `"Dataset visualisation"`. |
5750
| `cf_parameter` | No | List of CF metadata dicts to override variable attributes (e.g. `name`, `units`). |
58-
| `stac_catalog_s3_root` | No | S3 root for the dataset-level STAC Catalog/Item. See [STAC Catalog on S3](#stac-catalog-on-s3). |
51+
| `stac_catalog_s3_root` | Yes | S3 root where the STAC Catalog and Item are published. Publishing fails if this field is absent. See [STAC Catalog on S3](#stac-catalog-on-s3). |
5952

6053
### STAC Catalog on S3
6154

62-
Setting `stac_catalog_s3_root` generates a two-file STAC hierarchy on S3 alongside
63-
the data:
55+
`stac_catalog_s3_root` is required. deep-code writes a two-file STAC hierarchy to S3 alongside the data:
6456

6557
```
6658
s3://bucket/stac/your-collection/
@@ -124,7 +116,7 @@ links:
124116
| `properties.description` | No | Short summary of what the workflow does. |
125117
| `properties.keywords` | No | List of keyword strings. |
126118
| `properties.themes` | No | List of OSC theme slugs. |
127-
| `properties.license` | No | License identifier (e.g. `proprietary`, `CC-BY-4.0`). |
119+
| `properties.license` | Yes | SPDX license identifier (e.g. `CC-BY-4.0`, `proprietary`). Publishing fails if this field is absent. |
128120
| `jupyter_notebook_url` | No | Link to the source notebook on GitHub. When omitted, kernel and application links are skipped. |
129121
| `properties.jupyter_kernel_info` | No | Kernel name, Python version, and environment file URL. Only published when `jupyter_notebook_url` is set. |
130122
| `contact` | No | List of contact objects with `name`, `organization`, and `links`. |

0 commit comments

Comments
 (0)