FixedTemperature

class konrad.surface.FixedTemperature(*args, **kwargs)[source]

Surface model with fixed temperature.

__init__(temperature=288.0, **kwargs)[source]

Initialize a surface model with constant surface temperature.

Parameters
  • temperature (float) – Surface temperature [K].

  • albedo (float) – Surface albedo [1]. The default value of 0.2 is a decent choice for clear-sky simulation in the tropics.

  • longwave_emissivity (float) – Longwave emissivity [1].

  • height (float) – Surface height [m].

Methods

__init__([temperature])

Initialize a surface model with constant surface temperature.

adjust(*args, **kwargs)

Do not adjust anything for fixed temperature surfaces.

create_variable(name[, data, dims])

Create a variable in the model component.

from_atmosphere(atmosphere, **kwargs)

Initialize the surface by extrapolating the atmospheric temperature.

from_netcdf(ncfile[, timestep])

Create a surface model from a netCDF file.

get(variable[, default, keepdims])

Get values of a given variable.

hash_attributes()

Create a hash from all hashable component attributes.

set(variable, value)

Set the values of a variable.

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.