Skip to content

Errors

Every error climval raises on purpose derives from ClimvalError, so a pipeline can catch them in one place.

Exception types raised by climval.

Every error climval raises on purpose derives from :class:ClimvalError, so a pipeline can catch them in one place.

ClimvalError

Bases: Exception

Base class for all climval errors.

InputError

Bases: ClimvalError, ValueError

An input could not be resolved to a variable (missing data, unknown name).

AlignmentError

Bases: ClimvalError, ValueError

The two inputs cannot be put on a common grid, period or set of dimensions.

CurvilinearGridError

Bases: AlignmentError

A grid has two-dimensional latitude and longitude and cannot be interpolated.

NoOverlapError

Bases: AlignmentError

The inputs share no points in space or no periods in time.

UnitsError

Bases: ClimvalError, ValueError

Units are missing, unknown or not convertible.

MissingDependencyError

Bases: ClimvalError, ImportError

An optional dependency needed for the requested option is not installed.

ConfigError

Bases: ClimvalError, ValueError

A climval check configuration file is missing, unreadable or invalid.