RRTMG¶
- class konrad.radiation.RRTMG(*args, **kwargs)[source]¶
RRTMG radiation scheme using the CliMT python wrapper.
- __init__(*args, solar_constant=551.58, mcica=False, **kwargs)[source]
- Parameters
zenith_angle (float) – angle of the Sun [degrees]. In konrad, with no diurnal cycle, this should represent a diurnal mean zenith angle. With a diurnal cycle, this represents latitude. For single radiation calculations, this is the angle to the Sun at the time and location of interest.
bias (dict-like) – include bias corrections to the fluxes and/or heating rates
solar_constant (int) – [W m^-2]
mcica (bool) –
False
use the nomcica version of RRTMG (clear-sky or overcast)
True
use the mcica version of RRTMG (needed for partly cloudy skies)
Methods
__init__
(*args[, solar_constant, mcica])- param zenith_angle
angle of the Sun [degrees].
adjust_solar_angle
(time)Adjust the zenith angle of the sun according to time of day.
calc_cloudy_nomcica_radiation
(atmosphere, ...)calc_radiation
(atmosphere, surface, cloud)Updates the shortwave, longwave and net heatingrates.
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.
init_radiative_state
(atmosphere, surface)radiative_fluxes
(atmosphere, surface, cloud)Returns shortwave and longwave fluxes and heating rates.
set
(variable, value)Set the values of a variable.
Convert model component into an xarray.Dataset.
update_cloudy_radiative_state
(cloud, state0)update_heatingrates
(atmosphere[, surface, cloud])Returns xr.Dataset containing radiative transfer results.
update_radiative_state
(atmosphere, surface, ...)Update CliMT formatted atmospheric state using parameters from our model.
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.