# Settings reference ## Keys of a source section Every data source reads the section named after it (`[ostia]`, `[modis_a]`, ...), on top of `[default]`. These keys have the same meaning in every section; a source uses those that apply to its provider. | Key | Meaning | |---|---| | `datadir` | Where downloaded files are cached (for local sources: where the files are; may contain `{year}`, `{month:02}`, `{timetype}`, ...). | | `dtm_min`, `dtm_max` | First and last date. `"today"` and relative dates such as `"-720D"` are allowed, for rolling archives. | | `latency` | How long after acquisition data are published (`"60D"`); the range ends that long before today. | | `time_ranges` | Per time type, where it differs: `{ monthly = ["2002-07-01", "2026-04-30"] }`. | | `timetypes` | Native time types (`daily`, `monthly`, `hourly`, `climatology`, `static`, ...). Coarser ones are averaged from finer files. | | `data_vars`, `resolutions` | What the source offers. | | `grid` | A named grid (`"nasa_l3_4km"`), a regular grid (`{ dlat = 0.25, lat_range = [...], lon_range = [...] }`), a pyresample area, or a table of these per resolution. Without it the grid is read from a file. | | `variants` | Sub-tables (`[ostia.variants.nrt]`) of keys that replace the section's keys for `get_source(name, variant="nrt")`. | | `host`, `remotedir`, `filename` | URL and file-name templates of HTTP and Earthdata sources (`{year}`, `{month:02}`, `{day_of_year:03}`, `{yyyymmdd}`, `{dtm:%Y%m%d}`, `{timetype}`, `{data_var}`). | | `archive` | HTTP sources: a ZIP on the server holding `filename` (extracted into `datadir`). | | `short_name` | Earthdata sources: the CMR collection, used to check that a file exists. | | `sensor` | NASA OB.DAAC sources: `MODIS`, `VIIRS`, `NOAA20`, `SeaWiFS`, `OLCI`, `OLCIB`, ... | | `dataset_id`, `dataset_version` | Copernicus Marine dataset. May be a table per time type: `{ daily = "..._P1D-m", monthly = "..._P1M-m" }`. | | `filestamp`, `filestamp_format`, `file_filter` | Copernicus local file name, its date format, and the server-side filter (may contain `*`, e.g. for run dates). The last two may be tables per time type. | | `method`, `depth_bounds`, `coordinates_selection_method` | Copernicus: `"files"` (original files) or `"subset"` (one Zarr store per step, limited to `data_vars` and `depth_bounds`). | | `product`, `variables` | Model sources (`glorys`, `ecco2`, `scrippsgog`): the product path on the server, and per variable `[key in the remote name or URL, name in the file]`. | | `velocity_vars`, `tracer_vars` | Model sources: what `open_dataset(dtm)` returns, and what `tracers=True` adds. | | `grid_definition`, `mesh_hgr`, `mesh_zgr`, `grid_reference_date`, `hfac_min`, `delr_file` | Model sources: the cached grid definition (cell metrics, `kmt`) in `datadir`, and what it is built from. | | `chunks`, `opendap_timeout`, `compute_retries` | OPeNDAP model sources: Dask chunks of the remote read, (connect, read) timeout in seconds, and retries of a dropped transfer. | | `retries`, `retry_wait` | Model sources: how often `download_range` retries a failed day, and the seconds between tries. | | `username`, `password` | Credentials, only in a `.secrets.toml`. Copernicus sources also read the 2.x section names (`[cmems-globgc]`) for these. | | `version`, `url`, `mirror` | `longhurst`: `"2007"` (the grid file, no server known: `url` empty) or `"1995"` (variant: the WFS query for the polygons as GeoJSON, and the zipped shapefile used if it fails). | | `geodir` | Where `landmask` and `distance_from_land` are stored. Default `/geo` (for local sources `/geo/`). | | `doi`, `ref-url` | Shown by `seagrid describe`. | `seagrid config check` lists keys in your files that no source knows (misspelt or retired); list your own keys in `extra_keys` to silence it. ## The template The full commented template, as written by `seagrid init`: ```{literalinclude} ../../src/seagrid/settings_template.toml :language: toml ```