Radiation¶
- class konrad.radiation.Radiation(*args, **kwargs)[source]¶
Abstract base class to define requirements for radiation models.
- __init__(zenith_angle=42.05, bias=None)[source]
- Parameters
zenith_angle (float) – Zenith angle of the sun. The default angle of 42.05 degree results in 409.6 W/m^2 solar insolation at the top of the atmosphere when used together with a solar constant of 551.58 W/m^2. This is a reasonable insolation for tropical latitudes. In this case, a surface enthalpy transport needs to included to prevent a runaway greenhouse. If a diurnal cycle is used in full konrad runs, this angle represents latitude.
bias (dict-like) – A dict-like object that stores bias corrections for the diagnostic variable specified by its key, e.g. bias = {‘net_htngrt’: 2}.
Methods
__init__
([zenith_angle, bias])- param zenith_angle
Zenith angle of the sun.
adjust_solar_angle
(time)Adjust the zenith angle of the sun according to time of day.
calc_radiation
(atmosphere, surface, cloud)check_dataset
(dataset)Check if a given dataset contains all required variables.
correct_bias
(dataset)Apply bias correction.
create_variable
(name[, data, dims])Create a variable in the model component.
Derive diagnostic variables from radiative transfer results.
from_netcdf
(ncfile[, timestep])Load a model component from a netCDF file.
get
(variable[, default, keepdims])Get values of a given variable.
Create a hash from all hashable component attributes.
heatingrates_from_fluxes
(pressure, ...)Calculate heating rates from radiative fluxes.
set
(variable, value)Set the values of a variable.
Convert model component into an xarray.Dataset.
update_heatingrates
(atmosphere[, surface, cloud])Returns xr.Dataset containing radiative transfer results.
Attributes
attrs
Dictionary containing all attributes.
data_vars
Dictionary containing all data variables and their dimensions.
netcdf_subgroups
Define subgroups used when storing to netCDF file.