geoschem / integrated_methane_inversion

Integrated Methane Inversion workflow repository.
https://imi.readthedocs.org
MIT License
25 stars 19 forks source link

Feature/dynamic kf clustering #160

Closed laestrada closed 11 months ago

laestrada commented 11 months ago

Name and Institution (Required)

Name: Lucas Estrada Institution: Harvard ACMG

Describe the update

This implements a dynamic Kalman Filter clustering option into the IMI, which allows users to update a clustered state vector at each iteration. This allows statevector clusters to respond to changes in information content "dynamically" as the number of observations and distribution of emissions change over each iteration.

For calculating the estimated sensitivities in DynamicKFClustering mode I have updated the code to use 1) observations for the current iteration instead of the entire inversion period and 2) the nudge (prior) emissions. This allows the clustering algorithm to take into account updated emissions, while still maintaining some presence of the original prior emissions.

Also includes some small bugfixes to: