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