| Module | Source File | Description |
|---|---|---|
| m_modmet_cloud_fraction | m_modmet_cloud_fraction.f90 | Estimates cloud fraction from measured global radiation and solar geometry. Reference: KNMI WR 83-4 cloud-cover parameterization. |
| m_modmet_find_zero | m_modmet_find_zero.f90 | Finds a bracketed root using a safeguarded secant/Regula Falsi hybrid. Reference: KNMI ZEROAB safeguarded root-finding approach. |
| m_modmet_flxln2 | m_modmet_flxln2.f90 | Solves for friction velocity and returns associated Obukhov length and radiation terms. Reference: Van Ulden and Holtslag (1985); Beljaars et al. (1989). |
| m_modmet_fpsim | m_modmet_fpsim.f90 | Computes the momentum stability correction function psi_m. Reference: Beljaars and Holtslag (1991); Hicks (1976). Computes the momentum stability correction function psi_m using the Holtslag 1984 formulation |
| m_modmet_helpers | m_modmet_helpers.f90 | This module defines utility functions to check for missing values in real and integer data. -999 and -9999 are treated as missing values for both real and integer types, with a small tolerance for floating-point comparisons. |
| m_modmet_lusthov | m_modmet_lusthov.f90 | Computes near-surface turbulence and flux outputs from forcing and surface inputs. Reference: Beljaars, Holtslag, and Van Westrhenen (1989), KNMI TR-112. |
| m_modmet_obuk | m_modmet_obuk.f90 | Computes Obukhov length from friction velocity and temperature scale. Reference: OBUK routine from KNMI legacy implementation. |
| m_modmet_radiat | m_modmet_radiat.f90 | Computes incoming shortwave radiation and isothermal net radiation. Reference: Van Ulden and Holtslag (1985), JCAM 24, 1196-1207. |
| m_modmet_sunhgh | m_modmet_sunhgh.f90 | This module computes the sine of the solar elevation angle from geographic position and date-time inputs. Reference: Holtslag and Van Ulden (1983), JCAM 22, 517-529. |
| m_modmet_tst | m_modmet_tst.f90 | Computes temperature and humidity scales for day/night stability regimes. Reference: Van Ulden and Holtslag (1985), JCAM 24, 1196-1207. |
| m_modnet_z0corr | m_modnet_z0corr.f90 | Corrects ustar and Obukhov length to a target roughness length. Assumptions: wind speed at 50 m is roughness-invariant; direct temperature-effect corrections are not applied. |
| modmet | modmet.f90 | |
| modmet_constants | modmet_constants.f90 |