cf.Field.sin

Field.sin(bounds=True, i=False)[source]

The trigonometric sine of the data array.

Units are accounted for in the calculation. For example, the the sine of 90 degrees_east is 1.0, as is the sine of 1.57079632 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.sin()
Parameters:
bounds: optional

Ignored.

i: bool, optional

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

Returns:
out: cf.Field

The field with the sine of data array values.

Examples 2:
>>> f.Units
<CF Units: degrees_north>
>>> print f.array
[[-90 0 90 --]]
>>> f.sin()
>>> f.Units
<CF Units: 1>
>>> print f.array
[[-1.0 0.0 1.0 --]]
>>> f.Units
<CF Units: m s-1>
>>> print f.array
[[1 2 3 --]]
>>> f.sin()
>>> f.Units
<CF Units: 1>
>>> print f.array
[[0.841470984808 0.909297426826 0.14112000806 --]]