NoahEvapotranspiration
Partition of Noah's potential evaporation into its three actual components -- direct soil evaporation, canopy transpiration and evaporation of intercepted canopy water -- SUBROUTINES EVAPO, DEVAP and TRANSP of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2), as called by NOPAC for snow-free ground. Direct soil evaporation edir = fx (1 - shdfac) etp, with the bare-soil efficiency fx = clamp(((smc[1] - smcdry)/(smcmax - smcdry))^fxexp, 0, 1) evaluated on TOTAL top-layer soil moisture. Canopy evaporation ec = shdfac (cmc/cmcmax)^cfactr etp drains intercepted water at the potential rate weighted by the canopy wetness fraction. Transpiration takes what is left of the canopy's share, etp1a = shdfac pc etp (1 - (cmc/cmcmax)^cfactr), and distributes it over the root zone by the Noah root-weighting rule: each root layer's share is gx max(rtdis + gx - sgx, 0), normalised to sum to one, where gx is the layer's moisture stress on UNFROZEN water, rtdis = dz/z_root its thickness fraction of the root zone and sgx the UNWEIGHTED ARITHMETIC MEAN of gx over the root layers. That mean is a per-layer count, not a depth average, and it is what makes the rule redistribute water towards layers that are wetter than the root-zone average; it is written here as the column integral of gx/dz over the masked root zone divided by nroot, which is identically the Fortran's sum over layers 1..nroot. Two quantities are evaluated on DIFFERENT moisture variables and the difference is deliberate in WRF: DEVAP reads total soil moisture smc, TRANSP reads unfrozen soil water sh2o. The canopy-drain limiter ec <= cmc/dt_canopy is a finite-sub-step clip on an otherwise continuous rate, so dt_canopy is A PARAMETER OF THE TENDENCY and not the integrator's step; it is inactive at every state of the reference set (cmc/dt is 2e4 W/m^2 against an ec of at most 121 W/m^2 there), so the tests pin the unclipped branch only and the clipped branch is untested. GATING. EVAPO calls TRANSP only 'IF (SHDFAC > 0.0)' (module_sf_noahlsm.F:1392), and a vegetation type with no root layers (nroot = 0) gives TRANSP empty loops; both must come out as ett = 0, not as the 0 x NaN an ungated 1/nroot or dz/z_root would produce. etp1a and ec are already zero for shdfac = 0, so it is enough that sgx divides by max(nroot, 1) and rtdis is zero for z_root = 0: every gxs is then zero, denom falls back to 1, and et = ett = 0 exactly. When etp <= 0 the whole routine is skipped and WRF reports dew instead: eta = etp, beta = 1 for etp < 0 and beta = 0 for etp = 0, which this component reproduces so that the dew branch is not a silent hole. Consumer-supplied column fields (ze, smc, sh2o) are rewrite-target ops `input_<name>` lowered by the consumer, in the inline tests through per-test expression_template_imports libraries generated by tools/fill_tests.py.
Description
Partition of Noah’s potential evaporation into its three actual components – direct soil evaporation, canopy transpiration and evaporation of intercepted canopy water – SUBROUTINES EVAPO, DEVAP and TRANSP of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2), as called by NOPAC for snow-free ground. Direct soil evaporation edir = fx (1 - shdfac) etp, with the bare-soil efficiency fx = clamp(((smc[1] - smcdry)/(smcmax - smcdry))^fxexp, 0, 1) evaluated on TOTAL top-layer soil moisture. Canopy evaporation ec = shdfac (cmc/cmcmax)^cfactr etp drains intercepted water at the potential rate weighted by the canopy wetness fraction. Transpiration takes what is left of the canopy’s share, etp1a = shdfac pc etp (1 - (cmc/cmcmax)^cfactr), and distributes it over the root zone by the Noah root-weighting rule: each root layer’s share is gx max(rtdis + gx - sgx, 0), normalised to sum to one, where gx is the layer’s moisture stress on UNFROZEN water, rtdis = dz/z_root its thickness fraction of the root zone and sgx the UNWEIGHTED ARITHMETIC MEAN of gx over the root layers. That mean is a per-layer count, not a depth average, and it is what makes the rule redistribute water towards layers that are wetter than the root-zone average; it is written here as the column integral of gx/dz over the masked root zone divided by nroot, which is identically the Fortran’s sum over layers 1..nroot. Two quantities are evaluated on DIFFERENT moisture variables and the difference is deliberate in WRF: DEVAP reads total soil moisture smc, TRANSP reads unfrozen soil water sh2o. The canopy-drain limiter ec <= cmc/dt_canopy is a finite-sub-step clip on an otherwise continuous rate, so dt_canopy is A PARAMETER OF THE TENDENCY and not the integrator’s step; it is inactive at every state of the reference set (cmc/dt is 2e4 W/m^2 against an ec of at most 121 W/m^2 there), so the tests pin the unclipped branch only and the clipped branch is untested. GATING. EVAPO calls TRANSP only ‘IF (SHDFAC > 0.0)’ (module_sf_noahlsm.F:1392), and a vegetation type with no root layers (nroot = 0) gives TRANSP empty loops; both must come out as ett = 0, not as the 0 x NaN an ungated 1/nroot or dz/z_root would produce. etp1a and ec are already zero for shdfac = 0, so it is enough that sgx divides by max(nroot, 1) and rtdis is zero for z_root = 0: every gxs is then zero, denom falls back to 1, and et = ett = 0 exactly. When etp <= 0 the whole routine is skipped and WRF reports dew instead: eta = etp, beta = 1 for etp < 0 and beta = 0 for etp = 0, which this component reproduces so that the dew branch is not a silent hole. Consumer-supplied column fields (ze, smc, sh2o) are rewrite-target ops input_<name> lowered by the consumer, in the inline tests through per-test expression_template_imports libraries generated by tools/fill_tests.py.
Reference
- Betts, A. K., et al. (1997). Assessment of the land surface and boundary layer models in two operational versions of the NCEP Eta model using FIFE data. Mon. Wea. Rev., 125, 2896-2916.
- Chen, F., and J. Dudhia (2001). Coupling an advanced land surface-hydrology model with the Penn State-NCAR MM5 modeling system. Part I. Mon. Wea. Rev., 129, 569-585.
- wrf-model/WRF v4.8.0 phys/module_sf_noahlsm.F SUBROUTINE EVAPO lines 1323-1421, DEVAP lines 1189-1228, TRANSP lines 4355-4458 (instrumented in ctessum-claude/WRF branch earthsciml-instrumented-chem170, commit ac6d4cc).
Parameters
| Name | Units | Default | Description |
|---|---|---|---|
sh2o_in | m^3/m^3 | 0.0 | Coupling target (assembly input path): a shaped parameter that receives the unfrozen soil water from an assembly’s ODE state through a document-level variable_map (param_to_var), when that document’s mount-edge library lowers input_sh2o to it (esm-spec 9.7.10, 10.4; couplings/noah_column.esm). Unused by this component’s own inline tests, which lower input_sh2o to dumped constants. |
smc_in | m^3/m^3 | 0.0 | Coupling target for the total soil moisture, as sh2o_in (lowered from input_smc by an assembly’s mount-edge library). |
etp | W/m^2 | 100.0 | Potential evaporation in energy units as SFLX reports it, the etp_energy of the Penman component. Negative means dew. |
shdfac | 1 | 0.5 | Green vegetation fraction, WRF’s SHDFAC. Splits the surface between the bare-soil and the canopy pathway. |
pc | 1 | 0.9 | Plant coefficient from the canopy-resistance component, which converts potential to Penman-Monteith transpiration. |
cmc | m | 0.0005 | Canopy-intercepted water content, WRF’s CMC. |
dt_canopy | s | 60.0 | Sub-step over which the canopy reservoir may be drained, which caps ec at cmc/dt_canopy. A parameter of the tendency, not the integrator’s step: prescribe it in the mounting document and couple it into every stage that needs it. Inactive throughout the reference set. |
z_root | m | 1.0 | Depth of the bottom of the root zone, |ZSOIL(NROOT)|; 0 when nroot = 0. |
nroot | 1 | 3.0 | Number of soil layers in the root zone, VEGPARM.TBL NROTBL, carried as a real count because it divides the UNWEIGHTED mean sgx. Zero for USGS categories 16 (water), 26 and 27; the consumer then passes z_root = 0, and every root-zone quantity is zero, as in WRF. |
smcmax | m^3/m^3 | 0.476 | Soil porosity (saturation moisture) of the soil type, SOILPARM.TBL MAXSMC. |
smcdry | m^3/m^3 | 0.084 | Air-dry soil moisture of the soil type, SOILPARM.TBL DRYSMC, at which direct soil evaporation ceases. |
smcwlt | m^3/m^3 | 0.084 | Soil wilting point, SOILPARM.TBL WLTSMC. |
smcref | m^3/m^3 | 0.36 | Soil reference moisture (field capacity), SOILPARM.TBL REFSMC. |
Observed
| Name | Units | Default | Description |
|---|---|---|---|
ze | m | Soil layer interface DEPTHS below the surface, positive downward, ze[1] = 0; the negative of WRF’s ZSOIL prefixed by zero. | |
zc | m | Soil layer centre depths, from the grid’s column_cell_center template. | |
dz | m | Soil layer thicknesses, from the grid’s column_cell_thickness template. Equals WRF’s SLDPTH. | |
smc | m^3/m^3 | TOTAL volumetric soil moisture of each layer, WRF’s SMC. Only the top layer is read, by the bare-soil evaporation efficiency. | |
sh2o | m^3/m^3 | UNFROZEN volumetric soil water of each layer, WRF’s SH2O, which is what TRANSP receives as its SMC argument. | |
etp_kinematic | kg/(m^2*s) | Potential evaporation as a mass flux, etp/lvh2o; WRF’s ETP before SFLX’s energy conversion. | |
canopy_wet | 1 | Canopy wetness fraction raised to its exponent, (cmc/cmcmax)^cfactr, zero when the canopy is dry. | |
sratio | 1 | Normalised top-layer soil wetness above the air-dry value, (smc[1] - smcdry)/(smcmax - smcdry). | |
fx | 1 | Bare-soil evaporation efficiency, clamp(sratio^fxexp, 0, 1), and zero where sratio is not positive. | |
edir | W/m^2 | Direct evaporation from the bare-soil fraction, fx (1 - shdfac) etp. Zero when etp <= 0. | |
ec_raw | W/m^2 | Canopy-water evaporation before the drain limiter, shdfac canopy_wet etp. | |
ec | W/m^2 | Canopy-water evaporation, min(ec_raw, cmc rho_water lvh2o/dt_canopy): EVAPO caps the kinematic EC1 at CMC/DT in m/s, and NOPAC/SFLX convert it to energy units by EC = EC11000 then ECLVH2O, so the cap in W/m^2 carries the water density (the 1000). Until 2026-11-12 the cap omitted rho_water and was 1000x too small; no test moved when it was added, because no test state reaches the cap. Zero when etp <= 0 or the canopy is dry. | |
etp1a | W/m^2 | The share of the potential flux left for transpiration, shdfac pc etp (1 - canopy_wet). | |
gx | 1 | Per-layer moisture stress on UNFROZEN water, clamp((sh2o - smcwlt)/(smcref - smcwlt), 0, 1). | |
gx_root | 1 | gx masked to the root zone (zero where the layer centre lies below z_root). | |
sgx | 1 | UNWEIGHTED arithmetic mean of gx over the nroot root layers. Written as the column integral of gx_root/dz – which is the plain sum over the root layers – divided by max(nroot, 1): a vegetation type with NO root layers (nroot = 0, USGS 16, 26 and 27) has an empty sum, and the max keeps that 0/0 out of the column so that the transpiration comes out as the zero WRF’s empty TRANSP loops give rather than as 0 x NaN. | |
rtdis | 1 | Root distribution, each root layer’s thickness fraction of the root zone, dz/z_root; zero where z_root = 0 (a vegetation type with no root layers, for which WRF’s REDPRM loop ‘DO I = 1,NROOT’ assigns no RTDIS at all and TRANSP never reads one). | |
rtx | 1 | Root-weighting increment rtdis + gx - sgx, which is positive where the layer is wetter than the root-zone mean or holds a large share of the roots. | |
gxs | 1 | Unnormalised root-zone uptake weight, gx_root max(rtx, 0). | |
denom_raw | 1 | Sum of gxs over the root zone, the column integral of gxs/dz. | |
denom | 1 | denom_raw, replaced by 1 where it is not positive (WRF’s guard against a wholly stressed root zone, which then transpires nothing because every gxs is zero). | |
et | W/m^2 | Transpiration withdrawn from each soil layer, etp1a gxs/denom. Zero outside the root zone and zero when etp <= 0. | |
ett | W/m^2 | Total transpiration, the column integral of et/dz, i.e. the plain sum of the layer withdrawals. | |
eta | W/m^2 | Total actual evapotranspiration, edir + ec + ett where etp > 0, and etp itself (dew) where etp <= 0. | |
beta | 1 | Ratio of actual to potential evaporation, eta/etp; WRF forces beta = 1 for etp < 0 (dew is unlimited) and beta = 0 for etp = 0. | |
eta_kinematic | kg/(m^2*s) | Total evapotranspiration as a mass flux, eta/lvh2o; the surface moisture flux the atmosphere receives. | |
gx_root_density | 1/m | gx_root divided by the layer thickness, so that the column integral of it is the PLAIN SUM of gx over the root layers – the per-layer count the Fortran’s SGX takes the mean of. The division is what turns a depth integral into a layer sum; it is not a physical density. | |
gxs_density | 1/m | gxs divided by the layer thickness, so that its column integral is the plain sum of the uptake weights (the Fortran’s DENOM). | |
et_density | W/m^3 | et divided by the layer thickness, so that its column integral is the plain sum of the layer withdrawals (the Fortran’s ETT). | |
z_sfc | m | Lower boundary of the column, ze[1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the lower bound of a bottom-anchored integral (ESD #39). | |
z_top | m | Upper boundary of the column, ze[NLEV+1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the upper bound of a top-anchored integral (ESD #39). |
Observed expressions
$$ ze = \mathrm{input_ze}\left(\right) $$Soil layer interface DEPTHS below the surface, positive downward, ze[1] = 0; the negative of WRF’s ZSOIL prefixed by zero.
$$ zc = \mathrm{column_cell_center}\left(ze=ze\right) $$Soil layer centre depths, from the grid’s column_cell_center template.
$$ dz = \mathrm{column_cell_thickness}\left(ze=ze\right) $$Soil layer thicknesses, from the grid’s column_cell_thickness template. Equals WRF’s SLDPTH.
$$ smc = \mathrm{input_smc}\left(\right) $$TOTAL volumetric soil moisture of each layer, WRF’s SMC. Only the top layer is read, by the bare-soil evaporation efficiency.
$$ sh2o = \mathrm{input_sh2o}\left(\right) $$UNFROZEN volumetric soil water of each layer, WRF’s SH2O, which is what TRANSP receives as its SMC argument.
$$ etp_{kinematic} = \frac{etp}{par.lvh2o} $$Potential evaporation as a mass flux, etp/lvh2o; WRF’s ETP before SFLX’s energy conversion.
$$ canopy_{wet} = \mathrm{ifelse}\left(\mathrm{>}\left(cmc, 0.0\right), \frac{cmc}{par.cmcmax}^{par.cfactr}, 0.0\right) $$Canopy wetness fraction raised to its exponent, (cmc/cmcmax)^cfactr, zero when the canopy is dry.
$$ sratio = \frac{\mathrm{index}\left(smc, 1\right) - smcdry}{smcmax - smcdry} $$Normalised top-layer soil wetness above the air-dry value, (smc[1] - smcdry)/(smcmax - smcdry).
$$ fx = \mathrm{ifelse}\left(\mathrm{>}\left(sratio, 0.0\right), \mathrm{max}\left(\mathrm{min}\left(sratio^{par.fxexp}, 1.0\right), 0.0\right), 0.0\right) $$Bare-soil evaporation efficiency, clamp(sratio^fxexp, 0, 1), and zero where sratio is not positive.
$$ edir = \mathrm{ifelse}\left(\mathrm{>}\left(etp, 0.0\right), fx \cdot \left(1.0 - shdfac\right) \cdot etp, 0.0\right) $$Direct evaporation from the bare-soil fraction, fx (1 - shdfac) etp. Zero when etp <= 0.
$$ ec_{raw} = \mathrm{ifelse}\left(\mathrm{and}\left(\mathrm{>}\left(etp, 0.0\right), \mathrm{>}\left(shdfac, 0.0\right)\right), shdfac \cdot canopy_{wet} \cdot etp, 0.0\right) $$Canopy-water evaporation before the drain limiter, shdfac canopy_wet etp.
$$ ec = \mathrm{min}\left(ec_{raw}, \frac{cmc \cdot par.rho_{water} \cdot par.lvh2o}{dt_{canopy}}\right) $$Canopy-water evaporation, min(ec_raw, cmc rho_water lvh2o/dt_canopy): EVAPO caps the kinematic EC1 at CMC/DT in m/s, and NOPAC/SFLX convert it to energy units by EC = EC11000 then ECLVH2O, so the cap in W/m^2 carries the water density (the 1000). Until 2026-11-12 the cap omitted rho_water and was 1000x too small; no test moved when it was added, because no test state reaches the cap. Zero when etp <= 0 or the canopy is dry.
$$ etp1a = \mathrm{ifelse}\left(\mathrm{and}\left(\mathrm{>}\left(etp, 0.0\right), \mathrm{>}\left(shdfac, 0.0\right)\right), shdfac \cdot pc \cdot etp \cdot \left(1.0 - canopy_{wet}\right), 0.0\right) $$The share of the potential flux left for transpiration, shdfac pc etp (1 - canopy_wet).
$$ gx = \mathrm{max}\left(\mathrm{min}\left(\frac{sh2o - smcwlt}{smcref - smcwlt}, 1.0\right), 0.0\right) $$Per-layer moisture stress on UNFROZEN water, clamp((sh2o - smcwlt)/(smcref - smcwlt), 0, 1).
$$ gx_{root} = \mathrm{ifelse}\left(\mathrm{<}\left(zc, z_{root}\right), gx, 0.0\right) $$gx masked to the root zone (zero where the layer centre lies below z_root).
$$ sgx = \frac{\mathrm{integral}\left(gx_{root\,density}\right)}{\mathrm{max}\left(nroot, 1.0\right)} $$UNWEIGHTED arithmetic mean of gx over the nroot root layers. Written as the column integral of gx_root/dz – which is the plain sum over the root layers – divided by max(nroot, 1): a vegetation type with NO root layers (nroot = 0, USGS 16, 26 and 27) has an empty sum, and the max keeps that 0/0 out of the column so that the transpiration comes out as the zero WRF’s empty TRANSP loops give rather than as 0 x NaN.
$$ rtdis = \mathrm{ifelse}\left(\mathrm{>}\left(z_{root}, 0.0\right), \frac{dz}{z_{root}}, 0.0\right) $$Root distribution, each root layer’s thickness fraction of the root zone, dz/z_root; zero where z_root = 0 (a vegetation type with no root layers, for which WRF’s REDPRM loop ‘DO I = 1,NROOT’ assigns no RTDIS at all and TRANSP never reads one).
$$ rtx = rtdis + gx - sgx $$Root-weighting increment rtdis + gx - sgx, which is positive where the layer is wetter than the root-zone mean or holds a large share of the roots.
$$ gxs = gx_{root} \cdot \mathrm{max}\left(rtx, 0.0\right) $$Unnormalised root-zone uptake weight, gx_root max(rtx, 0).
$$ denom_{raw} = \mathrm{integral}\left(gxs_{density}\right) $$Sum of gxs over the root zone, the column integral of gxs/dz.
$$ denom = \mathrm{ifelse}\left(\mathrm{>}\left(denom_{raw}, 0.0\right), denom_{raw}, 1.0\right) $$denom_raw, replaced by 1 where it is not positive (WRF’s guard against a wholly stressed root zone, which then transpires nothing because every gxs is zero).
$$ et = \frac{etp1a \cdot gxs}{denom} $$Transpiration withdrawn from each soil layer, etp1a gxs/denom. Zero outside the root zone and zero when etp <= 0.
$$ ett = \mathrm{integral}\left(et_{density}\right) $$Total transpiration, the column integral of et/dz, i.e. the plain sum of the layer withdrawals.
$$ eta = \mathrm{ifelse}\left(\mathrm{>}\left(etp, 0.0\right), edir + ec + ett, etp\right) $$Total actual evapotranspiration, edir + ec + ett where etp > 0, and etp itself (dew) where etp <= 0.
$$ beta = \mathrm{ifelse}\left(etp = 0.0, 0.0, \mathrm{ifelse}\left(\mathrm{<}\left(etp, 0.0\right), 1.0, \frac{eta}{etp}\right)\right) $$Ratio of actual to potential evaporation, eta/etp; WRF forces beta = 1 for etp < 0 (dew is unlimited) and beta = 0 for etp = 0.
$$ eta_{kinematic} = \frac{eta}{par.lvh2o} $$Total evapotranspiration as a mass flux, eta/lvh2o; the surface moisture flux the atmosphere receives.
$$ gx_{root\,density} = \frac{gx_{root}}{dz} $$gx_root divided by the layer thickness, so that the column integral of it is the PLAIN SUM of gx over the root layers – the per-layer count the Fortran’s SGX takes the mean of. The division is what turns a depth integral into a layer sum; it is not a physical density.
$$ gxs_{density} = \frac{gxs}{dz} $$gxs divided by the layer thickness, so that its column integral is the plain sum of the uptake weights (the Fortran’s DENOM).
$$ et_{density} = \frac{et}{dz} $$et divided by the layer thickness, so that its column integral is the plain sum of the layer withdrawals (the Fortran’s ETT).
$$ z_{sfc} = \mathrm{index}\left(ze, 1\right) $$Lower boundary of the column, ze[1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the lower bound of a bottom-anchored integral (ESD #39).
$$ z_{top} = \mathrm{index}\left(ze, NLEV + 1\right) $$Upper boundary of the column, ze[NLEV+1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the upper bound of a top-anchored integral (ESD #39).
Raw .esm
Raw .esm JSON (this component)
{
"expression_template_imports": [
{
"ref": "${ESD_ROOT}/grids/column_nonuniform_1d/grid.esm",
"bindings": {
"NLEV": "NLEV"
}
},
{
"ref": "${ESD_ROOT}/grids/column_nonuniform_1d/rules/integral_lev_whole.esm",
"bindings": {
"NLEV": "NLEV"
}
}
],
"subsystems": {
"par": {
"ref": "./noah_parameters.esm"
}
},
"variables": {
"ze": {
"type": "unknown",
"units": "m",
"shape": [
"lev_nodes"
],
"description": "Soil layer interface DEPTHS below the surface, positive downward, ze[1] = 0; the negative of WRF's ZSOIL prefixed by zero."
},
"zc": {
"type": "unknown",
"units": "m",
"shape": [
"lev"
],
"description": "Soil layer centre depths, from the grid's column_cell_center template."
},
"dz": {
"type": "unknown",
"units": "m",
"shape": [
"lev"
],
"description": "Soil layer thicknesses, from the grid's column_cell_thickness template. Equals WRF's SLDPTH."
},
"smc": {
"type": "unknown",
"units": "m^3/m^3",
"shape": [
"lev"
],
"description": "TOTAL volumetric soil moisture of each layer, WRF's SMC. Only the top layer is read, by the bare-soil evaporation efficiency."
},
"sh2o": {
"type": "unknown",
"units": "m^3/m^3",
"shape": [
"lev"
],
"description": "UNFROZEN volumetric soil water of each layer, WRF's SH2O, which is what TRANSP receives as its SMC argument."
},
"sh2o_in": {
"type": "parameter",
"units": "m^3/m^3",
"shape": [
"lev"
],
"default": 0.0,
"description": "Coupling target (assembly input path): a shaped parameter that receives the unfrozen soil water from an assembly's ODE state through a document-level variable_map (param_to_var), when that document's mount-edge library lowers `input_sh2o` to it (esm-spec 9.7.10, 10.4; couplings/noah_column.esm). Unused by this component's own inline tests, which lower `input_sh2o` to dumped constants."
},
"smc_in": {
"type": "parameter",
"units": "m^3/m^3",
"shape": [
"lev"
],
"default": 0.0,
"description": "Coupling target for the total soil moisture, as sh2o_in (lowered from `input_smc` by an assembly's mount-edge library)."
},
"etp": {
"type": "parameter",
"units": "W/m^2",
"default": 100.0,
"description": "Potential evaporation in energy units as SFLX reports it, the etp_energy of the Penman component. Negative means dew."
},
"shdfac": {
"type": "parameter",
"units": "1",
"default": 0.5,
"description": "Green vegetation fraction, WRF's SHDFAC. Splits the surface between the bare-soil and the canopy pathway."
},
"pc": {
"type": "parameter",
"units": "1",
"default": 0.9,
"description": "Plant coefficient from the canopy-resistance component, which converts potential to Penman-Monteith transpiration."
},
"cmc": {
"type": "parameter",
"units": "m",
"default": 0.0005,
"description": "Canopy-intercepted water content, WRF's CMC."
},
"dt_canopy": {
"type": "parameter",
"units": "s",
"default": 60.0,
"description": "Sub-step over which the canopy reservoir may be drained, which caps ec at cmc/dt_canopy. A parameter of the tendency, not the integrator's step: prescribe it in the mounting document and couple it into every stage that needs it. Inactive throughout the reference set."
},
"z_root": {
"type": "parameter",
"units": "m",
"default": 1.0,
"description": "Depth of the bottom of the root zone, |ZSOIL(NROOT)|; 0 when nroot = 0."
},
"nroot": {
"type": "parameter",
"units": "1",
"default": 3.0,
"description": "Number of soil layers in the root zone, VEGPARM.TBL NROTBL, carried as a real count because it divides the UNWEIGHTED mean sgx. Zero for USGS categories 16 (water), 26 and 27; the consumer then passes z_root = 0, and every root-zone quantity is zero, as in WRF."
},
"smcmax": {
"type": "parameter",
"units": "m^3/m^3",
"default": 0.476,
"description": "Soil porosity (saturation moisture) of the soil type, SOILPARM.TBL MAXSMC."
},
"smcdry": {
"type": "parameter",
"units": "m^3/m^3",
"default": 0.084,
"description": "Air-dry soil moisture of the soil type, SOILPARM.TBL DRYSMC, at which direct soil evaporation ceases."
},
"smcwlt": {
"type": "parameter",
"units": "m^3/m^3",
"default": 0.084,
"description": "Soil wilting point, SOILPARM.TBL WLTSMC."
},
"smcref": {
"type": "parameter",
"units": "m^3/m^3",
"default": 0.36,
"description": "Soil reference moisture (field capacity), SOILPARM.TBL REFSMC."
},
"etp_kinematic": {
"type": "unknown",
"units": "kg/(m^2*s)",
"description": "Potential evaporation as a mass flux, etp/lvh2o; WRF's ETP before SFLX's energy conversion."
},
"canopy_wet": {
"type": "unknown",
"units": "1",
"description": "Canopy wetness fraction raised to its exponent, (cmc/cmcmax)^cfactr, zero when the canopy is dry."
},
"sratio": {
"type": "unknown",
"units": "1",
"description": "Normalised top-layer soil wetness above the air-dry value, (smc[1] - smcdry)/(smcmax - smcdry)."
},
"fx": {
"type": "unknown",
"units": "1",
"description": "Bare-soil evaporation efficiency, clamp(sratio^fxexp, 0, 1), and zero where sratio is not positive."
},
"edir": {
"type": "unknown",
"units": "W/m^2",
"description": "Direct evaporation from the bare-soil fraction, fx (1 - shdfac) etp. Zero when etp <= 0."
},
"ec_raw": {
"type": "unknown",
"units": "W/m^2",
"description": "Canopy-water evaporation before the drain limiter, shdfac canopy_wet etp."
},
"ec": {
"type": "unknown",
"units": "W/m^2",
"description": "Canopy-water evaporation, min(ec_raw, cmc rho_water lvh2o/dt_canopy): EVAPO caps the kinematic EC1 at CMC/DT in m/s, and NOPAC/SFLX convert it to energy units by EC = EC1*1000 then EC*LVH2O, so the cap in W/m^2 carries the water density (the 1000). Until 2026-11-12 the cap omitted rho_water and was 1000x too small; no test moved when it was added, because no test state reaches the cap. Zero when etp <= 0 or the canopy is dry."
},
"etp1a": {
"type": "unknown",
"units": "W/m^2",
"description": "The share of the potential flux left for transpiration, shdfac pc etp (1 - canopy_wet)."
},
"gx": {
"type": "unknown",
"units": "1",
"shape": [
"lev"
],
"description": "Per-layer moisture stress on UNFROZEN water, clamp((sh2o - smcwlt)/(smcref - smcwlt), 0, 1)."
},
"gx_root": {
"type": "unknown",
"units": "1",
"shape": [
"lev"
],
"description": "gx masked to the root zone (zero where the layer centre lies below z_root)."
},
"sgx": {
"type": "unknown",
"units": "1",
"description": "UNWEIGHTED arithmetic mean of gx over the nroot root layers. Written as the column integral of gx_root/dz -- which is the plain sum over the root layers -- divided by max(nroot, 1): a vegetation type with NO root layers (nroot = 0, USGS 16, 26 and 27) has an empty sum, and the max keeps that 0/0 out of the column so that the transpiration comes out as the zero WRF's empty TRANSP loops give rather than as 0 x NaN."
},
"rtdis": {
"type": "unknown",
"units": "1",
"shape": [
"lev"
],
"description": "Root distribution, each root layer's thickness fraction of the root zone, dz/z_root; zero where z_root = 0 (a vegetation type with no root layers, for which WRF's REDPRM loop 'DO I = 1,NROOT' assigns no RTDIS at all and TRANSP never reads one)."
},
"rtx": {
"type": "unknown",
"units": "1",
"shape": [
"lev"
],
"description": "Root-weighting increment rtdis + gx - sgx, which is positive where the layer is wetter than the root-zone mean or holds a large share of the roots."
},
"gxs": {
"type": "unknown",
"units": "1",
"shape": [
"lev"
],
"description": "Unnormalised root-zone uptake weight, gx_root max(rtx, 0)."
},
"denom_raw": {
"type": "unknown",
"units": "1",
"description": "Sum of gxs over the root zone, the column integral of gxs/dz."
},
"denom": {
"type": "unknown",
"units": "1",
"description": "denom_raw, replaced by 1 where it is not positive (WRF's guard against a wholly stressed root zone, which then transpires nothing because every gxs is zero)."
},
"et": {
"type": "unknown",
"units": "W/m^2",
"shape": [
"lev"
],
"description": "Transpiration withdrawn from each soil layer, etp1a gxs/denom. Zero outside the root zone and zero when etp <= 0."
},
"ett": {
"type": "unknown",
"units": "W/m^2",
"description": "Total transpiration, the column integral of et/dz, i.e. the plain sum of the layer withdrawals."
},
"eta": {
"type": "unknown",
"units": "W/m^2",
"description": "Total actual evapotranspiration, edir + ec + ett where etp > 0, and etp itself (dew) where etp <= 0."
},
"beta": {
"type": "unknown",
"units": "1",
"description": "Ratio of actual to potential evaporation, eta/etp; WRF forces beta = 1 for etp < 0 (dew is unlimited) and beta = 0 for etp = 0."
},
"eta_kinematic": {
"type": "unknown",
"units": "kg/(m^2*s)",
"description": "Total evapotranspiration as a mass flux, eta/lvh2o; the surface moisture flux the atmosphere receives."
},
"gx_root_density": {
"type": "unknown",
"units": "1/m",
"shape": [
"lev"
],
"description": "gx_root divided by the layer thickness, so that the column integral of it is the PLAIN SUM of gx over the root layers -- the per-layer count the Fortran's SGX takes the mean of. The division is what turns a depth integral into a layer sum; it is not a physical density."
},
"gxs_density": {
"type": "unknown",
"units": "1/m",
"shape": [
"lev"
],
"description": "gxs divided by the layer thickness, so that its column integral is the plain sum of the uptake weights (the Fortran's DENOM)."
},
"et_density": {
"type": "unknown",
"units": "W/m^3",
"shape": [
"lev"
],
"description": "et divided by the layer thickness, so that its column integral is the plain sum of the layer withdrawals (the Fortran's ETT)."
},
"z_sfc": {
"type": "unknown",
"units": "m",
"description": "Lower boundary of the column, ze[1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the lower bound of a bottom-anchored integral (ESD #39)."
},
"z_top": {
"type": "unknown",
"units": "m",
"description": "Upper boundary of the column, ze[NLEV+1]: the free name the EarthSciDiscretizations column_nonuniform_1d integral rules match as the upper bound of a top-anchored integral (ESD #39)."
}
},
"equations": [
{
"lhs": "ze",
"rhs": {
"op": "input_ze",
"args": []
}
},
{
"lhs": "zc",
"rhs": {
"op": "apply_expression_template",
"args": [],
"name": "column_cell_center",
"bindings": {
"ze": "ze"
}
}
},
{
"lhs": "dz",
"rhs": {
"op": "apply_expression_template",
"args": [],
"name": "column_cell_thickness",
"bindings": {
"ze": "ze"
}
}
},
{
"lhs": "smc",
"rhs": {
"op": "input_smc",
"args": []
}
},
{
"lhs": "sh2o",
"rhs": {
"op": "input_sh2o",
"args": []
}
},
{
"lhs": "etp_kinematic",
"rhs": {
"op": "/",
"args": [
"etp",
"par.lvh2o"
]
}
},
{
"lhs": "canopy_wet",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"cmc",
0.0
]
},
{
"op": "^",
"args": [
{
"op": "/",
"args": [
"cmc",
"par.cmcmax"
]
},
"par.cfactr"
]
},
0.0
]
}
},
{
"lhs": "sratio",
"rhs": {
"op": "/",
"args": [
{
"op": "-",
"args": [
{
"op": "index",
"args": [
"smc",
1
]
},
"smcdry"
]
},
{
"op": "-",
"args": [
"smcmax",
"smcdry"
]
}
]
}
},
{
"lhs": "fx",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"sratio",
0.0
]
},
{
"op": "max",
"args": [
{
"op": "min",
"args": [
{
"op": "^",
"args": [
"sratio",
"par.fxexp"
]
},
1.0
]
},
0.0
]
},
0.0
]
}
},
{
"lhs": "edir",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"etp",
0.0
]
},
{
"op": "*",
"args": [
{
"op": "*",
"args": [
"fx",
{
"op": "-",
"args": [
1.0,
"shdfac"
]
}
]
},
"etp"
]
},
0.0
]
}
},
{
"lhs": "ec_raw",
"rhs": {
"op": "ifelse",
"args": [
{
"op": "and",
"args": [
{
"op": ">",
"args": [
"etp",
0.0
]
},
{
"op": ">",
"args": [
"shdfac",
0.0
]
}
]
},
{
"op": "*",
"args": [
{
"op": "*",
"args": [
"shdfac",
"canopy_wet"
]
},
"etp"
]
},
0.0
]
}
},
{
"lhs": "ec",
"rhs": {
"op": "min",
"args": [
"ec_raw",
{
"op": "/",
"args": [
{
"op": "*",
"args": [
"cmc",
"par.rho_water",
"par.lvh2o"
]
},
"dt_canopy"
]
}
]
}
},
{
"lhs": "etp1a",
"rhs": {
"op": "ifelse",
"args": [
{
"op": "and",
"args": [
{
"op": ">",
"args": [
"etp",
0.0
]
},
{
"op": ">",
"args": [
"shdfac",
0.0
]
}
]
},
{
"op": "*",
"args": [
{
"op": "*",
"args": [
{
"op": "*",
"args": [
"shdfac",
"pc"
]
},
"etp"
]
},
{
"op": "-",
"args": [
1.0,
"canopy_wet"
]
}
]
},
0.0
]
}
},
{
"lhs": "gx",
"rhs": {
"op": "max",
"args": [
{
"op": "min",
"args": [
{
"op": "/",
"args": [
{
"op": "-",
"args": [
"sh2o",
"smcwlt"
]
},
{
"op": "-",
"args": [
"smcref",
"smcwlt"
]
}
]
},
1.0
]
},
0.0
]
}
},
{
"lhs": "gx_root",
"rhs": {
"op": "ifelse",
"args": [
{
"op": "<",
"args": [
"zc",
"z_root"
]
},
"gx",
0.0
]
}
},
{
"lhs": "gx_root_density",
"rhs": {
"op": "/",
"args": [
"gx_root",
"dz"
]
}
},
{
"lhs": "sgx",
"rhs": {
"op": "/",
"args": [
{
"op": "integral",
"args": [
"gx_root_density"
],
"var": "lev",
"lower": "z_sfc",
"upper": "z_top"
},
{
"op": "max",
"args": [
"nroot",
1.0
]
}
]
}
},
{
"lhs": "rtdis",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"z_root",
0.0
]
},
{
"op": "/",
"args": [
"dz",
"z_root"
]
},
0.0
]
}
},
{
"lhs": "rtx",
"rhs": {
"op": "-",
"args": [
{
"op": "+",
"args": [
"rtdis",
"gx"
]
},
"sgx"
]
}
},
{
"lhs": "gxs",
"rhs": {
"op": "*",
"args": [
"gx_root",
{
"op": "max",
"args": [
"rtx",
0.0
]
}
]
}
},
{
"lhs": "gxs_density",
"rhs": {
"op": "/",
"args": [
"gxs",
"dz"
]
}
},
{
"lhs": "denom_raw",
"rhs": {
"op": "integral",
"args": [
"gxs_density"
],
"var": "lev",
"lower": "z_sfc",
"upper": "z_top"
}
},
{
"lhs": "denom",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"denom_raw",
0.0
]
},
"denom_raw",
1.0
]
}
},
{
"lhs": "et",
"rhs": {
"op": "/",
"args": [
{
"op": "*",
"args": [
"etp1a",
"gxs"
]
},
"denom"
]
}
},
{
"lhs": "et_density",
"rhs": {
"op": "/",
"args": [
"et",
"dz"
]
}
},
{
"lhs": "ett",
"rhs": {
"op": "integral",
"args": [
"et_density"
],
"var": "lev",
"lower": "z_sfc",
"upper": "z_top"
}
},
{
"lhs": "eta",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"etp",
0.0
]
},
{
"op": "+",
"args": [
{
"op": "+",
"args": [
"edir",
"ec"
]
},
"ett"
]
},
"etp"
]
}
},
{
"lhs": "beta",
"rhs": {
"op": "ifelse",
"args": [
{
"op": "==",
"args": [
"etp",
0.0
]
},
0.0,
{
"op": "ifelse",
"args": [
{
"op": "<",
"args": [
"etp",
0.0
]
},
1.0,
{
"op": "/",
"args": [
"eta",
"etp"
]
}
]
}
]
}
},
{
"lhs": "eta_kinematic",
"rhs": {
"op": "/",
"args": [
"eta",
"par.lvh2o"
]
}
},
{
"lhs": "z_sfc",
"rhs": {
"op": "index",
"args": [
"ze",
1
]
}
},
{
"lhs": "z_top",
"rhs": {
"op": "index",
"args": [
"ze",
{
"op": "+",
"args": [
"NLEV",
1
]
}
]
}
}
],
"tests": [
{
"id": "chem170_scm_step1",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. pre-dawn, tiny positive etp, transpiration dominates.",
"parameter_overrides": {
"etp": 1.1795247991217812,
"shdfac": 0.5,
"pc": 0.9983367740100969,
"cmc": 0.0,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step1_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.1790657287391653,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.5887814914100734,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 0.7678472201492387,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6509801410881244,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0588781478249782,
0.17663444786169843,
0.35326889572339676,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step60",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. just after sunrise; canopy evaporation dominates.",
"parameter_overrides": {
"etp": 6.085228146909409,
"shdfac": 0.5,
"pc": 0.9774125096355708,
"cmc": 0.0004984006518498063,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step60_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 1.049336164188505,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 3.037743904512558,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.00476016404809249,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 4.091840232749155,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6724218277382642,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0006690654476320589,
0.0013492636061249162,
0.0027418349943355153,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step230",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. strong mid-morning insolation, the largest eta of the set.",
"parameter_overrides": {
"etp": 398.32075381039306,
"shdfac": 0.5,
"pc": 0.9289857097824757,
"cmc": 0.00018383044516667724,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step230_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 64.62431406974817,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 120.76098492315288,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 72.83191480695335,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 258.2172137998544,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6482645238283764,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.577322766554506,
21.711558331166405,
42.54303370923244,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step364",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. local noon, transpiration dominant.",
"parameter_overrides": {
"etp": 342.72821971617634,
"shdfac": 0.5,
"pc": 0.9183255653926149,
"cmc": 1.7001293883822655e-07,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step364_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 53.54266767794682,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 3.1599182285098832,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 154.46620937964028,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 211.16879528609698,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6161406710570033,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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": [
16.460180280247542,
46.92972233668643,
91.07630676270627,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step601",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. afternoon; ett is essentially zero while ec takes three quarters of eta.",
"parameter_overrides": {
"etp": 175.45304598609786,
"shdfac": 0.5,
"pc": 0.9050211141383581,
"cmc": 0.0005000000237487257,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step601_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 30.678776706834583,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 87.72652299304896,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 118.40529969988354,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6748546258311495,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step639",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. shallow convection.",
"parameter_overrides": {
"etp": 158.27589909302816,
"shdfac": 0.5,
"pc": 0.8985147606190831,
"cmc": 0.0004926163819618523,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step639_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 27.87296419109178,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 78.55144999859444,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.5269785009022238,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 106.95139269058843,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6757275953158651,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.07796439822449806,
0.15045249304306083,
0.2985616096346649,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step689",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. late afternoon.",
"parameter_overrides": {
"etp": 139.3510556485384,
"shdfac": 0.5,
"pc": 0.8969601398024848,
"cmc": 0.0004324734618421644,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step689_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 23.990589199279373,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 64.79999707320673,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 4.373156744084305,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 93.16374301657041,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6685542680892319,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.6068955935518935,
1.2754020508888295,
2.4908590996435827,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step918",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. night, all three components small.",
"parameter_overrides": {
"etp": 0.9313998858967502,
"shdfac": 0.5,
"pc": 0.8686188033405229,
"cmc": 0.000378655968233943,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step918_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.15186052072666764,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.405269177921512,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0524912988025861,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 0.6096209974507657,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6545212284021527,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0061952203022809325,
0.01597878134970526,
0.030317297150599904,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step1080",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. deep night.",
"parameter_overrides": {
"etp": 0.33597324879085616,
"shdfac": 0.5,
"pc": 0.8911715143401143,
"cmc": 0.0003775822988245636,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step1080_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.05385085629674085,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.14598072086361838,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.019611034374865312,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 0.21944261153522454,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6531550125641934,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.002196343728811616,
0.006023004049750961,
0.011391686596302733,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step1621",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day morning, near-peak eta.",
"parameter_overrides": {
"etp": 322.25223310635715,
"shdfac": 0.5,
"pc": 0.9291297127240808,
"cmc": 0.00015812285710126162,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step1621_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 50.003827656275234,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 90.61044303911503,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 65.51820747466692,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 206.13247817005717,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6396619076399839,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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": [
6.691639383955814,
20.209267474418112,
38.617300616292994,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step1730",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day deep convection.",
"parameter_overrides": {
"etp": 275.56436111336416,
"shdfac": 0.5,
"pc": 0.9174324991337119,
"cmc": 1.5040217476780526e-05,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step1730_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 42.20656617467408,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 23.896544158421932,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 104.48238401628902,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 170.58549434938504,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6190404799088226,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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": [
10.36646153511425,
32.264852597135516,
61.85106988403925,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step1801",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day noon, transpiration dominant.",
"parameter_overrides": {
"etp": 276.75870288782556,
"shdfac": 0.5,
"pc": 0.9141764509664252,
"cmc": 1.5646587598894257e-06,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step1801_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 42.11480590968112,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 7.740982689672649,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 119.42652030779436,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 169.28230890714812,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.611660291585341,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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": [
11.705637053949689,
36.86206632269193,
70.85881693115276,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step2101",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day afternoon, all three components comparable.",
"parameter_overrides": {
"etp": 162.15569945782954,
"shdfac": 0.5,
"pc": 0.9062744073339184,
"cmc": 0.0005000000237487257,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step2101_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 26.538493717737392,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 81.07784972891477,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 107.61634344665217,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6636605670134896,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step2134",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day shallow convection.",
"parameter_overrides": {
"etp": 128.46640000139237,
"shdfac": 0.5,
"pc": 0.8979212555029941,
"cmc": 0.0004923266242258251,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step2134_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 20.956293814792314,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 63.73840730703794,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.44428487670332356,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 85.13898599853357,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.662733492941429,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.054229344931623846,
0.13148063823753864,
0.2585748935341611,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step2400",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. second-day night.",
"parameter_overrides": {
"etp": 0.3890426222330375,
"shdfac": 0.5,
"pc": 0.8793102382173744,
"cmc": 0.0004149146843701601,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step2400_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.061265701433643405,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.17719912716467395,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0152315736971418,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 0.25369640229545914,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6521043911314539,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0016662004563263943,
0.004619740570852536,
0.008945632669962868,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "chem170_scm_step2521",
"description": "Reference: WRF 4.8 em_scm_xy single-column run at chem_opt = 170 with Noah (sf_surface_physics = 2), data/eqwefic/chem170_scm, dumped by ctessum-claude/WRF branch earthsciml-instrumented-chem170 and replayed through the real64 (-fdefault-real-8) kernels/noah_driver at ESM_DT = 0.01 s; inputs are the dumped SFLX arguments (real32 values widened), expected values are the real64 replay. EVAPO runs on the INPUT state, so apart from the canopy-drain limiter -- inactive here -- nothing depends on dt. dt_canopy is set to the replay step so that the limiter is off, as it is in WRF at dt = 60 s for these states. third-day midnight, the DEW branch: etp < 0, so edir = ec = ett = 0, eta = etp and beta = 1.",
"parameter_overrides": {
"etp": 0.0903939790520061,
"shdfac": 0.5,
"pc": 0.8920395191964817,
"cmc": 0.000414554204326123,
"dt_canopy": 0.01,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step2521_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.014123730433023923,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.04115429419927649,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.003606243995511024,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 0.05888426862781144,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.6514180396233441,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.00038495320515964974,
0.0010976682355205284,
0.0021236225548308453,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "usgs27_noroots_bare",
"description": "Reference: the dumped SFLX arguments of chem170 step 601 (data/eqwefic/dumps/chem170_wrf_pre_coag/esm_dump_noah_601.json, the state of test chem170_scm_step601) with vegtyp = 27 and shdfac = 0: a USGS category with NO root layers (NROTBL = 0) and no greenness. EVAPO skips TRANSP and the canopy term (SHDFAC > 0 fails), so ec = ett = 0 and only DEVAP runs. Replayed through the real64 kernels/noah_driver at ESM_DT = 0.01 s (data/eqwefic/noah_pr58_fixes/r64_veg27.json); etp is the replay's own (it changes with the category's albedo and emissivity). z_root = 0 because there is no root zone. Before the nroot = 0 guards this state gave NaN for et, ett and eta (0 x NaN from 1/nroot and dz/z_root).",
"parameter_overrides": {
"etp": 231.2053679936628,
"shdfac": 0.0,
"pc": 0.0,
"cmc": 0.0005000000237487257,
"dt_canopy": 0.01,
"z_root": 0.0,
"nroot": 0.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step601_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 80.8546562213702,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 80.8546562213702,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.3497092516622987,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "usgs27_noroots_green",
"description": "Reference: the dumped SFLX arguments of chem170 step 601 (data/eqwefic/dumps/chem170_wrf_pre_coag/esm_dump_noah_601.json, the state of test chem170_scm_step601) with vegtyp = 27 with shdfac = 0.3: no root layers but a nonzero greenness, so EVAPO DOES call TRANSP -- whose 'DO I = 1,NROOT' loops are empty, leaving every ET(k) = 0 -- and evaporates intercepted water at ec > 0. pc is CANRES's value for this state (see canopy_resistance.esm's test of the same name). Replayed through the real64 kernels/noah_driver at ESM_DT = 0.01 s (data/eqwefic/noah_pr58_fixes/r64_veg27_green.json); etp is the replay's own (it changes with the category's albedo and emissivity). z_root = 0 because there is no root zone. Before the nroot = 0 guards this state gave NaN for et, ett and eta (0 x NaN from 1/nroot and dz/z_root).",
"parameter_overrides": {
"etp": 224.23737136896045,
"shdfac": 0.3,
"pc": 4.3971014770321946e-08,
"cmc": 0.0005000000237487257,
"dt_canopy": 0.01,
"z_root": 0.0,
"nroot": 0.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_step601_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 54.892518335312076,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 67.27121141068814,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": 122.16372974600021,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 0.544796476163609,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
},
{
"id": "cold_nopack_dew",
"description": "Reference: the dumped SFLX arguments of cold-season case A step 101 (data/eqwefic/dumps/noahcold_wrf/caseA/esm_dump_noah_101.json) with the pack removed (sneqv = snowh = 0, prcp = 0), replayed through the real64 kernels/noah_driver at ESM_DT = 1e-6 s (data/eqwefic/noah_pr58_fixes/r64_snow_zero.json). Snow-free night over frozen ground with a DOWNWARD potential evaporation (etp < 0): NOPAC skips EVAPO and books the flux as dew, so WRF reports eta = etp, beta = 1 and zero edir, ec, ett and et -- the dew branch, which no other test of this component reaches.",
"parameter_overrides": {
"etp": -1.2985238669057368,
"shdfac": 0.5,
"pc": 9.415943371223853e-06,
"cmc": 2.2019865753009071e-07,
"dt_canopy": 1e-06,
"z_root": 1.000000037252903,
"nroot": 3.0,
"smcmax": 0.47600001096725464,
"smcdry": 0.08399999886751175,
"smcwlt": 0.08399999886751175,
"smcref": 0.36000001430511475
},
"expression_template_imports": [
{
"ref": "./tests/evap_coldA101_nopack_inputs.esm"
}
],
"time_span": {
"start": 0.0,
"end": 1.0
},
"assertions": [
{
"variable": "edir",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ec",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "ett",
"time": 0.0,
"expected": 0.0,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "eta",
"time": 0.0,
"expected": -1.2985238669057368,
"tolerance": {
"rel": 1e-09,
"abs": 1e-12
}
},
{
"variable": "beta",
"time": 0.0,
"expected": 1.0,
"tolerance": {
"rel": 1e-09
}
},
{
"variable": "et",
"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.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-11,
"rel": 0.0
}
}
]
}
]
}