microcalorimetry.math.trig¶
Module for trigonometry analysis functions.
Functions¶
|
Calculate the minimum difference between two angles. |
Module Contents¶
- microcalorimetry.math.trig.angle_diff(phase1: xarray.DataArray, phase2: xarray.DataArray, deg=False) xarray.DataArray[source]¶
Calculate the minimum difference between two angles.
- Parameters:
angle1 (xr.DataArray) – Phase array 1 in radians or deg.
angle2 (xr.DataArray) – Phase array 1 in radians or deg.
deg (bool, optional) – If true, calculates in degrees
- Returns:
out – Phase difference between two angles.
- Return type:
xr.DataArray