cf.Data.cosh¶

Data.
cosh
(inplace=False)[source]¶ Take the hyperbolic cosine of the data elementwise.
Units are accounted for in the calculation. If the units are not equivalent to radians (such as Kelvin) then they are treated as if they were radians. For example, the the hyperbolic cosine of 0 degrees_east is 1.0, as is the hyperbolic cosine of 1.57079632 radians.
The output units are changed to ‘1’ (nondimensional).
New in version 3.1.0.
 Parameters
 Returns
Examples:
>>> d.Units <Units: degrees_north> >>> print(d.array) [[90 0 90 ]] >>> e = d.cosh() >>> e.Units <Units: 1> >>> print(e.array) [[2.5091784786580567 1.0 2.5091784786580567 ]]
>>> d.Units <Units: m s1> >>> print(d.array) [[1 2 3 ]] >>> d.cosh(inplace=True) >>> d.Units <Units: 1> >>> print(d.array) [[1.5430806348152437 3.7621956910836314 10.067661995777765 ]]