cf.DimensionCoordinate.arctan¶
-
DimensionCoordinate.
arctan
(bounds=True, 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.
The “standard_name” and “long_name” properties are removed from the result.
New in version 3.0.7.
See also
- Parameters
- Returns
The construct with the trigonometric inverse tangent of data values. If the operation was in-place then
None
is returned.
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 ]]