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, penetrating) 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 flux 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⁻¹)

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)
$c$condensate$J^c$ (precipitation mass flux)
$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{int}$ⁱⁿᵗinterface$T^{\mathrm{int}}$ (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{ld}$ˡᵈland
$\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)
$p$penetrating$\mathscr{I}_{p}^{\mathrm{sw}}$ (penetrating shortwave)
$\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⁻²)
$J^c$Jᶜcondensate fluxPrecipitation (condensate) mass flux (kg m⁻² s⁻¹)
$h_{b\ell}$h_bℓboundary layer heightAtmospheric boundary layer height (m)

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 (–)
$\zeta$ζstability parameter$z / L_\star$ (–)
$\ell$roughness lengthAerodynamic roughness length (m)
$\varkappa$ϰvon Kármán constant$\approx 0.4$ (–)

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⁻²) | | $\mathscr{I}_{p}^{\mathrm{sw}}$ | ℐₚˢʷ | penetrating shortwave | Shortwave penetrating into the ocean interior (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⁻²)

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⁻³)

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)
\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)