Simotrostra

class konrad.ozone.Simotrostra(*args, **kwargs)[source]

Wrapper for Ed Charlesworth’s simple chemistry scheme.

__init__(w=0, is_coupled_upwelling=False)[source]
Parameters
  • w (ndarray / int / float) – upwelling velocity [mm / s]

  • is_coupled_upwelling (bool) – whether to couple to upwelling model

Methods

__init__([w, is_coupled_upwelling])

param w

upwelling velocity [mm / s]

create_variable(name[, data, dims])

Create a variable in the model component.

density_of_molecules(p, T)

param p

pressure levels [Pa]

from_netcdf(ncfile[, timestep])

Load a model component from a netCDF file.

get(variable[, default, keepdims])

Get values of a given variable.

get_params(p)

hash_attributes()

Create a hash from all hashable component attributes.

overhead_molecules(gas, p, z, T)

param gas

gas concentration [ppv] corresponding to levels p

ozone_transport(o3, z, upwelling)

Rate of change of ozone is calculated based on the ozone gradient and an upwelling velocity.

set(variable, value)

Set the values of a variable.

simotrostra_profile(o3, atmosphere, ...)

param o3

ozone profile

store_sink_terms(sink_terms)

param sink_terms

source and sink terms [ppv / day]

to_dataset()

Convert model component into an xarray.Dataset.

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.