weather
weather
#
Multi-dimensional difference between two weather forecasts.
Each sigma_<field> keyword opts one of cg.Weather's numeric fields into
the metric, and the enabled fields combine as a Euclidean norm.
NUMERIC_FIELDS = tuple(cg.quantities(cg.Weather))
module-attribute
#
The cg.Weather fields a weather distance can measure.
SIGMA_PREFIX = 'sigma_'
module-attribute
#
What a weather keyword prefixes onto the cg.Weather field it scales.
weather(**sigmas)
#
Create a distance function over the enabled weather dimensions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**sigmas
|
float
|
One |
{}
|
Returns:
| Type | Description |
|---|---|
CombinedDistance
|
A distance function |
Raises:
| Type | Description |
|---|---|
ValueError
|
If no dimension is given, or a keyword does not name a
numeric |