cf.Data.tan¶

Data.
tan
(inplace=False, i=False)[source]¶ Take the trigonometric tangent 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 tangents of 45 degrees_east, 0.78539816 radians and 0.78539816 Kelvin are all 1.0.
The output units are changed to ‘1’ (nondimensional).
 Parameters
 Returns
Examples
>>> d.Units <Units: degrees_north> >>> print(d.array) [[45 0 45 ]] >>> e = d.tan() >>> e.Units <Units: 1> >>> print(e.array) [[1.0 0.0 1.0 ]]
>>> d.Units <Units: m s1> >>> print(d.array) [[1 2 3 ]] >>> d.tan(inplace=True) >>> d.Units <Units: 1> >>> print(d.array) [[1.55740772465 2.18503986326 0.142546543074 ]]