cf.Data.arctan

Data.arctan(inplace=False)[source]

Take the trigonometric inverse tangent of the data element-wise.

Units are ignored in the calculation. The result has units of radians.

New in version 3.0.7.

See also

tan

Parameters
inplace: bool, optional

If True then do the operation in-place and return None.

Returns

Data or None

Examples:

>>> d = cf.Data([[0, 1, 2], [3, -99, 5]], mask=[[0, 0, 0], [0, 1, 0]])
>>> print(d.array)
[[0  1 2]
 [3 -- 5]]
>>> e = d.arctan()
>>> e
<CF Data(2, 3): [[0.0, ..., 1.373400766945016]] radians>
>>> print(e.array)
[[0.0                0.7853981633974483 1.1071487177940904]
 [1.2490457723982544                 -- 1.373400766945016 ]]