Atmosphere¶
- class konrad.atmosphere.Atmosphere(*args, **kwargs)[source]¶
Atmosphere component.
- pmin¶
Minimum pressure used as threshold between upper and lower atmosphere [Pa]. Methods like
get_cold_point_index
orget_triple_point_index
are looking for levels with higher pressure (closer to the surface) only.- Type
- __init__(phlev)[source]
Initialise atmosphere component.
- Parameters
phlev (
np.ndarray
) – Atmospheric pressure at half-levels (surface to top) [Pa].
Methods
__init__
(phlev)Initialise atmosphere component.
Calculate the geopotential height.
copy
()Create a copy of the atmosphere.
create_variable
(name[, data, dims])Create a variable in the model component.
from_atm_fields_compact
(atm_fields_compact)Convert an ARTS atm_fields_compact [0] into an atmosphere.
from_dict
(dictionary)Create an atmosphere model from dictionary values.
from_netcdf
(ncfile[, timestep])Create an atmosphere model from a netCDF file.
from_xml
(xmlfile)Read atmosphere from XML file containing an ARTS atm_fields_compact.
get
(variable[, default, keepdims])Get values of a given variable.
Return the model level index at the cold point.
get_cold_point_plev
([interpolate])Return the cold point pressure.
get_diabatic_subsidence
(radiative_cooling)Calculate the diabatic subsidence.
Calculate specific heat capacity at constant pressure of moist air
Calculate the temperature lapse rate at each level.
Calculate the potential temperature.
Calculate the static stability.
Return index of maximum subsidence convergence.
Return pressure of maximum subsidence convergence.
Return the model level index at the triple point.
get_triple_point_plev
([interpolate])Return the pressure at the triple point.
get_tropopause_index_wmo
([raise_error])Create hash based on some basic characteristics
refine_plev
(phlev, **kwargs)Refine the pressure grid of an atmosphere object.
set
(variable, value)Set the values of a variable.
Convert an atmosphere into an ARTS atm_fields_compact.
Convert model component into an xarray.Dataset.
Set trace gas concentrations according to the RCE-MIP configuration.
Update the value for height.
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.