Changes between Initial Version and Version 1 of Implement3DVarAnalysisOverview


Ignore:
Timestamp:
Dec 13, 2021, 5:46:32 PM (2 years ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Implement3DVarAnalysisOverview

    v1 v1  
     1= Overview of the Analysis Step for 3D-Var Methods =
     2
     3{{{
     4#!html
     5<div class="wiki-toc">
     6<h4>PDAF-OMI Guide</h4>
     7<ol><li><a href="PDAF_OMI_Overview">Overview</a></li>
     8<li><a href="OMI_Callback_obs_pdafomi">callback_obs_pdafomi.F90</a></li>
     9<li><a href="OMI_observation_modules">Observation Modules</a></li>
     10<li><a href="OMI_observation_operators">Observation operators</a></li>
     11<li><a href="OMI_debugging">Debugging functionality</a></li>
     12<li><a href="ImplementationofAnalysisStep">Implementing the analysis step with OMI</a></li>
     13<ol>
     14<li> <a href="ImplementFilterAnalysisOverview">General overview for ensemble filters</a></li>
     15<ol>
     16<li><a href="ImplementAnalysisGlobal">Implementation for Global Filters</a></li>
     17<li><a href="ImplementAnalysisLocal">Implementation for Local Filters</a></li>
     18<li><a href="ImplementAnalysislenkfOmi">Implementation for LEnKF</a></li>
     19</ol>
     20<li>General overview for 3D-Var methods</li>
     21<ol>
     22<li><a href="ImplementAnalysis_3DVar">Implementation for 3D-Var</a></li>
     23<li><a href="ImplementAnalysis_3DEnVar">Implementation for 3D Ensemble Var</a></li>
     24<li><a href="ImplementAnalysis_Hyb3DVar">Implementation for Hybrid 3D-Var</a></li>
     25</ol>
     26<li><a href="Porting_to_OMI">Porting an existing implemention to OMI</a></li>
     27<li><a href="OMI_use_global_obs">Using domain-limited observations</a></li>
     28</ol>
     29</div>
     30}}}
     31
     32{{{
     33#!html
     34<div class="wiki-toc">
     35<h4>Implementation Guide</h4>
     36<ol><li><a href="ImplementationGuide">Main page</a></li>
     37<li><a href="AdaptParallelization">Adaptation of the parallelization</a></li>
     38<li><a href="InitPdaf">Initialization of PDAF</a></li>
     39<li><a href="ModifyModelforEnsembleIntegration">Modifications for ensemble integration</a></li>
     40<li><a href="PDAF_OMI_Overview">PDAF-OMI Overview</a></li>
     41</div>
     42}}}
     43
     44The 3D-Var methods were added in PDAF V2.0.
     45
     46For the analysis step of ensemble filters several routines need to be implemented. We prove a conceptional overview here. The detailed interfaces are then described on the following pages.
     47
     48[[Image(//pics/Analysis_3DVars_web.png)]]
     49[[BR]]'''Figure 1:''' Required routines for the analysis step of 3D-Var methods. There are four groups of routines: The interface to the model (orange), the observation module (red), state localization in case of Ensemble or Hybrid Var using the LESTKF (purple), and handling of covariances (blue). The routine marked in yellow are additions compared to what is required for ensemble filters.
     50
     51Figure 1 gives an overview of the different routines that might need to be provided to the analysis step of an a 3D-Var method. The actual routines depend on the chosen 3D-Var method as wil be described after discussing the groups of subroutines.
     52
     53The routines are organized in four groups:
     54
     55=== Model Interface ===
     56 The model Interface consists of the routines `collect_state_pdaf` and `distribute_state_pdaf`. These routine perform the concersion between model fields and state vector. The routines have been discussed in the context of the [ModifyModelforEnsembleIntegration modification of the model for the ensemble integration].
     57
     58=== OMI Observation Module ===
     59 The observation module performs all observation-related operations. In case of OMI, one needs the following routines:
     60  * `init_dim_obs_pdafomi`: For each observation type that is assimilation this routine reads the observations and initialized observation values, coordinates, and errors. In addition indices are specified that link the state vector to the observations so that the observation operator is prepared
     61  * `obs_op_pdafomi`: For each observation type there is one routine providing the observation operator. For this, OMI provides different observation operators
     62  * `init_dim_obs_l_pdafomi`: This routine initializes the local observations of each observation type. This is only required if the LESTKF is applied to transform the ensemble perturbations. With OMI this is mainly a single subroutine call, while OMI does the actual initialization
     63  * `obs_op_lin_pdafomi`: This routine applied the linearized observation operator for each observation type during the iterative optimization. So far OMI only provised linear observation operators. For these `obs_op_lin_pdafomi` can call the same operator at `obs_op_pdafomi`.
     64  * `obs_op_adj_pdafomi`: This routine applied for each observation type the adjoint observation operator. This is applied to the observation vector and returns a state vector. OMI provides the adjoints of the provided forward operators.
     65
     66=== Localization ===
     67 These routines are only required for 3D-Var variants transforming the ensemble perturbations with the LESTKF. They handle the initialization of the state vector for a local analysis. These routines are
     68  * `init_n_domain`: This routine sets the number of local analysis domains
     69  * `init_dim_l`: This routine determines the state vector size for the local analysis domain and initializes the index information to fill a local state vector
     70  * `g2l_state`: This routine performs the transformation from a global to the local state vector. It selects elements of the global state vector and fill the local vector
     71  * `l2g_state`: This routine performns the back-ttransformation from local to global state vector.
     72
     73=== Covariances ===
     74
     75 The covariance routines perform the so-called control vector transformation (cvt). The 3D-Vars are implemented in incremental form and transform from the state space (state vector increment '''dx''') to the control space (control vector '''v''') using a square-root '''L''' of the background covariance matrix '''B''' = '''L''' '''L'''^T^.
     76 * `cvt_pdaf`: This routine performs the transformation '''x''' = '''L''' '''v'''.
     77 * `cvt_adj_pdaf`: This routine performsn the adjoint transformation '''y''' = '''L''' '''x'''
     78 * `cvt_ens_pdaf`: This routine performs the transformation '''x''' = '''Z''' '''v''' using an ensemble-represented matrix square root '''Z''' with '''Z''' '''Z'''^T^ = '''B'''. For this operation the routine is provided with the array holding the state ensemble.
     79 * `cvt_adj_ens_pdaf`: This routine performsn the adjoint transformation '''y''' = '''Z''' '''x''' using an ensemble-represented matrix square root '''Z''' with '''Z''' '''Z'''^T^ = '''B'''. For this operation the routine is provided with the array holding the state ensemble.
     80
     81== 3D-Var Methods in PDAF ==
     82
     83PDAF provides 3 different variants of 3D-Var. For those methods using en ensemble to represent covariances, the transformation of ensemble perturbations can be cmoputed using the global ESTKF or the localized LESTKF filters. The methods are
     84 * '''3D-Var:''' This variant uses parameterized covariances. It is run in PDAF with an ensemble size of one. The functionality in `cvt_pdaf` and `cvt_adj_pdaf` is coded by the user according to the particular problem, e.g. by using variable transformations for balances or using decorrelation lengths or EOFs to propagate increments.
     85 * '''3D Ensemble Var:''' The ensemble variational method represents the covariance by an ensemble. Thus the functionality in `cvt_ens_pdaf` and `cvt_adj_ens_pdaf` is, in its simplest form, simply given by the scaled ensemble perturbations. In addition localization can be applied. In this case the number of columns of the ensemble array is multiplied and tapering is applied. The transformation of the ensemble transformations can be performed in two ways
     86  * '''ESTKF:''': In this case the ensemble perturbations are transformed by the global ESTKF method. Adapt from using the ensemble variances of the cvt-routines, the interface for this 3D-Var method is identical to that of the parameterized 3D-Var.
     87  * '''LESTKF:''': In this case the ensemble perturbations are transformed by the local ESTKF method. In this case, the call to the assimilation routine also specifies the routines needed to apply the localization.
     88 * ''' Hybrid 3D-Var:''' The hybrid 3D-Var implementation represents the covariance matrix by a combination of a parameterized with an ensemble part. Thus mathematically the columns are concatenated as '''B'''^1/2^ = ['''L''' '''Z''']. In practive this variant call both `cvt_pdaf` and `cvt_ens_pdaf` (and likewise both adjoint variants) one after the other and each routine does its part of the covariance operation. As for the 3D Ensemble Var, the transformation of the ensemble transformations can be performed in two ways
     89  * '''ESTKF:''': In this case the ensemble perturbations are transformed by the global ESTKF method. Compared to the interface of the parameterized 3D-Var, the call to the assimilation routine includes all cvt routines, both for the parameterized and the ensemble transformatiob.
     90  * '''LESTKF:''': In this case the ensemble perturbations are transformed by the local ESTKF method. In this case, the call to the assimilation routine also specifies the routines needed to apply the localization.
     91
     92'''Note on ''3D Ensemble Var'' vs. ''Hybrid 3D-Var''''': The '''hybrid 3D-Var''' implemented provides a clear separation between the parameterized and the ensemble parts, which should make the combined use easy. However, this scheme might be to restrictive depending on how one likes to combine the ensemble information with the parameterized covariance operations. To this end one can base a more advanced hybrid implementation on '''3D Ensemble Var''' variant. In particular it is important to note that the routines `cvt_ens_pdaf` and `cvt_adj_ens_pdaf` are not restricted to using the ensemble-represented covariances. Also the dimension of the control vector can be freely specified and is not restrictired to a multiple of the ensemble size. This allows to apply any combination of parameterized and ensemble covariance operation.
     93
     94== Code examples ==
     95
     96The different 3D-Var variants are demonstrated in the tutorial code in the PDAF package in the sub-directories of
     97{{{
     98   tutorial/variational/
     99}}}
     100These tutorial implementations are analogous to the tutorials for the ensemble filters.
     101
     102
     103
     104== Documention of the required implementations ==
     105
     106For the application of the 3D-Var methods there are separate routines (added with PDAF 2.0):
     107 * [wiki:ImplementAnalysis_3DVar Implementation of the analysis for 3D-Var with parameterized background covariance matrix]
     108 * [wiki:ImplementAnalysis_3DEnVar Implementation of the analysis for 3D Ensemble Var ]
     109 * [wiki:ImplementAnalysis_Hyb3DVar Implementation of the analysis for hybrid 3D-Var]
     110