scattered_light_gwf
- gwas_tools.algorithms.scattered_light_gwf.scattered_light_gwf(gps, seconds, target_channel_name, channels_file, out_path, f_lowpass, event='center', fs=256, n_scattering=1, smooth_win=50, combos=False, seismic=False, save_data=True, check_lock=False)
Analysis for scattered light identification. The script outputs a folder named as the input gps, with inside three files:
target channel instantaneous amplitudes (.imf, optional)
most correlated predictor for each imf (.predictors, optional)
output.yml, a summary of the analysis’ results
- Parameters:
gps (int) – gps of the event
seconds (int) – how many seconds to analyze in total
target_channel_name (str) – target channel name
channels_file (str) – channels list
out_path (str) – output path where to save results
f_lowpass (float or str) – lowpass filter frequency
event (str) – position of the event’s gps in the analysed period. Can be start, center, or end (default : center)
fs (float, optional) – channels resample frequency (default : 256)
n_scattering (int, optional) – number of signal bounces (default : 1)
smooth_win (int, optional) – signals smoothing window (default : 50)
combos (bool, optional) – if True, combos are computed (default : False)
seismic (bool, optional) – if True, seismic channels data are saved to output file (default : False)
save_data (bool, optional) – if True, instantaneous amplitudes and predictors are saved to file (defaults : True)
check_lock (bool, optional) – if True, lock channel status is checked, and if it is not always locked, the analysis is not performed (default : False)