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:
- angle1xr.DataArray
Phase array 1 in radians or deg.
- angle2xr.DataArray
Phase array 1 in radians or deg.
- deg: bool, optional
If true, calculates in degrees
- Returns:
- outxr.DataArray
Phase difference between two angles.