mpas_tools.constants.get_constant

mpas_tools.constants.get_constant(name)[source]

Get a constant from the Physical Constants Dictionary (PCD).

Parameters:

name (str) – The name of the constant to retrieve (e.g. 'mean_radius').

Returns:

value (float) – The value of the constant.

Raises:

KeyError – If the constant is not in the PCD.