earthkit.meteo.regimes.array.project

earthkit.meteo.regimes.array.project(fields, patterns, weights, patterns_coords=None)

Project onto the given regime patterns.

Parameters:
  • fields (array_like) – Input field(s) to project. The patterns are projected onto the trailing dimensions of the input fields.

  • patterns (earthkit.meteo.regimes.Patterns) – Patterns to project on.

  • weights (array_like) – Weights for the summation in the projection. Weights are normalised before application so the sum of weights over the domain equals 1. Must have shape of the patterns.

  • patterns_coords (Mapping[str,Any], optional) – Keyword arguments for the pattern generation. E.g., a sequence of dates for date-modulated patterns. Must have the shape of field without the trailing dimensions onto which the patterns are projected.

Returns:

Results of the projection. Output fields have same shape as input field except that the dimensions reduced during the projection (i.e., the spatial dimensions of the patterns) are replaced by a regime dimension.

Return type:

array_like