data_operations.data_to_asdfunc#
Back to Module page
Summary#
Passes the data to welch and returns a function that maps frequencies to ASD
Signature#
def data_to_asdfunc(strains, mask, fs, chunktime_psd = params.DEF_CHUNKTIME_PSD, fmax = params.FMAX_PSD, average = 'median', line_id_ver = 'old')
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Array with strains |
||
|
Boolean quality mask on strain data at 1 Hz |
||
|
Sampling frequency (Hz) |
||
|
params.DEF_CHUNKTIME_PSD |
Chunktime for PSD estimation |
|
|
params.FMAX_PSD |
Maximum frequency to estimate the PSD at |
|
|
‘median’ |
Averaging method to use |
|
|
‘old’ |
Flag to use old or new version of line-identification code |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
|
Docstring#
Passes the data to welch and returns a function that maps frequencies to ASD
:param strains: Array with strains
:param mask: Boolean quality mask on strain data at 1 Hz
:param fs: Sampling frequency (Hz)
:param chunktime_psd: Chunktime for PSD estimation
:param fmax: Maximum frequency to estimate the PSD at
:param average: Averaging method to use
:param line_id_ver:
Flag to use old or new version of line-identification code
:return: 1. Array with frequencies (Hz)
2. Array with PSD (Hz^-1)
3. Function mapping frequencies to ASD
4. Crude mask on frequencies with lines marked with zeros
5. Mask on frequencies with loud lines marked with zeros