fips.aggregators.ObsAggregator.apply#

ObsAggregator.apply(obs, forward_operator, modeldata_mismatch, constant=None)[source]#

Apply W to the inverse problem components.

Inputs may be bare pandas objects or fips wrapper types (Vector, ForwardOperator, CovarianceMatrix); return types mirror the inputs. See the class docstring for the mathematical transforms.

The aggregator ensures all inputs are properly aligned to obs.index before building the weight matrix W.

Parameters:
  • obs (pd.Series | Block | Vector) – Observation vector to be aggregated.

  • forward_operator (pd.DataFrame | MatrixBlock | Matrix) – Forward operator matrix to be aggregated.

  • modeldata_mismatch (pd.DataFrame | MatrixBlock | Matrix) – Model-data mismatch covariance matrix to be aggregated.

  • constant (float | pd.Series | Block | Vector | None, optional) – Optional constant offset vector to be aggregated. Scalars are invariant to aggregation. Default is None.

Returns:

Aggregated (obs, forward_operator, modeldata_mismatch, constant) in the same types as the inputs.

Return type:

tuple