EUMDAC
Grounded in eumdac 3.1.1 only (pinned install: install.md). Trust the templates here; run eumdac <command> --help only for an undocumented flag, another installed version, or a usage error. Discovery is describe (no discover command in 3.1.1).
Quick reference
basheumdac token >/dev/null # validity only; stdout is the bearer token, never run bare or piped timeout 120 eumdac describe [--filter "*MSG*"] timeout 120 eumdac describe --collection "<collection-id>" [--product "<product-id>"] timeout 120 eumdac search --collection "<collection-id>" --start "<YYYY-MM-DD[THH[:MM]]>" --end "<...>" --limit 5 timeout 120 eumdac search --collection "<collection-id>" --time-range "<start>" "<end>" --bbox W S E N --satellite "<MSG4>" --limit 5 eumdac tailor post --collection "<collection-id>" --product "<product-id>" --chain "<chain-id-or-file>" eumdac tailor status "<customisation-id>" eumdac tailor download "<customisation-id>" --output-dir "<dir>"
Times are UTC. Other filters (--publication-*, --daily-window, --geometry, --product-type, --timeliness, orbit/cycle, --filename, --sort): datastore-filtering.md.
Rules
- Never print, commit, or log consumer keys/secrets, bearer tokens, subscription credentials, account details, or private downloaded-data paths. Never put literal secrets on a command line; use placeholders when credentials are missing.
- Do not run
set-credentialsorsubscribe set-credentialswhen a credentials file exists unless the user explicitly asks to replace it. - Run read-only commands directly with stored credentials; do not ask first:
describe,search,token >/dev/null,subscribe list,tailor list|status|log|quota|resources,local-tailor instances|show,order list|status. - Ask for confirmation, stating what will happen, before state-changing, long-running, or expensive commands:
download,download-metalink,subscribe add|download,livefeed,tailor post|download|delete|cancel|clean,local-tailor set|remove,order resume|restart|delete|housekeep, bothset-credentials, and Python equivalents (bulkproduct.open()loops,DataTailor.new_customisation(s)). - Call
eumdacfromPATH. Runcommand -v eumdacand follow install.md only when it is not found; run--version/--helponly under the conditions above. Never assume a project.venvor personal virtualenv path. - Run every live call under
timeout 120; keep--limiton exploratory searches. A search combining--sortwith--bbox/--geometryhangs on wide ranges: narrow the time range and drop--sort. Print one progress line before a download or long search and one result line after; never run silently. Check a shell variable is set before using it as a product ID (empty hangs). --bbox/--geometryfilter whole products and do not crop. Cropping or subsetting is Data Tailor (or mission--download-coverage).- Download gate. Never download because a collection was named or to be helpful. Gather count, total size, free space, and the destination the user names (never invent one), then ask once stating all four and download only after explicit authorisation given after the user has seen them (a "go ahead" sent with the request is not authorisation), under
timeout, then report the destination directory (back to a calling skill if any).- Space:
df -h <destination>. Download options and--yes: datastore-download.md. - Count and size in one call, no separate count search (
Product.sizeis KB; a hint, not the archive size; prints only count and GB; the shebang finds the Python with eumdac for tool installs):
- Space:
bashtimeout 120 "$(head -1 "$(command -v eumdac)" | cut -c3-)" -I - "<collection-id>" "<start>" "<end>" <<'PY' import sys, eumdac from datetime import datetime from eumdac.config import get_credentials_path col, t0, t1 = sys.argv[1:4] store = eumdac.DataStore(eumdac.AccessToken(get_credentials_path().read_text().strip().split(","))) res = store.get_collection(col).search(dtstart=datetime.fromisoformat(t0), dtend=datetime.fromisoformat(t1)) print(f"{res.total_results} products, {sum(p.size for p in res) / 1024**2:.2f} GB") PY
- If the user has no files and asks where their data is, ask; do not search their disks. Apply rules without lecturing; state only what is needed in one line.
Response contract
When proposing commands or code: state CLI vs Python, prerequisites (install, credentials, network, IDs), placeholders for secrets, and validation status (what was run, what was not, why; claim live validation only after real service calls). Answer short factual questions and your own read-only runs directly. Do not guess product IDs.
Route by intent
Read only the reference needed. Out of scope: science interpretation, generic packaging, post-download analysis, web UIs.
| Intent | Reference |
|---|---|
| Climate data record (CDR) or long climate time series: which collection, filename filter, variable | If the ml-menu skill is installed, load it first for the collection, filename filter and variable; then return here for search and download |
| Install, missing CLI, wrong Python | install.md |
| Credentials, token, 401/403 | auth.md |
| List/describe collections or products | datastore-discovery.md |
| Search filters beyond the quick reference | datastore-filtering.md |
| Download options (entries, integrity, coverage, threads, layout); another skill needing files on disk | datastore-download.md |
| Metalink carts | datastore-metalink.md |
Python API (AccessToken, DataStore, DataTailor) | python-api.md |
| Data Tailor, local-tailor, orders | tailor-orders.md |
| Subscriptions, livefeed | subscriptions-livefeed.md |
| Errors, debug/trace, stuck jobs | troubleshooting.md |


