time_series.amplitude

  • Calculate the amplitude and phase of a harmonic function from calculated sine and cosine of a series of measurements

Calling Sequence

import gravity_toolkit.time_series
ampl,ph = gravity_toolkit.time_series.amplitude(bsin,bcos)

Source code

gravity_toolkit.time_series.amplitude(bsin, bcos)[source]

Calculate the amplitude and phase of a harmonic function

Parameters:
bsin: float

amplitude of the calculated sine values

bcos: float

amplitude of the calculated cosine values

Returns:
ampl: float

amplitude from the harmonic functions

ph: float

phase from the harmonic functions in degrees