ProfileFromData

class konrad.humidity.relative_humidity.ProfileFromData(*args, **kwargs)[source]

Defines a relative humidity from data.

__init__(p_data, rh_data)[source]
Parameters
  • p_data (np.ndarray) – pressure coordinates corresponding to rh_data, in Pa

  • rh_data (np.ndarray) – the rh profile on p_data, in unit of RH

Methods

__init__(p_data, rh_data)

param p_data

pressure coordinates corresponding to rh_data, in Pa

create_variable(name[, data, dims])

Create a variable in the model component.

from_netcdf(ncfile[, timestep])

Load a model component 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.