Notation

This page summarizes the mathematical and code notation used in NumericalEarth.jl, following the conventions established in Breeze.jl.

How the notation works

Variable names are built by combining a base symbol with superscripts and, occasionally, a short plain-text tag.

Base symbols are single characters (often script letters) that identify the physical category of a quantity — for example, 𝒬 for heat flux, for radiative intensity, J for mass flux, and τ for kinematic momentum flux.

Superscripts refine the meaning in several ways:

  • Phase or species: (vapor), ˡ (liquid), (ice), (condensate)
  • Component: ᵃᵗ (atmosphere), ᵒᶜ (ocean), ˢⁱ (sea ice), ˡᵃ (land)
  • Interface pair: ᵃᵒ (atm–ocean), ᵃⁱ (atm–ice), ⁱᵒ (ice–ocean)
  • Direction: ˣ / ʸ (spatial), ˢʷ / ˡʷ (shortwave / longwave)
  • Process: ⁱⁿ (interface), ᶠʳᶻ (frazil)

Modifier arrows (\^downarrow) and (\^uparrow) denote downwelling and upwelling directions in radiative fluxes.

Subscripts encode radiative process ( transmitted, absorbed) and the similarity-theory scale .

For example, 𝒬ᵛ is the latent (vapor) heat flux, ℐꜜˢʷ is the downwelling shortwave radiative intensity, and τˣ is the zonal kinematic momentum flux.

In Julia code, superscripts are entered with Unicode (e.g. \scrQ<tab>𝒬, then \^v<tab>). The modifier arrows and are entered with \^downarrow<tab> and \^uparrow<tab>.

Base symbols

MathCodeTab completionMeaning
$\mathcal{Q}$𝒬\scrQHeat flux (W m⁻²)
$\mathscr{I}$\scrIRadiative intensity (W m⁻²)
$J$JMass flux (kg m⁻² s⁻¹)
$\tau$τ\tauKinematic momentum flux (m² s⁻²)
$\mathcal{L}$\scrLLatent heat (J kg⁻¹)
$M$MLayer-integrated mass per area (kg m⁻²)

Note: $\tau^x$ (τˣ) is the kinematic momentum flux (stress divided by density). The mass-weighted stress is $\rho \tau^x$ (ρτˣ, in N m⁻²).

These base symbols are combined with superscript and subscript labels (documented below) to form specific variable names.

Superscript and subscript labels

Superscripts and subscripts are used systematically to label physical quantities. Superscripts generally denote the type or phase of a quantity, while subscripts denote the component or location.

Superscript labels

LabelCodeMeaningExample
$v$water vapor$\mathcal{Q}^v$ (latent heat flux)
$T$temperature / sensible$\mathcal{Q}^T$ (sensible heat flux)
$\mathrm{rn}$ʳⁿrain$J^{\mathrm{rn}}$ (rainfall)
$\mathrm{sn}$ˢⁿsnow$J^{\mathrm{sn}}$ (snowfall)
$S$ˢsalinity$J^S$ (salinity flux)
$i$ice$\mathcal{L}^i$ (latent heat of sublimation)
$\ell$ˡliquid$\mathcal{L}^\ell$ (latent heat of vaporization)
$p$constant pressure$c^{pm}$ (moist isobaric heat capacity)
$m$mixture (moist air)$c^{pm}$ (moist isobaric heat capacity)
$d$dry (air)$c^{pd}$ (dry air heat capacity)
$D$drag$C^D$ (drag coefficient)
$\mathrm{in}$ⁱⁿinterface$T^{\mathrm{in}}$ (interface temperature)
$\mathrm{frz}$ᶠʳᶻfrazil$\mathcal{Q}^{\mathrm{frz}}$ (frazil heat flux)
$x$ˣzonal / x-direction$\tau^x$ (zonal kinematic stress)
$y$ʸmeridional / y-direction$\tau^y$ (meridional kinematic stress)
$\mathrm{at}$ᵃᵗatmosphere$\rho^{\mathrm{at}}$ (air density)
$\mathrm{oc}$ᵒᶜocean$\rho^{\mathrm{oc}}$ (ocean reference density)
$\mathrm{si}$ˢⁱsea ice$h^{\mathrm{si}}$ (sea ice thickness)
$\mathrm{la}$ˡᵃland$M^{\mathrm{la}}$ (land water mass per area)
$\mathrm{ao}$ᵃᵒatmosphere–ocean interface$\mathcal{Q}^{\mathrm{ao}}$ (atm–ocean heat flux)
$\mathrm{ai}$ᵃⁱatmosphere–ice interface$\mathcal{Q}^{\mathrm{ai}}$ (atm–ice heat flux)
$\mathrm{io}$ⁱᵒice–ocean interface$\mathcal{Q}^{\mathrm{io}}$ (ice–ocean heat flux)
$\mathrm{sw}$ˢʷshortwave$\mathscr{I}$${}^{\mathrm{sw}}$ (downwelling shortwave)
$\mathrm{lw}$ˡʷlongwave$\mathscr{I}$${}^{\mathrm{lw}}$ (downwelling longwave)

Modifier arrows

SymbolCodeTab completionMeaning
\^downarrowdownwelling
\^uparrowupwelling

Subscript labels

LabelCodeMeaningExample
$t$transmitted$\mathscr{I}_{t}^{\mathrm{sw}}$ (transmitted shortwave)
$a$absorbed$\mathscr{I}_{a}^{\mathrm{lw}}$ (absorbed longwave)
$\star$similarity theory scale$u_\star$ (friction velocity)

Atmosphere state variables

MathCodePropertyDescription
$T$TtemperatureAir temperature (K)
$p$ppressureAir pressure (Pa)
$q$qspecific humidityMass mixing ratio of water vapor (kg kg⁻¹)
$u$uzonal velocityEastward wind component (m s⁻¹)
$v$vmeridional velocityNorthward wind component (m s⁻¹)
$\mathscr{I}_\downarrow^{\mathrm{sw}}$ℐꜜˢʷdownwelling shortwaveDownwelling shortwave radiation (W m⁻²)
$\mathscr{I}_\downarrow^{\mathrm{lw}}$ℐꜜˡʷdownwelling longwaveDownwelling longwave radiation (W m⁻²)
$h_{b\ell}$h_bℓboundary layer heightAtmospheric boundary layer height (m)
$pᵛ⁺$$pᵛ⁺$saturation vapor pressureVapor pressure at saturation (Pa)
$qᵛ⁺$qᵛ⁺saturation specific humiditySpecific humidity at saturation, $q^{v+}(T)$ (kg kg⁻¹)
$qˢ$qsurface specific humiditySpecific humidity at the interface; set by the humidity model (β·qᵛ⁺ for FractionalHumidity, a vapor-flux balance for SkinHumidity) (kg kg⁻¹)

Land state variables and parameters

MathCodePropertyDescription
$T$temperaturebulk land temperaturePrognostic land-column temperature (K)
$M^{\mathrm{la}}$water_storageland waterPrognostic land water mass per area (kg m⁻²)
$M^{\mathrm{la}\!+}$maximum_water_storagemaximum land waterBucket capacity; soil-science "field capacity" (kg m⁻²)
$𝒮$saturationsurface saturationContinuous land surface saturation $\mathrm{clamp}(Mˡᵃ/Mˡᵃ⁺, 0, 1)$; the interface humidity models derive their availability $β$ from it (–)
$𝒮ᶜ$critical_saturationcritical saturationSaturation above which the surface evaporates at full efficiency, for CriticalSaturation (–)
$T^{\mathrm{deep}}$deep_temperaturedeep climatological temperaturePrescribed deep/climatological target temperature for force-restore (K)
$τ^{\mathrm{deep}}$deep_time_scaledeep-restore time scaleTime scale of surface relaxation toward $T^{\mathrm{deep}}$ (s)
$d$surface_thicknesssurface thicknessThickness of the dry surface layer through which soil vapor diffuses, for SkinHumidity (m)
$κ^q$vapor_diffusivitysoil vapor diffusivityVapor mass diffusivity in the surface soil layer, for SkinHumidity (kg m⁻¹ s⁻¹)

Ocean state variables

MathCodePropertyDescription
$T$TtemperatureOcean potential temperature (ᵒC or K)
$S$SsalinityPractical salinity (g kg⁻¹)
$u$uzonal velocityEastward ocean velocity (m s⁻¹)
$v$vmeridional velocityNorthward ocean velocity (m s⁻¹)
$\rho^{\mathrm{oc}}$ρᵒᶜreference densityOcean reference density (kg m⁻³)
$c^{\mathrm{oc}}$cᵒᶜheat capacityOcean heat capacity (J kg⁻¹ K⁻¹)

Sea ice state variables

MathCodePropertyDescription
$h^{\mathrm{si}}$hˢⁱice thicknessSea ice thickness (m)
$\aleph$ice concentrationAreal fraction of ice cover (–)
$S^{\mathrm{si}}$Sˢⁱice salinitySea ice bulk salinity (g kg⁻¹)

Radiation properties

MathCodePropertyDescription
$\sigma$σStefan–Boltzmann constant(W m⁻² K⁻⁴)
$\alpha$αalbedoSurface reflectivity (–)
$\epsilon$ϵemissivitySurface emissivity (–)

Similarity theory / surface layer

MathCodePropertyDescription
$u_\star$u★friction velocitySurface friction velocity (m s⁻¹)
$\theta_\star$θ★temperature scaleFlux characteristic temperature (K)
$q_\star$q★humidity scaleFlux characteristic specific humidity (kg kg⁻¹)
$b_\star$b★buoyancy scaleFlux characteristic buoyancy (m s⁻²)
$L_\star$L★Obukhov lengthMonin–Obukhov length scale (m)
$C^D$Cᴰdrag coefficientBulk transfer coefficient for momentum (–)
$\psi$ψstability functionIntegrated stability correction (–)
$\Psi$Ψinterface stateAggregate interface state (an AbstractInterfaceState) carried through the similarity-theory fixed-point solver compute_interface_state
$\zeta$ζstability parameter$z / L_\star$ (–)
$\ell$roughness lengthAerodynamic roughness length (m)
$\ell^\mathrm{m}$ℓᵐmomentum roughness lengthAerodynamic momentum roughness length (m)
$\ell^\mathrm{s}$ℓˢscalar roughness lengthAerodynamic scalar roughness length (m)
$\varkappa$ϰvon Kármán constant$\approx 0.4$ (–)

Note the case distinction: lowercase $\psi$ (ψ) is the stability function, while capital $\Psi$ (Ψ) is the aggregate interface-state object.

Radiative fluxes

MathCodePropertyDescription
$\mathscr{I}_\downarrow^{\mathrm{sw}}$ℐꜜˢʷdownwelling shortwaveDownwelling shortwave radiation (W m⁻²)
$\mathscr{I}_\downarrow^{\mathrm{lw}}$ℐꜜˡʷdownwelling longwaveDownwelling longwave radiation (W m⁻²)
$\mathscr{I}_\uparrow^{\mathrm{lw}}$ℐꜛˡʷupwelling longwaveEmitted longwave radiation (W m⁻²)

| $\mathscr{I}_{t}^{\mathrm{sw}}$ | ℐₜˢʷ | transmitted shortwave | Shortwave passing through the surface, $(1-\alpha) \mathscr{I}_\downarrow^{\mathrm{sw}}$ (W m⁻²) | | $\mathscr{I}_{a}^{\mathrm{lw}}$ | ℐₐˡʷ | absorbed longwave | Longwave absorbed at the surface, $\epsilon \mathscr{I}_\downarrow^{\mathrm{lw}}$ (W m⁻²) |

Radiative fluxes use $\mathscr{I}$ (, for "intensity") with a modifier arrow (/ for downwelling/upwelling) and superscript band (ˢʷ/ˡʷ). Derived radiative quantities use a subscript process label (, ) with a superscript band.

Turbulent interface fluxes

MathCodePropertyDescription
$\mathcal{Q}^v$𝒬ᵛlatent heat fluxTurbulent latent heat flux (W m⁻²)
$\mathcal{Q}^T$𝒬ᵀsensible heat fluxTurbulent sensible heat flux (W m⁻²)
$J^v$Jᵛwater vapor fluxTurbulent mass flux of water vapor (kg m⁻² s⁻¹)
$\tau^x$τˣzonal kinematic stressKinematic zonal momentum flux (m² s⁻²)
$\tau^y$τʸmeridional kinematic stressKinematic meridional momentum flux (m² s⁻²)
$\rho \tau^x$ρτˣzonal wind stressMass-weighted zonal stress (N m⁻²)
$\rho \tau^y$ρτʸmeridional wind stressMass-weighted meridional stress (N m⁻²)

Net ocean fluxes

MathCodePropertyDescription
$J^T$Jᵀtemperature fluxNet ocean temperature flux (K m s⁻¹)
$J^S$salinity fluxNet ocean salinity flux (g kg⁻¹ m s⁻¹)
$\mathcal{Q}^{\mathrm{frz}}$𝒬ᶠʳᶻfrazil heat fluxHeat released by frazil ice formation (W m⁻²)

Net surface freshwater fluxes

MathCodePropertyDescription
$J^{\mathrm{rn}}$Jʳⁿrain freshwater fluxRain mass flux at the surface (kg m⁻² s⁻¹)
$J^{\mathrm{sn}}$Jˢⁿsnow freshwater fluxSnow mass flux at the surface (kg m⁻² s⁻¹)

Thermodynamic properties

MathCodePropertyDescription
$\mathcal{L}^\ell$ℒˡlatent heat of vaporizationLiquid-phase latent heat (J kg⁻¹)
$\mathcal{L}^i$ℒⁱlatent heat of sublimationIce-phase latent heat (J kg⁻¹)
$c^{pm}$cᵖᵐmoist air heat capacityMoist isobaric specific heat (J kg⁻¹ K⁻¹)
$c^{pd}$cᵖᵈdry air heat capacityDry-air isobaric specific heat (J kg⁻¹ K⁻¹)
$\rho^{\mathrm{at}}$ρᵃᵗair densityAtmospheric air density (kg m⁻³)
$\varepsilon^{\mathrm{dv}}$$εᵈᵛ$vapor / dry-air gas-constant ratio$εᵈᵛ = R_v / R_d$ (so $(εᵈᵛ)^{-1} = R_d / R_v ≈ 0.622$ is the conventional ε in $q = ε e / p$) (–)

CF standard name mapping

The following table maps code variable names to their CF standard names where applicable.

CodeCF standard name
T (atm)air_temperature
T (ocn)sea_water_potential_temperature
Ssea_water_practical_salinity
u (atm)eastward_wind
v (atm)northward_wind
qspecific_humidity
pair_pressure
ℐꜜˢʷsurface_downwelling_shortwave_flux_in_air
ℐꜜˡʷsurface_downwelling_longwave_flux_in_air
𝒬ᵛsurface_upward_latent_heat_flux
𝒬ᵀsurface_upward_sensible_heat_flux
Jᵛwater_evapotranspiration_flux
ρτˣsurface_downward_eastward_stress
ρτʸsurface_downward_northward_stress
hˢⁱsea_ice_thickness
sea_ice_area_fraction

Typing Unicode symbols in Julia

Most symbols can be entered in the Julia REPL and in editors with Julia support by typing a LaTeX-like abbreviation followed by <tab>. The table below collects the less obvious completions used in this notation.

SymbolTab completionDescription
𝒬\scrQScript Q (heat flux)
\scrIScript I (radiative intensity)
\scrLScript L (latent heat)
τ\tauTau (kinematic stress)
ρ\rhoRho (density)
σ\sigmaSigma (Stefan–Boltzmann constant)
α\alphaAlpha (albedo)
ϵ\epsilonEpsilon (emissivity)
\alephAleph (ice concentration)
ϰ\varkappaVarkappa (von Kármán constant)
Ψ\PsiCapital Psi (interface state)
\bigstarStar (similarity-theory scale)
\^downarrowModifier down arrow (downwelling)
\^uparrowModifier up arrow (upwelling)
\^vSuperscript v
\^TSuperscript T
ˢ\^sSuperscript s
ʷ\^wSuperscript w
\^iSuperscript i
ˡ\^lSuperscript l
\^pSuperscript p
\^mSuperscript m
\^dSuperscript d
\^DSuperscript D
ˣ\^xSuperscript x
ʸ\^ySuperscript y
\^aSuperscript a
\^tSuperscript t
\^oSuperscript o
\^cSuperscript c
\^nSuperscript n
\^fSuperscript f
ʳ\^rSuperscript r
\^zSuperscript z
\_tSubscript t (transmitted)
\_aSubscript a (absorbed)
\_pSubscript p (penetrating)