https://123dok.net/document/yr3dp0py-an-adjoint-based-adaptive-ensemble-kalman-filter.html