Skip to content

statistics.weights.lat_weight

Import path: earth2studio.statistics.weights.lat_weight

View source on GitHub

Documentation

Compute the cosine-based latitude weighting for a given tensor representing latitude coordinates. The latitude coordinates are assumed to be in degrees.

Uses the formula weights = cos(lat * pi / 180.0)

Parameters:

  • lat (T) –

    Array of latitude values, in degrees. Should be in the range [-90, 90].

Returns:

  • weights ( Union[ndarray, Tensor] ) –

    Array of latitude weights, formally defined above.