Atmosphere

class konrad.atmosphere.Atmosphere(*args, **kwargs)[source]

Atmosphere component.

atmosphere_variables

Atmospheric variables defined by the Atmosphere component.

Type

list[str]

pmin

Minimum pressure used as threshold between upper and lower atmosphere [Pa]. Methods like get_cold_point_index or get_triple_point_index are looking for levels with higher pressure (closer to the surface) only.

Type

float

__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_height()

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.

get_cold_point_index()

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.

get_heat_capacity()

Calculate specific heat capacity at constant pressure of moist air

get_lapse_rates()

Calculate the temperature lapse rate at each level.

get_potential_temperature([p0])

Calculate the potential temperature.

get_static_stability()

Calculate the static stability.

get_subsidence_convergence_max_index(...)

Return index of maximum subsidence convergence.

get_subsidence_convergence_max_plev(...)

Return pressure of maximum subsidence convergence.

get_triple_point_index()

Return the model level index at the triple point.

get_triple_point_plev([interpolate])

Return the pressure at the triple point.

get_tropopause_T_wmo()

get_tropopause_index_wmo([raise_error])

get_tropopause_plev_wmo()

hash_attributes()

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.

to_atm_fields_compact()

Convert an atmosphere into an ARTS atm_fields_compact.

to_dataset()

Convert model component into an xarray.Dataset.

tracegases_rcemip()

Set trace gas concentrations according to the RCE-MIP configuration.

update_height()

Update the value for height.

Attributes

atmosphere_variables

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.

pmin