Project

EarthSciModels

Browsable catalog of .esm Earth-science model components.

Contents

WRFPerturbationCoriolis

WRF-ARW's perturbation Coriolis force (pert_coriolis = .true.), SUBROUTINE perturbation_coriolis of dyn_em/module_big_step_utilities_em.F:3854-4171, written as instantaneous decoupled tendencies of a single column on the EarthSciDiscretizations column_nonuniform_1d grid. The horizontal Coriolis terms act on the wind MINUS the base-state (initial-sounding) wind interpolated to the current layer height, so a base wind (u_b, v_b) is in geostrophic balance with an implied large-scale pressure gradient that the column never computes: du/dt = f (v - v_b) - e cos(alpha) w, dv/dt = -f (u - u_b) + e sin(alpha) w, and at the interior interfaces dw/dt = e (cos(alpha) u' - sin(alpha) v') with u' = u - u_b, v' = v - v_b carried onto the interface. In the em_scm_xy reference column (u_b, v_b) = (3, -9) m/s at every level, the geostrophic wind of the case; plain Coriolis on the total wind (pert_coriolis = .false.) gives a different trajectory. f = 2 Omega sin(lat) and e = 2 Omega cos(lat) are consumer-supplied, as are sin/cos of the grid rotation alpha. Discretization as in WRF for a horizontally uniform column: w enters the u and v equations as the arithmetic mean of the two bounding interfaces (0.25 times the four neighbouring rw), u' and v' enter the w equation through the linear-interpolation weights w_above/w_below (WRF fnm/fnp, eta-based; consumer-supplied geometry) and only on the interior interfaces 2..NLEV (kts+1..ktf) -- the surface and top interfaces get no Coriolis term. At each layer k, WRF interpolates the base wind between z_base[k] and the immediate base level in the direction of the displacement. With increasing base heights, at most one of WRF's two adjacent-level weights is nonzero. A displacement past the selected neighbor saturates at that neighbor's wind. At either boundary layer, an outward displacement leaves its base wind unchanged. Decoupling: in the idealized Cartesian column every map factor is 1 and the hybrid coefficients are c1 = 1, c2 = 0 (hybrid_opt = 0), so the coupling masses of the u, v and w points are all the column dry mass and cancel; the general map-projection / hybrid form is NOT transcribed. Consumer-supplied column fields are rewrite-target ops input_<name>.

.esm schema
1.1.0
Source
components/atmospheric_dynamics/wrf_arw/perturbation_coriolis.esm

Description

WRF-ARW’s perturbation Coriolis force (pert_coriolis = .true.), SUBROUTINE perturbation_coriolis of dyn_em/module_big_step_utilities_em.F:3854-4171, written as instantaneous decoupled tendencies of a single column on the EarthSciDiscretizations column_nonuniform_1d grid. The horizontal Coriolis terms act on the wind MINUS the base-state (initial-sounding) wind interpolated to the current layer height, so a base wind (u_b, v_b) is in geostrophic balance with an implied large-scale pressure gradient that the column never computes: du/dt = f (v - v_b) - e cos(alpha) w, dv/dt = -f (u - u_b) + e sin(alpha) w, and at the interior interfaces dw/dt = e (cos(alpha) u’ - sin(alpha) v’) with u’ = u - u_b, v’ = v - v_b carried onto the interface. In the em_scm_xy reference column (u_b, v_b) = (3, -9) m/s at every level, the geostrophic wind of the case; plain Coriolis on the total wind (pert_coriolis = .false.) gives a different trajectory. f = 2 Omega sin(lat) and e = 2 Omega cos(lat) are consumer-supplied, as are sin/cos of the grid rotation alpha. Discretization as in WRF for a horizontally uniform column: w enters the u and v equations as the arithmetic mean of the two bounding interfaces (0.25 times the four neighbouring rw), u’ and v’ enter the w equation through the linear-interpolation weights w_above/w_below (WRF fnm/fnp, eta-based; consumer-supplied geometry) and only on the interior interfaces 2..NLEV (kts+1..ktf) – the surface and top interfaces get no Coriolis term. At each layer k, WRF interpolates the base wind between z_base

\[k\]

and the immediate base level in the direction of the displacement. With increasing base heights, at most one of WRF’s two adjacent-level weights is nonzero. A displacement past the selected neighbor saturates at that neighbor’s wind. At either boundary layer, an outward displacement leaves its base wind unchanged. Decoupling: in the idealized Cartesian column every map factor is 1 and the hybrid coefficients are c1 = 1, c2 = 0 (hybrid_opt = 0), so the coupling masses of the u, v and w points are all the column dry mass and cancel; the general map-projection / hybrid form is NOT transcribed. Consumer-supplied column fields are rewrite-target ops input_<name>.

Reference

  • Skamarock, W. C., et al. (2021). A Description of the Advanced Research WRF Model Version 4.3. NCAR/TN-556+STR, section 2.3 (Coriolis terms) and the pert_coriolis option.
  • WRF v4.8.0 dyn_em/module_big_step_utilities_em.F:3854-4171 (perturbation_coriolis), called from dyn_em/module_em.F:747 (rk_tendency).

Parameters

NameUnitsDefaultDescription
ze_inm0.0Coupling target (assembly input path): a shaped parameter that receives the interface heights, from the column geometry’s z_w through a document-level coupling.variable_map (param_to_var) when an assembly’s mount-edge template library lowers input_ze to this parameter. Unused in the component’s own inline tests, which lower input_ze to a dumped profile.
w_above_in10.0Coupling target (assembly input path): a shaped parameter that receives the interface interpolation weight of the layer above (WRF fnm), from the column geometry through a document-level coupling.variable_map (param_to_var) when an assembly’s mount-edge template library lowers input_w_above to this parameter. Unused in the component’s own inline tests, which lower input_w_above to a dumped profile.
w_below_in10.0Coupling target (assembly input path): a shaped parameter that receives the interface interpolation weight of the layer below (WRF fnp), from the column geometry through a document-level coupling.variable_map (param_to_var) when an assembly’s mount-edge template library lowers input_w_below to this parameter. Unused in the component’s own inline tests, which lower input_w_below to a dumped profile.
u_inm/s0.0Coupling target (assembly input path): a shaped parameter that receives the layer zonal wind u from the EqWeather-SCM state document’s ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level coupling.variable_map (param_to_var), when that document’s mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers input_u to it. Unused in the component’s own inline tests, which lower input_u to a dumped profile instead.
v_inm/s0.0Coupling target (assembly input path): a shaped parameter that receives the layer meridional wind v from the EqWeather-SCM state document’s ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level coupling.variable_map (param_to_var), when that document’s mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers input_v to it. Unused in the component’s own inline tests, which lower input_v to a dumped profile instead.
w_inm/s0.0Coupling target (assembly input path): a shaped parameter that receives the interface vertical velocity w from the EqWeather-SCM state document’s ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level coupling.variable_map (param_to_var), when that document’s mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers input_w to it. Unused in the component’s own inline tests, which lower input_w to a dumped profile instead.
f1/s8.899e-05Coriolis parameter 2 Omega sin(lat) (WRF f); default the em_scm_xy column at 37.6 N.
e1/s0.00011554Horizontal Coriolis parameter 2 Omega cos(lat) (WRF e).
sina10.0Sine of the grid rotation relative to true north (WRF sina).
cosa11.0Cosine of the grid rotation (WRF cosa).

Observed

NameUnitsDefaultDescription
zemInterface heights, (phb + ph)/g, through input_ze.
um/sZonal wind on the layers, through input_u.
vm/sMeridional wind on the layers, through input_v.
wm/sVertical velocity on the interfaces, through input_w.
u_basem/sBase-state zonal wind on the base heights (WRF u_base), through input_u_base.
v_basem/sBase-state meridional wind (WRF v_base), through input_v_base.
z_basemStrictly increasing base-state layer heights (WRF z_base), through input_z_base.
w_above1Interpolation weight of the layer above each interior interface (WRF fnm), through input_w_above.
w_below1Interpolation weight of the layer below each interior interface (WRF fnp), through input_w_below.
zcmCurrent layer-centre heights.
zc_bracket1Lower index of the base-level pair for layer k: k-1 for downward displacement, k for upward displacement, held to \[1, NLEV-1\].
zc_weight1Weight of the upper base level within the selected adjacent pair, held to \[0, 1\].
u_bm/sBase-state zonal wind at the current layer heights.
v_bm/sBase-state meridional wind at the current layer heights.
u_pm/sPerturbation zonal wind u - u_b.
v_pm/sPerturbation meridional wind v - v_b.
w_cm/sVertical velocity at the layers, the mean of the two bounding interfaces.
u_p_wm/sPerturbation zonal wind on the interior interfaces; 0 on the faces.
v_p_wm/sPerturbation meridional wind on the interior interfaces; 0 on the faces.
du_dtm/s^2Coriolis tendency of u.
dv_dtm/s^2Coriolis tendency of v.
dw_dtm/s^2Coriolis tendency of w; 0 on the surface and top interfaces.

Observed expressions

$$ ze = \mathrm{input_ze}\left(\right) $$

Interface heights, (phb + ph)/g, through input_ze.

$$ u = \mathrm{input_u}\left(\right) $$

Zonal wind on the layers, through input_u.

$$ v = \mathrm{input_v}\left(\right) $$

Meridional wind on the layers, through input_v.

$$ w = \mathrm{input_w}\left(\right) $$

Vertical velocity on the interfaces, through input_w.

$$ u_{base} = \mathrm{input_u_base}\left(\right) $$

Base-state zonal wind on the base heights (WRF u_base), through input_u_base.

$$ v_{base} = \mathrm{input_v_base}\left(\right) $$

Base-state meridional wind (WRF v_base), through input_v_base.

$$ z_{base} = \mathrm{input_z_base}\left(\right) $$

Strictly increasing base-state layer heights (WRF z_base), through input_z_base.

$$ w_{above} = \mathrm{input_w_above}\left(\right) $$

Interpolation weight of the layer above each interior interface (WRF fnm), through input_w_above.

$$ w_{below} = \mathrm{input_w_below}\left(\right) $$

Interpolation weight of the layer below each interior interface (WRF fnp), through input_w_below.

$$ zc = \mathrm{column_cell_center}\left(ze=ze\right) $$

Current layer-centre heights.

$$ zc_{bracket} = \mathrm{faq}\left(\right) $$

Lower index of the base-level pair for layer k: k-1 for downward displacement, k for upward displacement, held to \[1, NLEV-1\].

$$ zc_{weight} = \mathrm{faq}\left(\right) $$

Weight of the upper base level within the selected adjacent pair, held to \[0, 1\].

$$ u_{b} = \mathrm{faq}\left(\right) $$

Base-state zonal wind at the current layer heights.

$$ v_{b} = \mathrm{faq}\left(\right) $$

Base-state meridional wind at the current layer heights.

$$ u_{p} = u - u_{b} $$

Perturbation zonal wind u - u_b.

$$ v_{p} = v - v_{b} $$

Perturbation meridional wind v - v_b.

$$ w_{c} = \mathrm{column_cell_center}\left(ze=w\right) $$

Vertical velocity at the layers, the mean of the two bounding interfaces.

$$ u_{p\,w} = \mathrm{interpolate_to_interfaces}\left(f=u_{p}, wa=w_{above}, wb=w_{below}\right) $$

Perturbation zonal wind on the interior interfaces; 0 on the faces.

$$ v_{p\,w} = \mathrm{interpolate_to_interfaces}\left(f=v_{p}, wa=w_{above}, wb=w_{below}\right) $$

Perturbation meridional wind on the interior interfaces; 0 on the faces.

$$ du_{dt} = f \cdot v_{p} - e \cdot cosa \cdot w_{c} $$

Coriolis tendency of u.

$$ dv_{dt} = \left(-f\right) \cdot u_{p} + e \cdot sina \cdot w_{c} $$

Coriolis tendency of v.

$$ dw_{dt} = e \cdot \left(cosa \cdot u_{p\,w} - sina \cdot v_{p\,w}\right) $$

Coriolis tendency of w; 0 on the surface and top interfaces.

Expression Templates

coriolis_base_wind

Parameters: wind, i_lo, weight

$$ \left(1 - weight\right) \cdot \mathrm{index}\left(wind, i_{lo}\right) + weight \cdot \mathrm{index}\left(wind, i_{lo} + 1\right) $$

Raw .esm

Raw .esm JSON (this component)
{
  "expression_templates": {
    "coriolis_base_wind": {
      "params": [
        "wind",
        "i_lo",
        "weight"
      ],
      "description": "Blend the base wind at the selected pair of levels with the upper-level weight.",
      "body": {
        "op": "+",
        "args": [
          {
            "op": "*",
            "args": [
              {
                "op": "-",
                "args": [
                  1,
                  "weight"
                ]
              },
              {
                "op": "index",
                "args": [
                  "wind",
                  "i_lo"
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "weight",
              {
                "op": "index",
                "args": [
                  "wind",
                  {
                    "op": "+",
                    "args": [
                      "i_lo",
                      1
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "expression_template_imports": [
    {
      "ref": "${ESD_ROOT}/grids/column_nonuniform_1d/grid.esm",
      "bindings": {
        "NLEV": "NLEV"
      }
    },
    {
      "ref": "./column_staggering.esm"
    },
    {
      "ref": "../../../lib/table_interp.esm"
    }
  ],
  "variables": {
    "ze_in": {
      "type": "parameter",
      "units": "m",
      "shape": [
        "lev_nodes"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the interface heights, from the column geometry's z_w through a document-level `coupling.variable_map` (`param_to_var`) when an assembly's mount-edge template library lowers `input_ze` to this parameter. Unused in the component's own inline tests, which lower `input_ze` to a dumped profile."
    },
    "w_above_in": {
      "type": "parameter",
      "units": "1",
      "shape": [
        "lev_nodes"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the interface interpolation weight of the layer above (WRF fnm), from the column geometry through a document-level `coupling.variable_map` (`param_to_var`) when an assembly's mount-edge template library lowers `input_w_above` to this parameter. Unused in the component's own inline tests, which lower `input_w_above` to a dumped profile."
    },
    "w_below_in": {
      "type": "parameter",
      "units": "1",
      "shape": [
        "lev_nodes"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the interface interpolation weight of the layer below (WRF fnp), from the column geometry through a document-level `coupling.variable_map` (`param_to_var`) when an assembly's mount-edge template library lowers `input_w_below` to this parameter. Unused in the component's own inline tests, which lower `input_w_below` to a dumped profile."
    },
    "u_in": {
      "type": "parameter",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the layer zonal wind u from the EqWeather-SCM state document's ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level `coupling.variable_map` (`param_to_var`), when that document's mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers `input_u` to it. Unused in the component's own inline tests, which lower `input_u` to a dumped profile instead."
    },
    "v_in": {
      "type": "parameter",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the layer meridional wind v from the EqWeather-SCM state document's ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level `coupling.variable_map` (`param_to_var`), when that document's mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers `input_v` to it. Unused in the component's own inline tests, which lower `input_v` to a dumped profile instead."
    },
    "w_in": {
      "type": "parameter",
      "units": "m/s",
      "shape": [
        "lev_nodes"
      ],
      "default": 0.0,
      "description": "Coupling target (assembly input path): a shaped parameter that receives the interface vertical velocity w from the EqWeather-SCM state document's ODE state (couplings/eqweather_scm_dynamics.esm) through a document-level `coupling.variable_map` (`param_to_var`), when that document's mount-edge library couplings/tests/scmstate_couple_cor_inputs.esm lowers `input_w` to it. Unused in the component's own inline tests, which lower `input_w` to a dumped profile instead."
    },
    "f": {
      "type": "parameter",
      "units": "1/s",
      "default": 8.899e-05,
      "description": "Coriolis parameter 2 Omega sin(lat) (WRF f); default the em_scm_xy column at 37.6 N."
    },
    "e": {
      "type": "parameter",
      "units": "1/s",
      "default": 0.00011554,
      "description": "Horizontal Coriolis parameter 2 Omega cos(lat) (WRF e)."
    },
    "sina": {
      "type": "parameter",
      "units": "1",
      "default": 0.0,
      "description": "Sine of the grid rotation relative to true north (WRF sina)."
    },
    "cosa": {
      "type": "parameter",
      "units": "1",
      "default": 1.0,
      "description": "Cosine of the grid rotation (WRF cosa)."
    },
    "ze": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "lev_nodes"
      ],
      "description": "Interface heights, (phb + ph)/g, through `input_ze`."
    },
    "u": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Zonal wind on the layers, through `input_u`."
    },
    "v": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Meridional wind on the layers, through `input_v`."
    },
    "w": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev_nodes"
      ],
      "description": "Vertical velocity on the interfaces, through `input_w`."
    },
    "u_base": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Base-state zonal wind on the base heights (WRF u_base), through `input_u_base`."
    },
    "v_base": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Base-state meridional wind (WRF v_base), through `input_v_base`."
    },
    "z_base": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "lev"
      ],
      "description": "Strictly increasing base-state layer heights (WRF z_base), through `input_z_base`."
    },
    "w_above": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "lev_nodes"
      ],
      "description": "Interpolation weight of the layer above each interior interface (WRF fnm), through `input_w_above`."
    },
    "w_below": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "lev_nodes"
      ],
      "description": "Interpolation weight of the layer below each interior interface (WRF fnp), through `input_w_below`."
    },
    "zc": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "lev"
      ],
      "description": "Current layer-centre heights."
    },
    "zc_bracket": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "lev"
      ],
      "description": "Lower index of the base-level pair for layer k: k-1 for downward displacement, k for upward displacement, held to [1, NLEV-1]."
    },
    "zc_weight": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "lev"
      ],
      "description": "Weight of the upper base level within the selected adjacent pair, held to [0, 1]."
    },
    "u_b": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Base-state zonal wind at the current layer heights."
    },
    "v_b": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Base-state meridional wind at the current layer heights."
    },
    "u_p": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Perturbation zonal wind u - u_b."
    },
    "v_p": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Perturbation meridional wind v - v_b."
    },
    "w_c": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev"
      ],
      "description": "Vertical velocity at the layers, the mean of the two bounding interfaces."
    },
    "u_p_w": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev_nodes"
      ],
      "description": "Perturbation zonal wind on the interior interfaces; 0 on the faces."
    },
    "v_p_w": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "lev_nodes"
      ],
      "description": "Perturbation meridional wind on the interior interfaces; 0 on the faces."
    },
    "du_dt": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "lev"
      ],
      "description": "Coriolis tendency of u."
    },
    "dv_dt": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "lev"
      ],
      "description": "Coriolis tendency of v."
    },
    "dw_dt": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "lev_nodes"
      ],
      "description": "Coriolis tendency of w; 0 on the surface and top interfaces."
    }
  },
  "equations": [
    {
      "lhs": "ze",
      "rhs": {
        "op": "input_ze",
        "args": []
      }
    },
    {
      "lhs": "u",
      "rhs": {
        "op": "input_u",
        "args": []
      }
    },
    {
      "lhs": "v",
      "rhs": {
        "op": "input_v",
        "args": []
      }
    },
    {
      "lhs": "w",
      "rhs": {
        "op": "input_w",
        "args": []
      }
    },
    {
      "lhs": "u_base",
      "rhs": {
        "op": "input_u_base",
        "args": []
      }
    },
    {
      "lhs": "v_base",
      "rhs": {
        "op": "input_v_base",
        "args": []
      }
    },
    {
      "lhs": "z_base",
      "rhs": {
        "op": "input_z_base",
        "args": []
      }
    },
    {
      "lhs": "w_above",
      "rhs": {
        "op": "input_w_above",
        "args": []
      }
    },
    {
      "lhs": "w_below",
      "rhs": {
        "op": "input_w_below",
        "args": []
      }
    },
    {
      "lhs": "zc",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "column_cell_center",
        "bindings": {
          "ze": "ze"
        }
      }
    },
    {
      "lhs": "zc_bracket",
      "rhs": {
        "op": "faq",
        "output_idx": [
          "k"
        ],
        "args": [],
        "ranges": {
          "k": {
            "from": "lev"
          }
        },
        "expr": {
          "op": "min",
          "args": [
            {
              "op": "max",
              "args": [
                1,
                {
                  "op": "ifelse",
                  "args": [
                    {
                      "op": "<",
                      "args": [
                        {
                          "op": "index",
                          "args": [
                            "zc",
                            "k"
                          ]
                        },
                        {
                          "op": "index",
                          "args": [
                            "z_base",
                            "k"
                          ]
                        }
                      ]
                    },
                    {
                      "op": "-",
                      "args": [
                        "k",
                        1
                      ]
                    },
                    "k"
                  ]
                }
              ]
            },
            {
              "op": "-",
              "args": [
                "NLEV",
                1
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "zc_weight",
      "rhs": {
        "op": "faq",
        "output_idx": [
          "k"
        ],
        "args": [],
        "ranges": {
          "k": {
            "from": "lev"
          }
        },
        "expr": {
          "op": "min",
          "args": [
            1,
            {
              "op": "max",
              "args": [
                0,
                {
                  "op": "apply_expression_template",
                  "args": [],
                  "name": "bracket_weight",
                  "bindings": {
                    "axis": "z_base",
                    "x": {
                      "op": "index",
                      "args": [
                        "zc",
                        "k"
                      ]
                    },
                    "i_lo": {
                      "op": "index",
                      "args": [
                        "zc_bracket",
                        "k"
                      ]
                    }
                  }
                }
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "u_b",
      "rhs": {
        "op": "faq",
        "output_idx": [
          "k"
        ],
        "args": [],
        "ranges": {
          "k": {
            "from": "lev"
          }
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "coriolis_base_wind",
          "bindings": {
            "wind": "u_base",
            "i_lo": {
              "op": "index",
              "args": [
                "zc_bracket",
                "k"
              ]
            },
            "weight": {
              "op": "index",
              "args": [
                "zc_weight",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "v_b",
      "rhs": {
        "op": "faq",
        "output_idx": [
          "k"
        ],
        "args": [],
        "ranges": {
          "k": {
            "from": "lev"
          }
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "coriolis_base_wind",
          "bindings": {
            "wind": "v_base",
            "i_lo": {
              "op": "index",
              "args": [
                "zc_bracket",
                "k"
              ]
            },
            "weight": {
              "op": "index",
              "args": [
                "zc_weight",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "u_p",
      "rhs": {
        "op": "-",
        "args": [
          "u",
          "u_b"
        ]
      }
    },
    {
      "lhs": "v_p",
      "rhs": {
        "op": "-",
        "args": [
          "v",
          "v_b"
        ]
      }
    },
    {
      "lhs": "w_c",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "column_cell_center",
        "bindings": {
          "ze": "w"
        }
      }
    },
    {
      "lhs": "u_p_w",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "interpolate_to_interfaces",
        "bindings": {
          "f": "u_p",
          "wa": "w_above",
          "wb": "w_below"
        }
      }
    },
    {
      "lhs": "v_p_w",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "interpolate_to_interfaces",
        "bindings": {
          "f": "v_p",
          "wa": "w_above",
          "wb": "w_below"
        }
      }
    },
    {
      "lhs": "du_dt",
      "rhs": {
        "op": "-",
        "args": [
          {
            "op": "*",
            "args": [
              "f",
              "v_p"
            ]
          },
          {
            "op": "*",
            "args": [
              "e",
              "cosa",
              "w_c"
            ]
          }
        ]
      }
    },
    {
      "lhs": "dv_dt",
      "rhs": {
        "op": "+",
        "args": [
          {
            "op": "*",
            "args": [
              {
                "op": "-",
                "args": [
                  "f"
                ]
              },
              "u_p"
            ]
          },
          {
            "op": "*",
            "args": [
              "e",
              "sina",
              "w_c"
            ]
          }
        ]
      }
    },
    {
      "lhs": "dw_dt",
      "rhs": {
        "op": "*",
        "args": [
          "e",
          {
            "op": "-",
            "args": [
              {
                "op": "*",
                "args": [
                  "cosa",
                  "u_p_w"
                ]
              },
              {
                "op": "*",
                "args": [
                  "sina",
                  "v_p_w"
                ]
              }
            ]
          }
        ]
      }
    }
  ],
  "tests": [
    {
      "id": "coriolis_adjacent_base_wind",
      "description": "Synthetic column with base heights z_base[k] = 100 k and current centers zc[k] = 260 + 90 k. Layers 5 and 45 cross beyond their immediate neighbors, so the base wind saturates at base levels 6 and 44. Layers 25 and 27 interpolate upward and downward within their adjacent pairs. Both boundary layers use only their available adjacent level.",
      "parameter_overrides": {
        "f": 0.0001,
        "e": 0.0002,
        "sina": 0.0,
        "cosa": 1.0
      },
      "expression_template_imports": [
        {
          "ref": "./tests/coriolis_adjacent_base_wind_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 1
      },
      "tolerance": {
        "abs": 1e-12
      },
      "assertions": [
        {
          "variable": "u_b",
          "time": 0,
          "coords": {
            "lev": 1
          },
          "expected": 4.0
        },
        {
          "variable": "du_dt",
          "time": 0,
          "coords": {
            "lev": 5
          },
          "expected": 0.0006
        },
        {
          "variable": "dv_dt",
          "time": 0,
          "coords": {
            "lev": 5
          },
          "expected": 0.0012
        },
        {
          "variable": "dw_dt",
          "time": 0,
          "coords": {
            "lev_nodes": 5
          },
          "expected": -0.0022
        },
        {
          "variable": "u_b",
          "time": 0,
          "coords": {
            "lev": 25
          },
          "expected": 50.2
        },
        {
          "variable": "u_b",
          "time": 0,
          "coords": {
            "lev": 27
          },
          "expected": 53.8
        },
        {
          "variable": "du_dt",
          "time": 0,
          "coords": {
            "lev": 45
          },
          "expected": 0.0044
        },
        {
          "variable": "dv_dt",
          "time": 0,
          "coords": {
            "lev": 45
          },
          "expected": 0.0088
        },
        {
          "variable": "dw_dt",
          "time": 0,
          "coords": {
            "lev_nodes": 45
          },
          "expected": -0.0174
        },
        {
          "variable": "u_b",
          "time": 0,
          "coords": {
            "lev": 59
          },
          "expected": 116.0
        }
      ]
    },
    {
      "id": "coriolis_step60",
      "description": "Reference: WRF 4.8 em_scm_xy single-column run (GNU gfortran 13.3 REAL*4 build, dt = 60 s, damp_opt = 2 dampcoef = 0.003 zdamp = 5000 m, pert_coriolis = .true., use_theta_m = 1, hybrid_opt = 0; data/eqwefic/scm_dyn, the scm_ref namelist re-run with the instrumented binary) dumped by the ctessum-claude/WRF fork, branch earthsciml-instrumented, commit 83347b2 (dyn_em/module_em.F rk_tendency, rk_step 1 of the step; module_esm_dump), merged with the same step's radiation subassembly dump and the wrfout eta grid by tools/merge_dumps.py into data/eqwefic/dumps/dyn_column/esm_dump_dyn_suite_<step>.json. The rebuilt binary reproduces the archived scm_ref radiation subassembly dumps bit for bit (all but the three B9 variables). The column is horizontally uniform (u, v identical in the two tile columns, ww = 0, all map factors 1, c1 = 1, c2 = 0). Expected tendencies are the dumped mass-coupled increments of the named routine divided by the coupling mass of their grid point (muu, muv, mut), i.e. the instantaneous decoupled rate at the time-level-n state; references are single precision, so tolerances follow the rel 1e-5 real32 convention, with absolute Linf bounds on whole profiles where values pass through zero. Routine: perturbation_coriolis (dyn_em/module_big_step_utilities_em.F:3854-4171). u_base = 3, v_base = -9 m/s at every level (the geostrophic wind of the case). The eta interpolation weights w_above/w_below are the dumped fnm/fnp. Measured residual over the three regimes (zero tolerance): Linf <= 1.2e-10 m/s^2 in du_dt (values <= 5.3e-4), <= 2.5e-11 in dv_dt (<= 2.1e-4), <= 3.1e-11 in dw_dt (<= 2.6e-4). Regime: step 60 (t = 1 h, early afternoon, convective boundary layer).",
      "parameter_overrides": {
        "f": 8.898477972252294e-05,
        "e": 0.00011554911179700866,
        "sina": 0.0,
        "cosa": 1.0
      },
      "expression_template_imports": [
        {
          "ref": "./tests/coriolis_step60_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 1
      },
      "tolerance": {
        "rel": 1e-05
      },
      "assertions": [
        {
          "variable": "du_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.00021101844333951526,
                    0.00014209558552780036,
                    0.00011828745412691645,
                    0.00010670629966122852,
                    0.00010057984734045242,
                    9.744580124431523e-05,
                    9.61172138355233e-05,
                    9.588734757390428e-05,
                    9.623281771790097e-05,
                    9.66450321547103e-05,
                    9.644769884807375e-05,
                    9.439003155539551e-05,
                    8.704664940301496e-05,
                    5.4276880014864534e-05,
                    8.639566695899946e-06,
                    1.2269515800377604e-07,
                    -3.387163825512631e-08,
                    -3.842834405651778e-08,
                    -3.7988985800153137e-08,
                    -3.757324096454393e-08,
                    -3.8905506110011725e-08,
                    -3.8655075781196403e-08,
                    -3.500221852736237e-08,
                    -3.856987477579372e-08,
                    -3.8885426330899374e-08,
                    -3.414744441948165e-08,
                    -3.958674404612848e-08,
                    -3.978036293436277e-08,
                    -3.597674871985551e-08,
                    -3.9324396856011406e-08,
                    -4.13211481850685e-08,
                    -3.4953376138965624e-08,
                    -4.116292446042459e-08,
                    -4.0819074398594475e-08,
                    -4.104738054714733e-08,
                    -4.1367564315778466e-08,
                    -4.1868533655654154e-08,
                    -4.174380168663327e-08,
                    -4.186268831328529e-08,
                    -4.1994851797981165e-08,
                    -4.327787213700974e-08,
                    -4.110352814482617e-08,
                    -4.35153457798004e-08,
                    -4.535722490966226e-08,
                    -4.6996993249386115e-08,
                    -4.6212615862717587e-08,
                    -4.356533667516509e-08,
                    -5.0540457417541084e-08,
                    -5.1869247668525275e-08,
                    -5.002938062887581e-08,
                    -5.52941483194054e-08,
                    -7.56547271046659e-08,
                    -8.710558243851367e-08,
                    -7.096928865269254e-08,
                    -6.062359075781323e-08,
                    -6.472691535587073e-08,
                    -7.02324112818265e-08,
                    -7.404553078673862e-08,
                    -7.716450560459487e-08
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1e-09
          }
        },
        {
          "variable": "du_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": 0.00021101844333951526,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    4.8737882745749305e-05,
                    2.6546716810142672e-05,
                    1.9402648636630174e-05,
                    1.6217111078182968e-05,
                    1.476158318315531e-05,
                    1.4241055903435555e-05,
                    1.4278891706017349e-05,
                    1.4655057005856893e-05,
                    1.5210771672213352e-05,
                    1.579777855354395e-05,
                    1.6229390644447393e-05,
                    1.6183626137230444e-05,
                    1.48554793791324e-05,
                    8.135445758908739e-06,
                    1.034142791633923e-06,
                    3.067907674529776e-08,
                    1.6067487643952024e-08,
                    1.568158636536176e-08,
                    1.575175103529398e-08,
                    1.6067487643952024e-08,
                    1.5523718061032737e-08,
                    1.5541259962855286e-08,
                    1.624289638142461e-08,
                    1.583945466969078e-08,
                    1.5769291468437546e-08,
                    1.6067487643952024e-08,
                    1.5892077437800456e-08,
                    1.6190273613314934e-08,
                    1.624289638142461e-08,
                    1.61201104120617e-08,
                    1.6207815515137482e-08,
                    1.6541092556939087e-08,
                    1.6190273613314934e-08,
                    1.6014864875842352e-08,
                    1.527814612230692e-08,
                    1.56640459322182e-08,
                    1.5541259962855286e-08,
                    1.4822081642463418e-08,
                    1.4611590570024722e-08,
                    1.4436181832552139e-08,
                    1.4330936296332791e-08,
                    1.4295853961366681e-08,
                    1.3839789481523178e-08,
                    1.3822249048379616e-08,
                    1.3769626280269943e-08,
                    1.3909954151455402e-08,
                    1.4541427368771487e-08,
                    1.4313394394510243e-08,
                    1.4488804600661813e-08,
                    1.5190441019231133e-08,
                    1.387487181648929e-08,
                    1.124373267666611e-08,
                    1.0770127763679046e-08,
                    7.051451661035774e-09,
                    2.6662205568649246e-09,
                    1.3506512623306448e-09,
                    1.052455545778348e-09,
                    7.71800721331797e-10,
                    6.490142471104855e-10
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2e-10
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": 4.8737882745749305e-05,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dw_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev_nodes"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0,
                    -4.9059647987913814e-05,
                    -2.989119241169541e-05,
                    -2.3152464223382355e-05,
                    -2.0125145830799484e-05,
                    -1.8834577703717867e-05,
                    -1.8516653491833746e-05,
                    -1.8782704243878007e-05,
                    -1.9386276884229134e-05,
                    -2.0127949151254705e-05,
                    -2.079056447280301e-05,
                    -2.10449537726961e-05,
                    -2.0163321520947202e-05,
                    -1.4981714523472491e-05,
                    -6.011125161018492e-06,
                    -6.994886106690771e-07,
                    -3.046355104129111e-08,
                    -2.0621850902358988e-08,
                    -2.040528537362943e-08,
                    -2.0656441229864405e-08,
                    -2.051356813799421e-08,
                    -2.017067271750574e-08,
                    -2.0621850902358988e-08,
                    -2.083240072195717e-08,
                    -2.052559955625696e-08,
                    -2.066997657541e-08,
                    -2.0754196503249274e-08,
                    -2.0827136976467214e-08,
                    -2.1054981959818103e-08,
                    -2.1018887705029844e-08,
                    -2.098880915937296e-08,
                    -2.127154748854766e-08,
                    -2.125350036115353e-08,
                    -2.0910604940665065e-08,
                    -2.032106544579016e-08,
                    -2.008645278966647e-08,
                    -2.0260908354476392e-08,
                    -1.9719494532652498e-08,
                    -1.911190791038346e-08,
                    -1.8862255981431333e-08,
                    -1.8678776852924345e-08,
                    -1.8588541215953698e-08,
                    -1.8269708631990738e-08,
                    -1.7959899611724843e-08,
                    -1.7914781793239518e-08,
                    -1.7970427102704752e-08,
                    -1.846672310604332e-08,
                    -1.8735926089672423e-08,
                    -1.8699831834884163e-08,
                    -1.9265308493233565e-08,
                    -1.8877295254259775e-08,
                    -1.6338666000818847e-08,
                    -1.4293324896150803e-08,
                    -1.1601295059859774e-08,
                    -6.34506920631947e-09,
                    -2.6183373994316656e-09,
                    -1.562580446875072e-09,
                    -1.1881025534468786e-09,
                    -9.234113516663082e-10,
                    0.0
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 3e-10
          }
        }
      ]
    },
    {
      "id": "coriolis_step900",
      "description": "Reference: WRF 4.8 em_scm_xy single-column run (GNU gfortran 13.3 REAL*4 build, dt = 60 s, damp_opt = 2 dampcoef = 0.003 zdamp = 5000 m, pert_coriolis = .true., use_theta_m = 1, hybrid_opt = 0; data/eqwefic/scm_dyn, the scm_ref namelist re-run with the instrumented binary) dumped by the ctessum-claude/WRF fork, branch earthsciml-instrumented, commit 83347b2 (dyn_em/module_em.F rk_tendency, rk_step 1 of the step; module_esm_dump), merged with the same step's radiation subassembly dump and the wrfout eta grid by tools/merge_dumps.py into data/eqwefic/dumps/dyn_column/esm_dump_dyn_suite_<step>.json. The rebuilt binary reproduces the archived scm_ref radiation subassembly dumps bit for bit (all but the three B9 variables). The column is horizontally uniform (u, v identical in the two tile columns, ww = 0, all map factors 1, c1 = 1, c2 = 0). Expected tendencies are the dumped mass-coupled increments of the named routine divided by the coupling mass of their grid point (muu, muv, mut), i.e. the instantaneous decoupled rate at the time-level-n state; references are single precision, so tolerances follow the rel 1e-5 real32 convention, with absolute Linf bounds on whole profiles where values pass through zero. Routine: perturbation_coriolis (dyn_em/module_big_step_utilities_em.F:3854-4171). u_base = 3, v_base = -9 m/s at every level (the geostrophic wind of the case). The eta interpolation weights w_above/w_below are the dumped fnm/fnp. Measured residual over the three regimes (zero tolerance): Linf <= 1.2e-10 m/s^2 in du_dt (values <= 5.3e-4), <= 2.5e-11 in dv_dt (<= 2.1e-4), <= 3.1e-11 in dw_dt (<= 2.6e-4). Regime: step 900 (t = 15 h, pre-dawn, deep stable night).",
      "parameter_overrides": {
        "f": 8.898477972252294e-05,
        "e": 0.00011554911179700866,
        "sina": 0.0,
        "cosa": 1.0
      },
      "expression_template_imports": [
        {
          "ref": "./tests/coriolis_step900_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 1
      },
      "tolerance": {
        "rel": 1e-05
      },
      "assertions": [
        {
          "variable": "du_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0004949709591824561,
                    0.00034056529571351886,
                    0.00016747027977500432,
                    -2.5601266908073565e-05,
                    -0.00019152406867397714,
                    -0.00022175140688051562,
                    -0.00020768472984159856,
                    -0.00018836280149402048,
                    -0.0001784984702573361,
                    -0.00017358924253791188,
                    -0.00016869862742254011,
                    -0.000159434519580148,
                    -0.00014179489632257765,
                    -0.00011464986309793739,
                    -7.696314181983803e-05,
                    -3.445824960358152e-05,
                    -9.352546286259777e-06,
                    -1.7470662667070123e-06,
                    -2.702171710916071e-07,
                    -6.51547356701123e-08,
                    -4.51029466419006e-08,
                    -4.393633673675171e-08,
                    -4.4965372543816055e-08,
                    -4.50402898589507e-08,
                    -4.552607599545721e-08,
                    -5.74020022764826e-08,
                    -4.713948448471965e-08,
                    -4.4760676878660663e-08,
                    -4.71464636472666e-08,
                    -5.467000087287723e-08,
                    -5.2363693136340034e-08,
                    -6.018862678897815e-08,
                    -5.260667138797454e-08,
                    -5.4247761538786835e-08,
                    -5.537443806227505e-08,
                    -5.5948967657901256e-08,
                    -5.6952339768344094e-08,
                    -5.8476805058144585e-08,
                    -6.505933615782282e-08,
                    -6.663929988918983e-08,
                    -6.54884019118455e-08,
                    -7.033450797029739e-08,
                    -7.376806795248576e-08,
                    -7.226405254890238e-08,
                    -7.053967655008665e-08,
                    -7.271402641698617e-08,
                    -8.449410083259403e-08,
                    -8.60044961776976e-08,
                    -7.949582788164125e-08,
                    -6.805317952597368e-08,
                    -6.116531006486645e-09,
                    6.322113753750276e-08,
                    7.306344864689354e-08,
                    7.268015867954243e-08,
                    7.235133907846684e-08,
                    7.234830185032141e-08,
                    7.259500467186733e-08,
                    7.179090292640134e-08,
                    7.099179468949167e-08
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1e-09
          }
        },
        {
          "variable": "du_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": 0.0004949709591824561,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    -7.65159159558841e-05,
                    -0.00017202713131634907,
                    -0.00021401522900040183,
                    -0.0001829654110100033,
                    -4.371709069262912e-05,
                    0.00012194316447179923,
                    0.00016163548708004476,
                    0.00017907737397846675,
                    0.0001812962081344837,
                    0.00017966084963853723,
                    0.00017620028889787632,
                    0.00016890020180411428,
                    0.00015452299385983556,
                    0.00013017335238578166,
                    9.185807372338128e-05,
                    4.2908013908713756e-05,
                    1.1982890289154029e-05,
                    2.239888386013122e-06,
                    2.9675737533264236e-07,
                    2.631138699219484e-08,
                    -1.4383558146518098e-09,
                    -4.876377001056095e-09,
                    -4.788672632319803e-09,
                    -3.508185030204578e-09,
                    -2.8767116293036195e-09,
                    -4.928999769165769e-09,
                    -6.560306314905148e-09,
                    -6.262110139390668e-09,
                    -8.875708111730792e-09,
                    -5.244736744993558e-09,
                    -9.998326858762377e-10,
                    1.3646840310907033e-08,
                    -7.71800721331797e-10,
                    -4.3852312877557224e-10,
                    5.665718889870947e-09,
                    -2.8767116293036195e-09,
                    5.086868440664537e-09,
                    1.231372920634264e-08,
                    1.1524387684697535e-08,
                    1.86635437144696e-08,
                    1.7523384717879326e-08,
                    1.7786498558427697e-08,
                    1.880387158565506e-08,
                    2.02422282264388e-08,
                    1.840042987392123e-08,
                    2.106665061437103e-08,
                    3.760774317131012e-08,
                    3.3204972551920074e-08,
                    3.169645124120411e-08,
                    2.166304296539999e-08,
                    -2.4995817789452996e-08,
                    -3.3117265980165304e-08,
                    -1.6365683819466505e-08,
                    -8.893249279213849e-09,
                    -5.893750762622952e-09,
                    -3.9116263747686584e-09,
                    -3.0521209175308232e-09,
                    -2.5609750206455774e-09,
                    -2.262779395885717e-09
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2e-10
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": -7.65159159558841e-05,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dw_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev_nodes"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0,
                    0.00016059464908613398,
                    0.00025030253992610555,
                    0.0002579970650361937,
                    0.00014830673301743713,
                    -4.944527900607158e-05,
                    -0.0001837950494877297,
                    -0.00022107086173790125,
                    -0.00023395935011201994,
                    -0.00023436945303492414,
                    -0.00023107568384563978,
                    -0.00022412034501077867,
                    -0.00021010345398063288,
                    -0.0001850405780005447,
                    -0.00014446792854943177,
                    -8.789582690400008e-05,
                    -3.588958833219191e-05,
                    -9.313400563014626e-06,
                    -1.662717941075967e-06,
                    -2.1195147982579178e-07,
                    -1.6374760255607107e-08,
                    4.066619372810582e-09,
                    6.274384624025795e-09,
                    5.4021067999761874e-09,
                    4.150839300649855e-09,
                    5.053195670356345e-09,
                    7.44669594100281e-09,
                    8.325741437825216e-09,
                    9.80560588414386e-09,
                    9.192003552743446e-09,
                    4.089178282053245e-09,
                    -8.092444718074017e-09,
                    -8.47613416610963e-09,
                    7.880578962103347e-10,
                    -3.34473427704539e-09,
                    -1.880285085375899e-09,
                    -1.371581681953865e-09,
                    -1.1240352511977178e-08,
                    -1.5484435304163372e-08,
                    -1.95390232587112e-08,
                    -2.350337557628838e-08,
                    -2.2922859645110537e-08,
                    -2.375001965067482e-08,
                    -2.533816686135824e-08,
                    -2.510956991436593e-08,
                    -2.5602858063138814e-08,
                    -3.7960628546269195e-08,
                    -4.601115129133393e-08,
                    -4.2150569956272996e-08,
                    -3.472568096087143e-08,
                    1.7866656120188504e-09,
                    3.76643548715489e-08,
                    3.226337601703484e-08,
                    1.6460484110729224e-08,
                    9.625134610202562e-09,
                    6.382361903161246e-09,
                    4.526821121360892e-09,
                    3.6485275881799084e-09,
                    3.134184457447209e-09,
                    0.0
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 3e-10
          }
        }
      ]
    },
    {
      "id": "coriolis_step1410",
      "description": "Reference: WRF 4.8 em_scm_xy single-column run (GNU gfortran 13.3 REAL*4 build, dt = 60 s, damp_opt = 2 dampcoef = 0.003 zdamp = 5000 m, pert_coriolis = .true., use_theta_m = 1, hybrid_opt = 0; data/eqwefic/scm_dyn, the scm_ref namelist re-run with the instrumented binary) dumped by the ctessum-claude/WRF fork, branch earthsciml-instrumented, commit 83347b2 (dyn_em/module_em.F rk_tendency, rk_step 1 of the step; module_esm_dump), merged with the same step's radiation subassembly dump and the wrfout eta grid by tools/merge_dumps.py into data/eqwefic/dumps/dyn_column/esm_dump_dyn_suite_<step>.json. The rebuilt binary reproduces the archived scm_ref radiation subassembly dumps bit for bit (all but the three B9 variables). The column is horizontally uniform (u, v identical in the two tile columns, ww = 0, all map factors 1, c1 = 1, c2 = 0). Expected tendencies are the dumped mass-coupled increments of the named routine divided by the coupling mass of their grid point (muu, muv, mut), i.e. the instantaneous decoupled rate at the time-level-n state; references are single precision, so tolerances follow the rel 1e-5 real32 convention, with absolute Linf bounds on whole profiles where values pass through zero. Routine: perturbation_coriolis (dyn_em/module_big_step_utilities_em.F:3854-4171). u_base = 3, v_base = -9 m/s at every level (the geostrophic wind of the case). The eta interpolation weights w_above/w_below are the dumped fnm/fnp. Measured residual over the three regimes (zero tolerance): Linf <= 1.2e-10 m/s^2 in du_dt (values <= 5.3e-4), <= 2.5e-11 in dv_dt (<= 2.1e-4), <= 3.1e-11 in dw_dt (<= 2.6e-4). Regime: step 1410 (t = 23.5 h, late morning of the second day).",
      "parameter_overrides": {
        "f": 8.898477972252294e-05,
        "e": 0.00011554911179700866,
        "sina": 0.0,
        "cosa": 1.0
      },
      "expression_template_imports": [
        {
          "ref": "./tests/coriolis_step1410_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 1
      },
      "tolerance": {
        "rel": 1e-05
      },
      "assertions": [
        {
          "variable": "du_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.00042535770249656956,
                    0.0003888005509220688,
                    0.0003762483406883941,
                    0.0003696508884211768,
                    0.0003655785420932732,
                    0.0003627936778336667,
                    0.0003606780491835077,
                    0.00035882966239580093,
                    0.00035690290294953055,
                    0.0003545008784190449,
                    0.00035103513213711275,
                    0.0003454145588443215,
                    0.0003350782711634441,
                    0.00031152498926420184,
                    0.0002134480198178226,
                    6.892475276009129e-05,
                    2.3517157565908365e-05,
                    6.732397406415925e-06,
                    1.465510306362993e-06,
                    2.4489644038718435e-07,
                    3.1244741394557515e-08,
                    2.971219837032769e-09,
                    9.635656226466521e-09,
                    4.154781235051372e-09,
                    4.2154611760845644e-10,
                    8.771650002472557e-09,
                    3.646007335037955e-09,
                    1.3624641228016224e-10,
                    2.8219785530742814e-09,
                    6.765158394372671e-09,
                    1.5829193009607545e-08,
                    1.7213728440228097e-08,
                    1.591176214226526e-08,
                    1.3312858303191595e-08,
                    1.4401642908811274e-08,
                    1.2791024909624418e-08,
                    1.9562287133867696e-08,
                    2.082133275710999e-08,
                    1.7779874816195638e-08,
                    2.4333608058293786e-08,
                    2.377194996531098e-08,
                    2.7869705332649197e-08,
                    2.7967472355465962e-08,
                    3.023896065057575e-08,
                    3.356257532378588e-08,
                    3.922755803831452e-08,
                    5.218254627006464e-08,
                    4.859571494877704e-08,
                    3.797524483954934e-08,
                    2.4461829608588146e-08,
                    -5.3444505752417446e-08,
                    -5.628573574965532e-08,
                    -5.973793033083269e-08,
                    -6.127786374772587e-08,
                    -6.205758542200513e-08,
                    -6.28042676937894e-08,
                    -6.341866311184288e-08,
                    -6.388317102718351e-08,
                    -6.40689824179221e-08
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1e-09
          }
        },
        {
          "variable": "du_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": 0.00042535770249656956,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    -8.528876895918975e-05,
                    -0.00011498456512258891,
                    -0.0001239024448416338,
                    -0.00012767732638440914,
                    -0.0001291988556321717,
                    -0.00012946077960775183,
                    -0.0001289101376881204,
                    -0.00012778053189026705,
                    -0.00012620335733303924,
                    -0.00012424968360411512,
                    -0.00012193824362172976,
                    -0.00011920492195796096,
                    -0.00011574823533398065,
                    -0.00011012604983114218,
                    -8.580861044806852e-05,
                    -3.286036295981439e-05,
                    -1.1921040527683421e-05,
                    -3.4351270744170965e-06,
                    -6.865518281820516e-07,
                    -3.646758417471985e-08,
                    7.972350249822962e-08,
                    9.658033606986372e-08,
                    9.391411386073494e-08,
                    1.040878529450825e-07,
                    1.0698210225375658e-07,
                    1.1322666681962721e-07,
                    1.1459486466519469e-07,
                    1.102096359476272e-07,
                    1.0712242571890507e-07,
                    1.1527896358797842e-07,
                    1.055437485503308e-07,
                    1.0742062630045651e-07,
                    1.077012849801854e-07,
                    1.1143749857861427e-07,
                    1.097535699991047e-07,
                    1.119111064289593e-07,
                    1.0619276366946943e-07,
                    1.0775389893622115e-07,
                    1.1720846704357177e-07,
                    1.0887652190570483e-07,
                    1.074557101041016e-07,
                    1.0633308713461794e-07,
                    1.0731537488952122e-07,
                    1.0645586869794388e-07,
                    1.095781627303111e-07,
                    1.0191277461340535e-07,
                    9.217755957575772e-08,
                    1.0291260427013116e-07,
                    1.0910455487996607e-07,
                    1.0845553976082744e-07,
                    6.284913289948893e-08,
                    2.064566846949364e-08,
                    1.2278647605716022e-08,
                    6.57784674804871e-09,
                    4.06949467909768e-09,
                    3.0345801172175143e-09,
                    2.2101566277760437e-09,
                    1.754092515102289e-09,
                    1.5786832268750854e-09
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2e-10
          }
        },
        {
          "variable": "dv_dt",
          "time": 0.0,
          "coords": {
            "lev": 1
          },
          "expected": -8.528876895918975e-05,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "dw_dt",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "lev_nodes"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0,
                    0.0001297891049807241,
                    0.00015502824123836162,
                    0.00016331088613596965,
                    0.0001667679457339161,
                    0.00016793610019588334,
                    0.00016775524391655764,
                    0.0001666690113815415,
                    0.000164915239667053,
                    0.00016262584124292502,
                    0.00015985956552453455,
                    0.00015658760929656055,
                    0.0001525745056721827,
                    0.00014669754285621215,
                    0.00012741060187294217,
                    7.747700369384021e-05,
                    2.924481649694726e-05,
                    1.0039057508405192e-05,
                    2.6983583622972372e-06,
                    4.74705623266059e-07,
                    -2.7142879600771222e-08,
                    -1.1433155989637799e-07,
                    -1.2370704257762843e-07,
                    -1.2847148420967869e-07,
                    -1.370165170444336e-07,
                    -1.4292121754324528e-07,
                    -1.479052325585908e-07,
                    -1.4599298901845445e-07,
                    -1.4112853622209506e-07,
                    -1.443288934799874e-07,
                    -1.4345059994680642e-07,
                    -1.3825302725729704e-07,
                    -1.3966972675773624e-07,
                    -1.422474581205311e-07,
                    -1.4362505551161635e-07,
                    -1.438957624225283e-07,
                    -1.416579186256562e-07,
                    -1.3889069242522297e-07,
                    -1.4597719778198459e-07,
                    -1.4685699524244842e-07,
                    -1.4046680821764363e-07,
                    -1.3881248820651506e-07,
                    -1.3871022115128166e-07,
                    -1.3880045678825231e-07,
                    -1.402382112706513e-07,
                    -1.373762376513989e-07,
                    -1.260945271391435e-07,
                    -1.2657653583329507e-07,
                    -1.3760333067110836e-07,
                    -1.412593778957025e-07,
                    -1.1159140438703595e-07,
                    -5.4552565301064516e-08,
                    -2.1442995198791893e-08,
                    -1.2288589828119552e-08,
                    -6.933104773911533e-09,
                    -4.620816576538651e-09,
                    -3.411659041131955e-09,
                    -2.5777313627948735e-09,
                    -2.1656552872955765e-09,
                    0.0
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 3e-10
          }
        }
      ]
    }
  ]
}