Vegetation-Parameters
- NoahSoilVegParameters
model
land_surface
noah
SUBROUTINE REDPRM of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2): the per-soil-type, per-vegetation-type and per-slope-type parameters Noah copies out of SOILPARM.TBL, VEGPARM.TBL and GENPARM.TBL for the grid cell it is about to run, plus the four quantities REDPRM derives from them (kdt, frzfact, frzx) and the four it selects by greenness (xlai, embrd, z0brd, alb). Each lookup is interp.linear on a constant table with a constant integer axis, the pattern anderson13_fuel_table.esm already uses: the category index lands exactly on an axis knot, so the interpolation returns the table entry unchanged, and a category outside the table clamps at the end rather than reading past it. TWO THINGS A CONSUMER MUST CHECK. (1) The vegetation table is the USGS 27-category one. WRF also ships a 20-category MODIS table (isurban = 13 instead of 1) with different rows, and the real-terrain reference run in data/eqwefic/gwdo_real uses THAT one, so this component must not be mounted for a MODIS run; the SOILPARM table is the same in both, which is why the soil half of this component is tested against seven soil types drawn from the real-terrain dumps and the vegetation half only against the idealized column. (2) The table values are the REAL32-WIDENED numbers WRF actually held, not the decimal text of the .TBL files: those tables are read into real32 arrays, so a real64 reference replay uses the widened single, and writing the decimal instead puts up to 2.3e-8 relative error into smcmax -- six times the 1e-9 tolerance these tests run at. THE BARE-SOIL OVERRIDE. REDPRM sets SHDFAC = 0 on the bare-soil category (VEGPARM.TBL's BARE, 19 for USGS, read here as par.bare like the other VEGPARM scalars) before SFLX selects xlai, embrd, z0brd and alb by greenness, so those four and every downstream user see shdfac_eff, not the driver's shdfac. The urban override REDPRM applies when vegtyp == isurban (smcmax 0.45, smcref 0.42, smcwlt 0.40, smcdry 0.40) is NOT transcribed, and neither is the fatal-error path for an out-of-range category; a consumer must not mount this on an urban cell.