fips.InverseProblem#
- class fips.InverseProblem(obs, prior, forward_operator, modeldata_mismatch, prior_error, constant=None, round_index=6)[source]#
Bases:
PickleableInverse problem combining observations, priors, and forward model.
Organizes state vectors, observations, forward operators, and error covariances into a unified framework for solving inverse problems via different estimators.
- Parameters:
obs (VectorLike) – Observation vector.
prior (VectorLike) – Prior state vector.
forward_operator (MatrixLike) – Forward operator mapping state space to observation space.
modeldata_mismatch (MatrixLike) – Covariance matrix representing model-data mismatch (observation error).
prior_error (MatrixLike) – Covariance matrix representing prior error.
constant (VectorLike or float, optional) – Optional constant term added to the forward model (e.g., background or bias).
round_index (int, optional) – Number of decimal places to round to. If None, no rounding is performed.
Attributes
Averaging kernel matrix (A). |
|
Optional constant term added to the forward model (e.g., background or bias). |
|
Desroziers et al. (2005) diagnosed observation error covariance. |
|
Return the fitted estimator (raises if not solved). |
|
Forward operator mapping state space to observation space. |
|
Kalman gain matrix (K). |
|
Covariance matrix representing model-data mismatch (observation error). |
|
Return number of observations. |
|
Return number of state variables. |
|
Observation vector. |
|
Return the observation space index. |
|
Posterior state estimate. |
|
Posterior error covariance. |
|
Modeled observations (H @ posterior). |
|
Prior state vector. |
|
Covariance matrix representing prior error. |
|
Modeled observations using the prior (H @ prior). |
|
Prior error covariance in observation space (H @ S_0 @ H.T). |
|
Return the state space index. |
Methods
|
Get block from a component (Vector or Matrix). |
|
Solve the inverse problem using the specified estimator. |
Inherited
From Pickleable: from_file, to_file