eradiate.thermoprops.util.rescale_concentration#
- eradiate.thermoprops.util.rescale_concentration(ds, factors, inplace=False)[source]#
Rescale mixing ratios in an atmosphere thermophysical properties data set by given factors for each species.
- Parameters:
ds (
Dataset
) – Initial atmosphere thermophysical properties data set.factors (
dict
) – Mapping of species (str) and scaling factors (float).inplace (
bool
) – IfTrue
, the atmosphere thermophysical properties data set object is modified. Else, a new atmosphere thermophysical properties data set object is returned.
- Returns:
Dataset
– Rescaled atmosphere thermophysical properties data set.