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, arcsin, arccos, arctanh

Parameters
inplace: bool, optional

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

Returns

Data or None

Examples:

>>> print(d.array)
[[0.5 0.7]
 [0.9 1.1]]
>>> e = d.arctan()
>>> e.Units
<Units: radians>
>>> print(e.array)
[[0.46364761 0.61072596]
 [0.7328151  0.83298127]]
>>> print(d.array)
[1.2 1.0 0.8 0.6 --]
>>> d.arctan(inplace=True)
>>> print(d.array)
[0.8760580505981934 0.7853981633974483 0.6747409422235527
 0.5404195002705842 --]