dapper.schemas.elm

Canonical ELM target schema & helpers.

Everything here is dataset-agnostic. Adapters should map their raw/source variables into these canonical names before handing data to writers.

Functions

elm_range(var)

Return canonical recommended range for a variable.

elm_required_vars(dformat)

Return the list of canonical vars required by a given ELM format.

elm_units(var)

Return canonical units for a variable.

is_nonnegative(var)

True if var should be clipped to >= 0 after conversion.

dapper.schemas.elm.elm_range(var)

Return canonical recommended range for a variable.

Parameters:

var (str)

Return type:

tuple[float, float]

dapper.schemas.elm.elm_required_vars(dformat)

Return the list of canonical vars required by a given ELM format.

Parameters:

dformat (str)

Return type:

list[str]

dapper.schemas.elm.elm_units(var)

Return canonical units for a variable.

Parameters:

var (str)

Return type:

str

dapper.schemas.elm.is_nonnegative(var)

True if var should be clipped to >= 0 after conversion.

Parameters:

var (str)

Return type:

bool