easysnowdata.catalog.Product#

class easysnowdata.catalog.Product(id: str, theme: str, title: str, description: str, sources: tuple[~easysnowdata.catalog._models.Source, ...], citation: str, license: str, loader: str, variables: tuple[~easysnowdata.catalog._models.Variable, ...] = (), doi: str | None = None, references: tuple[str, ...] = (), tags: tuple[str, ...] = <factory>, examples: tuple[str, ...] = ())[source]#

Bases: object

One dataset, with one or more sources (the first is the default).

examples: tuple[str, ...] = ()#

Gallery scripts that load this product, as paths under docs/gallery ("snow/plot_snodas.py"). §2.11 asks every product for one; the docs page links them, and the offline catalog test checks they exist.

source(source_id: str | None = None) Source[source]#

Return the source called source_id (default: the first).

variable(name: str) Variable[source]#

Return the variable called name.

property requires: tuple[str, ...]#

Credentials the default source needs.

resolve_loader() Any[source]#

Import and return the object at loader (module:attr or dotted).