cf.DimensionCoordinate.tan

DimensionCoordinate.tan(bounds=True, i=False)[source]

The trigonometric tangent of the data array.

Units are accounted for in the calculation, so that the the tangent of 180 degrees_east is 0.0, as is the sine of 3.141592653589793 radians. If the units are not equivalent to radians (such as Kelvin) then they are treated as if they were radians.

The Units are changed to ‘1’ (nondimensionsal).

See also

cos, tan

Examples 1:
>>> g = f.tan()
Parameters:
bounds: bool, optional

If False then do not alter the dimension coordinate’s bounds, if it has any. By default any bounds are also altered.

i: bool, optional

If True then update the dimension coordinate in place. By default a new dimension coordinate is created. In either case, a dimension coordinate is returned.

Returns:
out: cf.DimensionCoordinate

The dimension coordinate with the tangent of data array values.

Examples 2:
>>>