Opened 8 months ago
Closed 8 months ago
#854 closed upgrade (Done)
VERY IMPORTANT: 4D-Var Revisited
Reported by: | arango | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Release ROMS/TOMS 3.9 |
Component: | Adjoint | Version: | 3.9 |
Keywords: | Cc: |
Description (last modified by arango)
It is a significant update to ROMS 4D-Var data assimilation drivers and its associated algorithms.
- Several CPP options are renamed for clarity and consistency of how these algorithms are described in the ROMS literature available in journals and books:
- IS4DVAR is renamed to I4DVAR (Incremental 4D-Var; strong constraint, primal formulation).
- IS4DVAR_SENSITIVITY is renamed to I4DVAR_ANA_SENSITIVITY (I4D-Var Analysis Observation Impact and Observations Sensitivity).
- W4DPSAS is renamed to RBL4DVAR (Restricted B-preconditioned Lanczos 4D-Var; strong/weak constraint, dual formulation). This driver have evolved throught the years and it is no longer a PSAS algorithm. See Gürol et al. (2014) for full description of the RBLanczos methodology.
- TL_W4DPSAS is renamed to TL_RBL4DVAR (Tangent linearization of the RBL4D-Var data assimilation system)
- W4DPSAS_SENSITIVITY is renamed to RBL4DVAR_ANA_SENSITIVITY (RBL4D-Var Analysis Observation Impact and Observations Sensitivity).
- W4DPSAS_FCT_SENSITIVITY is renamed to RBL4DVAR_FCT_SENSITIVITY (RBL4D-Var Forecast Observation Impact and Observations Sensitivity).
- W4DVAR is renamed to R4DVAR (indirect Representers 4D-Var; strong/weak constraint, dual formulation). This algorithm is no longer developed due to its instability in multiple outer loops in applications with high Rossby number. It is keep for instructional usage. We do not recommend to be used in realistic applications. Use instead the RBL4D-Var algorithm, which has a more efficient minimization RBLanczos solver.
- TL_W4DVAR is renamed to TL_R4DVAR (tangent linearization of the R4D-Var data assimilation system).
- W4DVAR_SENSITIVITY is renamed to R4DVAR_ANA_SENSITIVITY (R4D-Var Analysis Observation Impact and Observations Sensitivity).
You can still use the old CPP options. ROMS will issue a warning, but it runs to completion. For example, for W4DPSAS you will get:
CHECKADJ - use caution when activating: W4DPSAS REASON: deprecated option, use instead RBL4DVAR.
- Similarly, several of the include drivers to Master/ocean_control.F have been renamed for consistency with the new CPP options:
- is4dvar_ocean.h is renamed to i4dvar_ocean.h.
- obs_sen_is4dvar.h is renamed to obs_sen_i4dvar_analysis.h.
- w4dpsas_ocean.h is renamed to rbl4dvar_ocean.h.
- tl_w4dpsas_ocean.h is renamed to tl_rbl4dvar_ocean.h.
- obs_sen_w4dpsas.h is renamed to obs_sen_rbl4dvar_analysis.h.
- obs_sen_w4dpsas_forecast.h is renamed to obs_sen_rbl4dvar_forecast.h.
- w4dvar_ocean.h is renamed to r4dvar_ocean.h.
- tl_w4dvar_ocean.h is renamed to tl_r4dvar_ocean.h.
- obs_sen_w4dvar.h is renamed to obs_sen_r4dvar_analysis.h.
- array_modes_w4dvar.h is renamed to array_modes.h.
≈
- The main 4D-Var drivers have been split into several Fortran subroutines inside of new modules: i4dvar.F, rbl4dvar.F, and r4dvar.F. Each module has generic routine names for each phase of the 4D-Var data assimilation algorithm:
- prior_error: processes background and model prior error covariance (standard deviations) and its normalization coefficients.
- background: nonlinear model trajectory vector (Xb) used to linearize the tangent linear and adjoint models.
- increment: 4D-Var data assimilation increment (δXa). It iterates over all inner loops and minimizes the cost function.
- analysis: computes analized state (Xa = Xb + δXa).
- posterior_error: computes 4D-Var posterior error covariance.
- The new 4D-Var data assimilation Fortran modules facilitate splitting the algorithm for various usage:
- Running 4D-Var with multiple executables. For example, the background phase can be computed in an atmospheric-ROMS coupled system using the ESMF/NUOPC or MCT libraries. Such a system may have a nested grid or not. Another executable with different CPP options run the increment phase. The 4D-Var system is scripted like the ECMWF IFS.
- Use a coarser-resolution grid in the increment phase and finer resolution in the background and analysis phases. The finer backgrond trajectory is interpolated to the coarser grid, and the coarser 4D-Var increment is interpolated to the finer grid. Such interpolation can be done insie or outside of ROMS susing other software like Matlab or Python.
- Development of a hybrid 4D-Var system.
- Development of complex algebraic equations of other 4D-Var algorithms.
- Comfortable interfacing with third-party data assimilation systems like Object-Oriented Prediction System (OOPS) and Joint Effort for Data Assimilation Integration (JEDI).
- The 4D-Var algorithm becomes much simpler. For example, in rbl4dvar_ocean.h, we have
! ! Compute nonlinear background state trajectory, Xb(t)|n-1. Interpolate ! the background at the observation locations, and compute the quality ! control accept/reject flag, ObsScale. The background state is used ! to linearize the tangent linear and adjoint models during the ! minimization. ! CALL background (outer, RunInterval) IF (FoundError(exit_flag, NoError, __LINE__, & & __FILE__)) RETURN ! ! Start outer loop iterations. ! OUTER_LOOP : DO my_outer=1,Nouter outer=my_outer inner=0 ! ! Compute 4D-Var data assimilation increment, dXa, by iterating over ! the inner loops, and minimizing the cost function. ! CALL increment (my_outer, RunInterval) IF (FoundError(exit_flag, NoError, __LINE__, & & __FILE__)) RETURN ! ! Compute 4D-Var data assimilation analysis, Xa = Xb + dXa. Set ! nonlinear model initial conditions for next outer loop. ! CALL analysis (my_outer, RunInterval) IF (FoundError(exit_flag, NoError, __LINE__, & & __FILE__)) RETURN END DO OUTER_LOOP #if defined POSTERIOR_ERROR_I || defined POSTERIOR_ERROR_F || \ defined POSTERIOR_EOFS ! ! Compute full (diagonal) posterior analysis error covariance matrix. ! (NOTE: Currently, this code only works for a single outer-loop). ! CALL posterior_error (RunInterval) IF (FoundError(exit_flag, NoError, __LINE__, & & __FILE__)) RETURN #endif
WARNING
- The makefile was changed to add a new library (libDRIVER.a) to the ROMS/Drivers subdirectory.
- There are small changes to lots of files. Good luck!
Change History (1)
comment:1 Changed 8 months ago by arango
- Description modified (diff)
- Resolution set to Done
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.