Albedo
Albedo is the surface reflectivity to downward solar shortwave radiation. A value of 1 indicates that all of the radiative flux is reflected at the Earth's surface and sent back up through the atmospheric column. In contrast, a value of 0 means no reflection and all of that radiative flux is absorbed, typically heating ocean or land surface.
In SpeedyWeather the albedo is its own model component, model.albedo, that is computed for every grid column on every time step before the Radiation so that the shortwave radiation can use it. Albedo is therefore not a static boundary condition but recomputed each step so that transient surface changes (e.g. snowfall, sea ice, wind roughening the ocean surface) brighten or darken the surface without losing the underlying bare albedo.
Ocean and land albedo
Albedo is computed separately for ocean and land as averaging those in grid cells which are partially land, partially ocean would yield inaccurate results. Think 10% land having a lower heat capacity than ocean but being treated with an albedo that comes from 90% ocean. Not very realistic. The default albedo is therefore a container OceanLandAlbedo that holds one albedo for the ocean and one for the land
using SpeedyWeather
spectral_grid = SpectralGrid(truncation = 32, nlayers = 8)
albedo = OceanLandAlbedo(spectral_grid)OceanLandAlbedo{JinOceanAlbedo{Float32, Speed...} <: SpeedyWeather.AbstractAlbedo
├ ocean::JinOceanAlbedo{Float32, SpeedyWeather.OceanDirectReflection{Float32}...
└ land::LearnedLandAlbedo{Float32, Bool, SaturatingSnowCover}with JinOceanAlbedo used over the ocean and LearnedLandAlbedo used over land by default, see below. They write into vars.parameterizations.ocean.albedo and vars.parameterizations.land.albedo, respectively, and the shortwave radiation computes the reflected fluxes over ocean and land separately. The shortwave radiation also stores the land-sea mask-weighted albedo in vars.parameterizations.albedo.
Implemented albedos
The following albedos are currently implemented
subtypes(SpeedyWeather.AbstractAlbedo)9-element Vector{Any}:
AlbedoClimatology
GlobalConstantAlbedo
JinOceanAlbedo
LandSnowAlbedo
LearnedLandAlbedo
ManualAlbedo
OceanLandAlbedo
OceanSeaIceAlbedo
PrescribedAlbedoRoughly sorted by increasing complexity these are
| Albedo | Intended for | Depends on |
|---|---|---|
GlobalConstantAlbedo | ocean, land or both | nothing, constant |
ManualAlbedo | ocean, land or both | nothing, 2D field set by the user |
PrescribedAlbedo | ocean, land or both | nothing, set externally (e.g. coupling) |
AlbedoClimatology | ocean, land or both | nothing, 2D field read from file |
OceanSeaIceAlbedo | ocean | sea ice concentration |
LandSnowAlbedo | land | vegetation cover, snow depth |
JinOceanAlbedo (default) | ocean | solar zenith angle, surface wind speed, sea ice concentration, cloud cover |
LearnedLandAlbedo (default) | land | solar zenith angle, vegetation cover and leaf area, soil moisture and temperature, orography, snow, surface air temperature and wind speed, cloud cover |
and OceanLandAlbedo is the composite that combines one albedo for the ocean with one for the land. Each albedo is briefly described in the following.
GlobalConstantAlbedo
A globally constant albedo (default albedo = 0.3). To be used for land and ocean or only one of them within an OceanLandAlbedo.
ManualAlbedo
A manual albedo field, to be used with set!, that is copied into the diagnostic variables on every time step. This way parameterizations can change the albedo at every time step (e.g. snow cover) without losing the information of the original surface albedo. See Customizing the albedo for an example.
PrescribedAlbedo
Like ManualAlbedo but the albedo is not held in the struct and not copied into the diagnostic variables automatically. It's expected that the albedo variable (e.g vars.parameterizations.land.albedo) is set externally at every time step, e.g. when coupling SpeedyWeather to another model.
AlbedoClimatology
An albedo climatology loaded from a netCDF file (by default albedo.nc from SpeedyWeatherAssets) and interpolated onto the model grid at initialization. It then behaves like a ManualAlbedo, i.e. it is constant in time.
OceanSeaIceAlbedo
Albedo that scales linearly between ocean and ice albedo depending on sea ice concentration
with albedo_ocean) and albedo_ice) by default, see also Sea ice models.
LandSnowAlbedo
Albedo over land based on bare soil, high and low vegetation and snow cover
with high and low vegetation cover albedo_high_vegetation) and albedo_low_vegetation), bare land albedo albedo_land) and an additive snow albedo albedo_snow). Without vegetation the albedo is that of bare land. The snow cover LinearSnowCover SaturatingSnowCover snow_depth_scale
JinOceanAlbedo
Ocean albedo following , the default ocean albedo. It depends on the cosine of the solar zenith angle
ocean_direct_reflection = OceanDirectReflection(): the Fresnel reflectanceof a flat air-water interface with refractive index , corrected for the roughness of a windy, wavy surface with a regressionfrom , eq. (1), .ocean_diffuse_reflection = OceanDiffuseReflection(): a linear regression inand , eq. (5b), for the diffuse radiation under clouds, .ocean_volume = ConstantOceanVolumeScattering(): a constant broadband volume-scattering albedo for clear (case 1) waters, eq. (15).foam = WhitecapFoam(): whitecaps cover a fraction of the ocean surface with an albedo of (), such that . Usefoam = NoFoam()to switch the whitecaps off.
The black-sky albedo is then OceanSeaIceAlbedo with albedo_ice). Without a direct beam (the sun below the horizon) the black-sky albedo is set to the white-sky albedo. At low sun angles the Fresnel reflection makes the ocean much brighter than the OceanSeaIceAlbedo.
LearnedLandAlbedo
Learned albedo over land based on surface properties and some ambient conditions, the default land albedo. It uses the semi-empirical, kernel-driven bidirectional reflectance distribution function (BRDF) model of , which describes the reflectance of the land surface as the sum of three scattering mechanisms with weights
, isotropic scattering: light at the surface is reflected equally in all directions, regardless of where the sun is, , volumetric scattering: light interacting with a horizontally homogeneous vegetation canopy, it meets the canopy, bounces around a bit beneath the canopy and exits back towards the sky, , geometric-optical scattering: shadow casting of 3D objects at the surface, like tree crowns or big rocks, and obscuration of shadows due to the viewing angle.
These weights are predicted for the visible and near-infrared separately, each by an expression that was derived by distilling a trained neural network using symbolic regression (Munday et al., in prep.), so six expressions in total, one for each AbstractLandScattering component of LearnedLandAlbedo. The predictors are the high and low vegetation cover and their leaf area index, the soil moisture and soil temperature in the top and bottom soil layers, the orography (as geopotential), the snow depth and snow cover (via LinearSnowCover or SaturatingSnowCover as for LandSnowAlbedo), the surface air temperature and the surface wind speed. Predictors that are not available, e.g. soil moisture in a PrimitiveDryModel, are set to zero. Visible and near-infrared weights are combined into broadband weights vis_weight). From these the white-sky albedo and the black-sky albedo, depending on the solar zenith angle
All coefficients of the learned expressions are parameters of the model, see parameters(LearnedLandAlbedo(spectral_grid)).
Black-sky, white-sky and blue-sky albedo
The albedo of a surface depends on the direction of the incoming light. The black-sky albedo
JinOceanAlbedo and LearnedLandAlbedo compute both black-sky and white-sky albedo, stored as black_sky_albedo and white_sky_albedo in the ocean or land namespace of vars.parameterizations. The shortwave radiation then blends them as above with OneBandShortwave, TwoBandShortwave) or TransparentShortwave). Shortwave radiation schemes that do not know the fraction of direct radiation use the white-sky albedo. All other albedos are independent of the direction of the incoming light and do not define black-sky and white-sky albedos, nothing is blended in this case.
Scattering and other components
JinOceanAlbedo, LearnedLandAlbedo and LandSnowAlbedo are composed of components that compute parts of the albedo. These are not albedos themselves, i.e. they cannot be used as ocean or land in OceanLandAlbedo, but they can be exchanged within their albedo, see Customizing the albedo. The scattering components for land
subtypes(SpeedyWeather.AbstractLandScattering)6-element Vector{Any}:
SpeedyWeather.NIRGeometricScattering
SpeedyWeather.NIRIsotropicScattering
SpeedyWeather.NIRVolumetricScattering
SpeedyWeather.VisibleGeometricScattering
SpeedyWeather.VisibleIsotropicScattering
SpeedyWeather.VisibleVolumetricScatteringare the six learned expressions of LearnedLandAlbedo, see above. The ocean has scattering components for the surface reflection
subtypes(SpeedyWeather.AbstractOceanSurfaceScattering)2-element Vector{Any}:
SpeedyWeather.OceanDiffuseReflection
SpeedyWeather.OceanDirectReflectionused as ocean_direct_reflection and ocean_diffuse_reflection in JinOceanAlbedo, and for volume scattering, used as ocean_volume
subtypes(SpeedyWeather.AbstractOceanVolumeScattering)2-element Vector{Any}:
ConstantOceanVolumeScattering
SpeedyWeather.SpectralOceanVolumeScatteringConstantOceanVolumeScattering is described above. SpectralOceanVolumeScattering computes the volume scattering per wavelength band from the backscattering and absorption of clear waters depending on the chlorophyll concentration (; ). This is future work and cannot be used yet as it requires a shortwave radiation scheme with a surface albedo per band, JinOceanAlbedo throws an error if constructed with it. The whitecaps of JinOceanAlbedo are its foam component
subtypes(SpeedyWeather.AbstractFoam)2-element Vector{Any}:
NoFoam
WhitecapFoamand the snow cover of LandSnowAlbedo and LearnedLandAlbedo is diagnosed from snow depth with one of
subtypes(SpeedyWeather.AbstractSnowCover)2-element Vector{Any}:
LinearSnowCover
SaturatingSnowCoverCustomizing the albedo
All albedos and their components are constructed with the spectral_grid as first argument and their parameters as keyword arguments. For example, to switch off the whitecaps and to use a brighter sea ice in JinOceanAlbedo and to use the simpler LandSnowAlbedo with a linear snow cover over land
ocean = JinOceanAlbedo(spectral_grid, foam = NoFoam(), albedo_ice = 0.7)
land = LandSnowAlbedo(spectral_grid, snow_cover = LinearSnowCover(), albedo_snow = 0.5)
albedo = OceanLandAlbedo(spectral_grid; ocean, land)OceanLandAlbedo{JinOceanAlbedo{Float32, Speed...} <: SpeedyWeather.AbstractAlbedo
├ ocean::JinOceanAlbedo{Float32, SpeedyWeather.OceanDirectReflection{Float32}...
└ land::LandSnowAlbedo{Float32, LinearSnowCover}The first argument of OceanLandAlbedo (without the spectral_grid) is used for ocean the second for land but you can use keywords too as above. You can mix any albedos, they are internally two independent albedos that are applied to fluxes separately, e.g.
albedo = OceanLandAlbedo(GlobalConstantAlbedo(spectral_grid), AlbedoClimatology(spectral_grid))OceanLandAlbedo{GlobalConstantAlbedo{Float32}...} <: SpeedyWeather.AbstractAlbedo
├ ocean::GlobalConstantAlbedo{Float32}
└ land::AlbedoClimatology{Field{Float32, 1, Vector{Float32}, OctahedralGaussi...constructs an albedo that is a global constant (default 0.3) for the ocean but the AlbedoClimatology read from file used for the land. Alternatively you can also drop the separation into ocean/land albedo (e.g. idealised simulations or aqua planet, rocky planet) and just use
albedo = GlobalConstantAlbedo(spectral_grid)GlobalConstantAlbedo{Float32} <: SpeedyWeather.AbstractAlbedo
└ albedo::Float32 = 0.3and this definition of the albedo will be used for both ocean and land fluxes. In all cases you can then pass on the albedo to the model constructor, e.g.
albedo = OceanLandAlbedo(GlobalConstantAlbedo(spectral_grid, albedo = 0.1), ManualAlbedo(spectral_grid))
set!(albedo.land, (λ, φ) -> 0.2 + 0.3 * abs(φ) / 90)
model = PrimitiveWetModel(spectral_grid; albedo)
model.albedoOceanLandAlbedo{GlobalConstantAlbedo{Float32}...} <: SpeedyWeather.AbstractAlbedo
├ ocean::GlobalConstantAlbedo{Float32}
└ land::ManualAlbedo{Field{Float32, 1, Vector{Float32}, OctahedralGaussianGri...The albedo in the model is now the one defined just in the lines above, using a globally constant albedo of 0.1 for the ocean but a higher albedo over land which also increases to 0.5 towards the poles.
You can always output the land-sea mask weighted albedo with add!(model, OutputVariables.Albedo()) or inspect it as follows
simulation = initialize!(model)
run!(simulation, steps = 1) # run for a step to "diagnose" albedo = ocean/land weighted
using CairoMakie
(; albedo) = simulation.variables.parameterizations
heatmap(albedo, title = "Custom albedo, separately defined for ocean/land")
In comparison, the default albedo (JinOceanAlbedo over the ocean and LearnedLandAlbedo over land) after one day of simulation
model = PrimitiveWetModel(spectral_grid)
simulation = initialize!(model)
run!(simulation, period = Day(1))
(; albedo) = simulation.variables.parameterizations
heatmap(albedo, title = "Default albedo after 1 day")
Defining a new albedo
A new albedo is defined as MyAlbedo <: SpeedyWeather.AbstractAlbedo and implements
initialize!(albedo::MyAlbedo, model)albedo!(ij, albedo_field, vars::Variables, albedo::MyAlbedo, model)
initialize! is as for every model component but in contrast to other parameterizations albedos should not implement parameterization! but rather albedo!, which is called from within parameterization!. This is because every albedo needs to be used either as part of OceanLandAlbedo or the same albedo is called over both land and ocean surfaces. If a surface namespace (vars.parameterizations.land or .ocean) contains both black_sky_albedo and white_sky_albedo, a shortwave scheme that knows the direct-beam fraction blends them into that namespace's albedo. Otherwise it leaves albedo alone. See Example: Albedo for a step-by-step example.