scipy.constants.C2K¶
- scipy.constants.C2K(*args, **kwds)[source]¶
C2K is deprecated! scipy.constants.C2K is deprecated in scipy 0.18.0. Use scipy.constants.convert_teperature instead. Note that the new function has a different signature.
Convert Celsius to KelvinParameters: C : array_like
Celsius temperature(s) to be converted.
Returns: K : float or array of floats
Equivalent Kelvin temperature(s).
Notes
Computes K = C + zero_Celsius where zero_Celsius = 273.15, i.e., (the absolute value of) temperature “absolute zero” as measured in Celsius.
Examples
>>> from scipy.constants import C2K >>> C2K(np.array([-40, 40.0])) array([ 233.15, 313.15])