|
pueoAnalysisTools
|
Load and plot waveforms from either the "IceFinal" files or the "dual output" files. More...
Functions | |
| pl.DataFrame() | load_waveforms (ROOT.pueo.Dataset dataset, str antennas=None) |
| Loads time domain signals. | |
| pl.DataFrame | upsample_waveforms (pl.DataFrame waveforms, int upsample_factor) |
| Calls SciPy's resample() to upsample the waveforms. | |
| None | plot_waveforms (pl.DataFrame waveforms, str plot_name) |
| Uses Vega-Altair to make waveform plots. | |
| tuple[pl.DataFrame(), np.array(1024)] | load_waveforms_from_IceFinal (str filepath, [int] event_number=0, str antennas=None, int upsample_factor=None, bool want_plots=False, str plot_name=None) |
| Loads time domain signals from an IceFinal file; users can optionally provide a list of antenna indices. | |
Load and plot waveforms from either the "IceFinal" files or the "dual output" files.
| pl.DataFrame() load_waveforms | ( | ROOT.pueo.Dataset | dataset, |
| str | antennas = None ) |
Loads time domain signals.
| [in] | dataset | The output of initialise.load_pueoEvent_Dataset |
| [in] | antennas | (optional) whitespace separated list specifying AntNums. |
| waveforms | The desired channels and their waveforms [Volts] |
Definition at line 24 of file waveform_plots.py.
| pl.DataFrame upsample_waveforms | ( | pl.DataFrame | waveforms, |
| int | upsample_factor ) |
Calls SciPy's resample() to upsample the waveforms.
| [in] | waveforms | The output of load_waveforms |
| [in] | upsample_factor |
| upsampled_waveforms |
Definition at line 93 of file waveform_plots.py.
| None plot_waveforms | ( | pl.DataFrame | waveforms, |
| str | plot_name ) |
Uses Vega-Altair to make waveform plots.
| [in] | waveforms | The output of any other functions in load_waveforms |
| [in] | plot_name | Be sure to specify the file format (eg. my_plot.png or my_plot.html) |
Definition at line 122 of file waveform_plots.py.
| tuple[pl.DataFrame(), np.array(1024)] load_waveforms_from_IceFinal | ( | str | filepath, |
| [int] | event_number = 0, | ||
| str | antennas = None, | ||
| int | upsample_factor = None, | ||
| bool | want_plots = False, | ||
| str | plot_name = None ) |
Loads time domain signals from an IceFinal file; users can optionally provide a list of antenna indices.
| [in] | filepath | path to IceFinal_*_allTree.root |
| [in] | event_number | (optional) an integer or a list of integers, defaults to event 0 |
| [in] | antennas | (optional) whitespace separated string specifying the antenna names |
| [in] | upsample_factor | (optional) |
| [in] | want_plots | (optional) defaults to False |
| [in] | plot_name | (optional) |
| waveforms_frame | waveforms recorded by the antennas [Volts] |
| time_mesh | time mesh corresponding to the waveforms [seconds]. |
upsample_factor.The function also optionally creates waveform plots and saves to the working directory (ie. wherever the user calls this script) via the internal function plot_waveforms(). Below is an example of a three-antenna plot (actually two plots would be made, one for each event):
InvalidOperationError: conversion from str to enum failed in column '' for 1 out of 2 values: ["511"]
Ensure that all values in the input column are present in the categories of the enum datatype.
Perhaps you included a non-existent antenna index? aborting operation at function: load_waveforms_from_IceFinal()
Definition at line 193 of file waveform_plots.py.