Weighting

class weatherbenchX.weighting.Weighting[source]

Abstract class for weighting.

class weatherbenchX.weighting.GridAreaWeighting(latitude_name: str = 'latitude', return_normalized: bool = True)[source]

Return normalized weights proportional to area of rectangular grid box.

latitude_name

Name of latitude dimension on statistic data array. Default: ‘latitude’

Type:

str

return_normalized

Whether to return weights normalized to a mean of 1. This should not matter for the aggregation. Default: True.

Type:

bool