cmipget 0.1.0__py3-none-any.whl
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.
- cmipget/__init__.py +84 -0
- cmipget/_job_worker.py +170 -0
- cmipget/_skill/SKILL.md +75 -0
- cmipget/_skill/references/cmip7-vs-cmip6.md +41 -0
- cmipget/cli.py +924 -0
- cmipget/client.py +340 -0
- cmipget/cloud.py +528 -0
- cmipget/downloader.py +933 -0
- cmipget/exporter.py +154 -0
- cmipget/jobs.py +333 -0
- cmipget/mcp_server.py +729 -0
- cmipget/models.py +396 -0
- cmipget/planner.py +626 -0
- cmipget/postprocess.py +16 -0
- cmipget/prober.py +456 -0
- cmipget/semantics.py +656 -0
- cmipget/skill_helper.py +69 -0
- cmipget/sources.py +729 -0
- cmipget/stac.py +1274 -0
- cmipget-0.1.0.dist-info/METADATA +198 -0
- cmipget-0.1.0.dist-info/RECORD +24 -0
- cmipget-0.1.0.dist-info/WHEEL +4 -0
- cmipget-0.1.0.dist-info/entry_points.txt +2 -0
- cmipget-0.1.0.dist-info/licenses/LICENSE +21 -0
cmipget/__init__.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from cmipget.client import CMIPClient
|
|
4
|
+
from cmipget.cloud import CloudUnavailableError
|
|
5
|
+
from cmipget.downloader import InsufficientDiskSpaceError, download_plan
|
|
6
|
+
from cmipget.exporter import export_plan
|
|
7
|
+
from cmipget.models import (
|
|
8
|
+
AmbiguityWarning,
|
|
9
|
+
AssetSource,
|
|
10
|
+
AuditFileResult,
|
|
11
|
+
AuditReport,
|
|
12
|
+
CloudProvider,
|
|
13
|
+
CloudSearchResult,
|
|
14
|
+
CloudStoreRecord,
|
|
15
|
+
DatasetRecord,
|
|
16
|
+
DownloadConfig,
|
|
17
|
+
DownloadPlan,
|
|
18
|
+
DownloadReport,
|
|
19
|
+
ExportFormat,
|
|
20
|
+
FacetBucket,
|
|
21
|
+
FacetResult,
|
|
22
|
+
FileAsset,
|
|
23
|
+
FileDownloadResult,
|
|
24
|
+
JobRecord,
|
|
25
|
+
Layout,
|
|
26
|
+
PlannedFile,
|
|
27
|
+
Project,
|
|
28
|
+
Query,
|
|
29
|
+
ResolvedTerm,
|
|
30
|
+
SearchResult,
|
|
31
|
+
SemanticHint,
|
|
32
|
+
SingleCloudProvider,
|
|
33
|
+
SingleProject,
|
|
34
|
+
VerifyFileResult,
|
|
35
|
+
VerifyReport,
|
|
36
|
+
__version__,
|
|
37
|
+
)
|
|
38
|
+
from cmipget.planner import build_plan, verify_manifest
|
|
39
|
+
from cmipget.postprocess import PostProcessor, SubsetUnavailableError
|
|
40
|
+
from cmipget.sources import MirrorRule, load_local_roots, load_mirror_rules
|
|
41
|
+
|
|
42
|
+
__all__ = [
|
|
43
|
+
"__version__",
|
|
44
|
+
"AmbiguityWarning",
|
|
45
|
+
"AssetSource",
|
|
46
|
+
"AuditFileResult",
|
|
47
|
+
"AuditReport",
|
|
48
|
+
"CMIPClient",
|
|
49
|
+
"CloudProvider",
|
|
50
|
+
"CloudSearchResult",
|
|
51
|
+
"CloudStoreRecord",
|
|
52
|
+
"CloudUnavailableError",
|
|
53
|
+
"DatasetRecord",
|
|
54
|
+
"DownloadConfig",
|
|
55
|
+
"DownloadPlan",
|
|
56
|
+
"DownloadReport",
|
|
57
|
+
"ExportFormat",
|
|
58
|
+
"FacetBucket",
|
|
59
|
+
"FacetResult",
|
|
60
|
+
"FileAsset",
|
|
61
|
+
"FileDownloadResult",
|
|
62
|
+
"InsufficientDiskSpaceError",
|
|
63
|
+
"JobRecord",
|
|
64
|
+
"Layout",
|
|
65
|
+
"MirrorRule",
|
|
66
|
+
"PlannedFile",
|
|
67
|
+
"PostProcessor",
|
|
68
|
+
"Project",
|
|
69
|
+
"Query",
|
|
70
|
+
"ResolvedTerm",
|
|
71
|
+
"SearchResult",
|
|
72
|
+
"SemanticHint",
|
|
73
|
+
"SingleCloudProvider",
|
|
74
|
+
"SingleProject",
|
|
75
|
+
"SubsetUnavailableError",
|
|
76
|
+
"VerifyFileResult",
|
|
77
|
+
"VerifyReport",
|
|
78
|
+
"build_plan",
|
|
79
|
+
"download_plan",
|
|
80
|
+
"export_plan",
|
|
81
|
+
"load_local_roots",
|
|
82
|
+
"load_mirror_rules",
|
|
83
|
+
"verify_manifest",
|
|
84
|
+
]
|
cmipget/_job_worker.py
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import asyncio
|
|
4
|
+
import os
|
|
5
|
+
import signal
|
|
6
|
+
import sys
|
|
7
|
+
from datetime import datetime, timezone
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
from cmipget.downloader import download_plan
|
|
12
|
+
from cmipget.jobs import _atomic_write_json, _job_dir
|
|
13
|
+
from cmipget.models import DownloadConfig, DownloadPlan, DownloadReport, JobRecord
|
|
14
|
+
from cmipget.sources import file_lock
|
|
15
|
+
from cmipget.stac import ESGFStacClient
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
import fcntl
|
|
19
|
+
except ImportError:
|
|
20
|
+
fcntl = None # type: ignore[assignment]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
async def _run_worker(job_id: str, jobs_root: Path) -> int:
|
|
24
|
+
jdir = _job_dir(jobs_root, job_id)
|
|
25
|
+
job_file = jdir / "job.json"
|
|
26
|
+
cancel_flag = jdir / "cancel.flag"
|
|
27
|
+
plan = DownloadPlan.model_validate_json((jdir / "plan.json").read_text(encoding="utf-8"))
|
|
28
|
+
config = DownloadConfig.model_validate_json((jdir / "config.json").read_text(encoding="utf-8"))
|
|
29
|
+
env_proxy = os.environ.pop("CMIPGET_WORKER_PROXY", None)
|
|
30
|
+
if env_proxy and config.proxy is None:
|
|
31
|
+
config = config.model_copy(update={"proxy": env_proxy})
|
|
32
|
+
job = JobRecord.model_validate_json(job_file.read_text(encoding="utf-8"))
|
|
33
|
+
|
|
34
|
+
worker_lock_fh: Any = None
|
|
35
|
+
if fcntl is not None:
|
|
36
|
+
worker_lock_fh = (jdir / "worker.lock").open("a+", encoding="utf-8")
|
|
37
|
+
try:
|
|
38
|
+
fcntl.flock(worker_lock_fh.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
|
39
|
+
except OSError:
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
cancel_event = asyncio.Event()
|
|
43
|
+
download_task: asyncio.Task[DownloadReport] | None = None
|
|
44
|
+
loop = asyncio.get_running_loop()
|
|
45
|
+
|
|
46
|
+
def _on_signal() -> None:
|
|
47
|
+
cancel_event.set()
|
|
48
|
+
if download_task is not None and not download_task.done():
|
|
49
|
+
download_task.cancel()
|
|
50
|
+
|
|
51
|
+
for sig in (signal.SIGTERM, signal.SIGINT):
|
|
52
|
+
try:
|
|
53
|
+
loop.add_signal_handler(sig, _on_signal)
|
|
54
|
+
except NotImplementedError:
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
def save(update: dict) -> None:
|
|
58
|
+
nonlocal job
|
|
59
|
+
with file_lock(jdir / ".job.lock"):
|
|
60
|
+
if cancel_flag.exists():
|
|
61
|
+
cancel_event.set()
|
|
62
|
+
if download_task is not None and not download_task.done():
|
|
63
|
+
download_task.cancel()
|
|
64
|
+
if update.get("status") not in ("cancelled", "failed"):
|
|
65
|
+
update["status"] = "cancelled"
|
|
66
|
+
update.setdefault("error", "Cancelled by user.")
|
|
67
|
+
update["updated_at"] = datetime.now(timezone.utc).isoformat()
|
|
68
|
+
job = job.model_copy(update=update)
|
|
69
|
+
_atomic_write_json(job_file, job.model_dump_json(indent=2))
|
|
70
|
+
|
|
71
|
+
try:
|
|
72
|
+
if cancel_flag.exists():
|
|
73
|
+
save({"status": "cancelled", "pid": os.getpid(), "error": "Cancelled by user."})
|
|
74
|
+
return 1
|
|
75
|
+
|
|
76
|
+
save({"status": "running", "pid": os.getpid()})
|
|
77
|
+
|
|
78
|
+
def on_progress(
|
|
79
|
+
completed: int,
|
|
80
|
+
_total: int,
|
|
81
|
+
bytes_done: int,
|
|
82
|
+
_total_bytes: int,
|
|
83
|
+
current_file: str | None,
|
|
84
|
+
) -> None:
|
|
85
|
+
save(
|
|
86
|
+
{
|
|
87
|
+
"completed_files": completed,
|
|
88
|
+
"bytes_downloaded": bytes_done,
|
|
89
|
+
"current_file": current_file,
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
try:
|
|
94
|
+
async with ESGFStacClient(
|
|
95
|
+
node=config.node,
|
|
96
|
+
proxy=config.proxy,
|
|
97
|
+
timeout=config.connect_timeout,
|
|
98
|
+
) as stac:
|
|
99
|
+
download_task = asyncio.create_task(
|
|
100
|
+
download_plan(
|
|
101
|
+
plan,
|
|
102
|
+
config,
|
|
103
|
+
stac_client=stac,
|
|
104
|
+
on_progress=on_progress,
|
|
105
|
+
cancel_event=cancel_event,
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
report = await download_task
|
|
109
|
+
report_path = jdir / "report.json"
|
|
110
|
+
_atomic_write_json(report_path, report.model_dump_json(indent=2))
|
|
111
|
+
|
|
112
|
+
bytes_accounted = sum(
|
|
113
|
+
r.size_bytes or 0 for r in report.results if r.status in ("downloaded", "skipped")
|
|
114
|
+
)
|
|
115
|
+
if report.failed > 0:
|
|
116
|
+
final_status = (
|
|
117
|
+
"failed"
|
|
118
|
+
if (report.downloaded == 0 and report.skipped == 0)
|
|
119
|
+
else "completed_with_errors"
|
|
120
|
+
)
|
|
121
|
+
save(
|
|
122
|
+
{
|
|
123
|
+
"status": final_status,
|
|
124
|
+
"completed_files": report.downloaded + report.skipped,
|
|
125
|
+
"skipped_files": report.skipped,
|
|
126
|
+
"failed_files": report.failed,
|
|
127
|
+
"bytes_downloaded": bytes_accounted,
|
|
128
|
+
"current_file": None,
|
|
129
|
+
"error": f"{report.failed} of {report.total_files} files failed.",
|
|
130
|
+
"report_path": str(report_path),
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
return 1
|
|
134
|
+
|
|
135
|
+
save(
|
|
136
|
+
{
|
|
137
|
+
"status": "completed",
|
|
138
|
+
"completed_files": report.downloaded + report.skipped,
|
|
139
|
+
"skipped_files": report.skipped,
|
|
140
|
+
"failed_files": 0,
|
|
141
|
+
"bytes_downloaded": bytes_accounted,
|
|
142
|
+
"current_file": None,
|
|
143
|
+
"report_path": str(report_path),
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
return 0
|
|
147
|
+
except asyncio.CancelledError:
|
|
148
|
+
save({"status": "cancelled", "error": "Cancelled by user.", "current_file": None})
|
|
149
|
+
return 1
|
|
150
|
+
except Exception as exc:
|
|
151
|
+
status = "cancelled" if (cancel_event.is_set() or cancel_flag.exists()) else "failed"
|
|
152
|
+
save({"status": status, "error": str(exc), "current_file": None})
|
|
153
|
+
return 1
|
|
154
|
+
finally:
|
|
155
|
+
if worker_lock_fh is not None:
|
|
156
|
+
try:
|
|
157
|
+
fcntl.flock(worker_lock_fh.fileno(), fcntl.LOCK_UN)
|
|
158
|
+
except OSError:
|
|
159
|
+
pass
|
|
160
|
+
worker_lock_fh.close()
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def main() -> int:
|
|
164
|
+
if len(sys.argv) < 3:
|
|
165
|
+
return 2
|
|
166
|
+
return asyncio.run(_run_worker(sys.argv[1], Path(sys.argv[2])))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
if __name__ == "__main__":
|
|
170
|
+
raise SystemExit(main())
|
cmipget/_skill/SKILL.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cmipget-agent
|
|
3
|
+
description: >-
|
|
4
|
+
Search, inspect, plan, and download CMIP7 and CMIP6 climate model datasets from
|
|
5
|
+
ESGF-NG using cmipget (CLI --json or MCP tools). Use whenever a user asks in
|
|
6
|
+
English or Chinese to query availability, check variables/models/scenarios, or
|
|
7
|
+
download CMIP7 or CMIP6 NetCDF data to a local directory.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# cmipget-agent
|
|
11
|
+
|
|
12
|
+
Use `cmipget` to translate natural-language climate data requests into verified ESGF-NG STAC queries and safe, checksum-verified NetCDF downloads.
|
|
13
|
+
|
|
14
|
+
## Setup (pick whichever runtime is available)
|
|
15
|
+
|
|
16
|
+
- **If `cmipget` MCP tools are connected**: call `resolve_terms`, `list_facets`, `search_datasets`, `search_cloud_mirrors`, `plan_download`, `download_datasets` / `start_download_job`, `get_download_status`, `cancel_download_job`, `verify_local_files`, `audit_local_files`, `export_download_list`.
|
|
17
|
+
- **If you have a shell (zero-install via `uvx` or local install)**:
|
|
18
|
+
```bash
|
|
19
|
+
uvx cmipget --help # or: pip install cmipget
|
|
20
|
+
```
|
|
21
|
+
Always pass `--json` on CLI commands for clean structured output.
|
|
22
|
+
|
|
23
|
+
## Mandatory 5-step workflow
|
|
24
|
+
|
|
25
|
+
1. **Resolve CN/EN terms & check cross-generation differences**
|
|
26
|
+
- Never guess CMIP7 scenario IDs (`scen7-h`, `scen7-m`, `esm-hist`), `branding_suffix`, or legacy CMIP6 `table_id`.
|
|
27
|
+
- Run `cmipget check "<term1>" "<term2>" -p cmip7 --json` (or `resolve_terms`), and read `references/cmip7-vs-cmip6.md` if needed.
|
|
28
|
+
- Use `-p cmip6` only when the user asks for CMIP6 (or `-p all` to compare across both).
|
|
29
|
+
|
|
30
|
+
2. **Check real availability on ESGF-NG**
|
|
31
|
+
- List active models/experiments/variables:
|
|
32
|
+
`cmipget facets -p cmip7 -v tas --json` (or `list_facets`).
|
|
33
|
+
- Search matching datasets:
|
|
34
|
+
`cmipget search -p cmip7 -e historical -v tas -f mon --one-member --json` (or `search_datasets`).
|
|
35
|
+
- Use `--complete` when querying multiple experiments/variables so incomplete models are filtered out; add `--with-cell-measures` when area/land-fraction grids (`areacello`/`areacella`/`sftlf`) are needed.
|
|
36
|
+
|
|
37
|
+
3. **Build a download plan first (never blind-download)**
|
|
38
|
+
- Run `cmipget plan -o <target_dir> ... --json` (or `plan_download`).
|
|
39
|
+
- Inspect `files_to_download`, `bytes_to_download`, `disk_ok`, `exceeds_limit`, `warnings`, `notices`, and `hints`.
|
|
40
|
+
- **Ambiguity & provenance check**: if `warnings` flags multiple `variant_label` / `branding_suffix` / `grid_label` values, ask the user or apply `--one-member` / `-b` / `--grid`. Always surface `notices` (e.g., `--probe-missing` unverified files with `sha256=null`, incomplete series dropped).
|
|
41
|
+
- **Size safety guard**: default limit is `10 GB` (`max_total_gb=10.0`). If `exceeds_limit` is true or total size is large, show the exact file count and GB total and ask the user to confirm before passing `--yes` / higher `--max-gb` / `confirm_large=True`.
|
|
42
|
+
|
|
43
|
+
4. **Execute download**
|
|
44
|
+
- Standard files (prefer `--segmented` for large >=32 MB NetCDF files):
|
|
45
|
+
`cmipget download -o <target_dir> -p cmip7 -e historical -v tas -f mon --one-member --segmented --json`
|
|
46
|
+
- Very large multi-GB batches (avoid command/MCP timeout):
|
|
47
|
+
add `--background` (or call `start_download_job`), monitor with `cmipget jobs status <job_id> --json` (or `get_download_status`), and cancel if needed via `cmipget jobs cancel <job_id> --json` (or `cancel_download_job`).
|
|
48
|
+
- Cluster / external tool transfer:
|
|
49
|
+
`cmipget export --format aria2c --out-file cmip.aria2 ...` (supports `urls`, `aria2c`, `wget`, `globus`, `opendap`, `kerchunk`).
|
|
50
|
+
|
|
51
|
+
5. **Verify, audit & report**
|
|
52
|
+
- Run `cmipget verify <target_dir> --json` (or `verify_local_files`), and `cmipget audit <target_dir> --json` (or `audit_local_files`) on existing datasets to detect retracted/superseded versions.
|
|
53
|
+
- Report output directory, `manifest.json` path, downloaded/skipped/failed counts, SHA-256 verification status (`ok` vs `no_checksum`), provenance `source` (`stac` / `catalog_probe` / `guessed` / `local_pool` / `cloud_zarr_*`), and exact local file paths.
|
|
54
|
+
|
|
55
|
+
## Useful CLI flags (`acccmip6`-compatible aliases)
|
|
56
|
+
|
|
57
|
+
- `-p, --project` (`cmip7` default, `cmip6`, `all`)
|
|
58
|
+
- `-m, --model` (`source_id`, comma-separated or repeated)
|
|
59
|
+
- `-e, --experiment` (`experiment_id`)
|
|
60
|
+
- `-v, --variable` (`variable_id`)
|
|
61
|
+
- `-f, --frequency` (`mon`, `day`, `3hr`, `6hr`, `1hr`, `yr`, `fx`)
|
|
62
|
+
- `-r, --realm` (`atmos`, `ocean`, `land`, `seaIce`, `aerosol`, ...)
|
|
63
|
+
- `-b, --branding` (CMIP7 `variable_branding_suffix`, e.g. `tavg-h2m-hxy-u`)
|
|
64
|
+
- `-t, --table` (CMIP6 `table_id`, e.g. `Amon`, `Omon`)
|
|
65
|
+
- `-yr, --years` (year filter, e.g. `2015-2100` or `2020`)
|
|
66
|
+
- `-rlzn, --variant` (e.g. `r1i1p1f1`), or `--one-member`
|
|
67
|
+
- `--complete` (filter out model/member groups missing any queried `experiment x variable`)
|
|
68
|
+
- `--with-cell-measures` (automatically attach `areacello`/`areacella`/`sftlf`/`sftof` static grids)
|
|
69
|
+
- `--local-root` (reuse existing read-only CMIP directories without re-downloading; `CMIPGET_LOCAL_ROOTS`)
|
|
70
|
+
- `--layout` (`compact` default, `drs`, `flat`)
|
|
71
|
+
- `--segmented / --no-segmented` (multi-segment parallel HTTP Range download)
|
|
72
|
+
- `--solr-fallback / --no-solr-fallback` (checksum-verified CMIP6 ESGF Solr replica fallback, default on)
|
|
73
|
+
- `--probe-missing` (opt-in: check THREDDS `catalog.xml` + time gaps for unindexed `.nc` files; `source='catalog_probe'|'guessed'`, `sha256=null`)
|
|
74
|
+
- `--mirror` (custom mirror base URL or `src=>dst` rewrite on `plan`/`download`/`export`; reads `~/.config/cmipget/mirrors.toml`)
|
|
75
|
+
- `cmipget cloud search` / `cmipget cloud download` (third-party Pangeo GCS & AWS CMIP6 cloud Zarr mirrors; `cloud download` enforces `--max-stores` guard and requires `pip install "cmipget[cloud]"`)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# CMIP7 vs CMIP6 Quick Reference
|
|
2
|
+
|
|
3
|
+
## Key Metadata Differences
|
|
4
|
+
|
|
5
|
+
| Concept | CMIP6 | CMIP7 (`MIP-DRS7`) |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| Table ID | `table_id` (e.g. `Amon`, `Omon`) | Removed; use `frequency` + `realm` + `branding_suffix` |
|
|
8
|
+
| Variable ID | `variable_id` + `table_id` | `variable_id` + `variable_branding_suffix` (e.g. `tas` + `tavg-h2m-hxy-u`) |
|
|
9
|
+
| Region | Not in DRS | `region` (e.g. `glb`, `nh`, `sh`, `grl`, `ata`, `30S-90S`) |
|
|
10
|
+
| Member | `variant_label` / `member_id` | `variant_label` (e.g. `r1i1p1f1`) |
|
|
11
|
+
|
|
12
|
+
## Scenario Mapping Hints
|
|
13
|
+
|
|
14
|
+
| Emissions Level | CMIP6 `experiment_id` | CMIP7 `experiment_id` (concentration / emission driven) |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| Historical | `historical`, `esm-hist` | `historical`, `esm-hist` |
|
|
17
|
+
| Very Low | `ssp119` | `scen7-vl`, `esm-scen7-vl` |
|
|
18
|
+
| Low | `ssp126` | `scen7-l`, `esm-scen7-l`, `scen7-ln`, `esm-scen7-ln` |
|
|
19
|
+
| Medium | `ssp245` | `scen7-m`, `esm-scen7-m`, `SSP2-com-CMIP7`, `esm-SSP2-com-CMIP7` |
|
|
20
|
+
| Medium-High | `ssp370` | `scen7-ml`, `esm-scen7-ml` |
|
|
21
|
+
| High | `ssp585` | `scen7-h`, `esm-scen7-h` |
|
|
22
|
+
|
|
23
|
+
## Common CN/EN Variables
|
|
24
|
+
|
|
25
|
+
- 地表气温 / surface air temperature: `tas` (max: `tasmax`, min: `tasmin`)
|
|
26
|
+
- 降水 / precipitation: `pr`
|
|
27
|
+
- 海表温度 / SST: `tos`
|
|
28
|
+
- 海表盐度 / SSS: `sos`
|
|
29
|
+
- 海平面高度 / SSH: `zos`
|
|
30
|
+
- 海平面气压 / SLP: `psl`
|
|
31
|
+
- 位势高度 / geopotential height: `zg`
|
|
32
|
+
- 纬向风 / zonal wind: `ua` (surface: `uas`)
|
|
33
|
+
- 经向风 / meridional wind: `va` (surface: `vas`)
|
|
34
|
+
- 比湿 / specific humidity: `huss` (`hus` on pressure levels)
|
|
35
|
+
- 相对湿度 / relative humidity: `hurs` (`hur` on pressure levels)
|
|
36
|
+
- 海冰密集度 / sea ice concentration: `siconc`
|
|
37
|
+
|
|
38
|
+
## ESGF-NG STAC Notes
|
|
39
|
+
|
|
40
|
+
- `cmipget` queries `discovery.west.esgf.io` (`cmip7`/`cmip6`) and `discovery.east.esgf.io` (`CMIP7`/`CMIP6`) with automatic failover.
|
|
41
|
+
- Several ESGF data servers support HTTP `206 Partial Content` without advertising `Accept-Ranges`; `cmipget --segmented` probes `Range: bytes=0-0` directly.
|