|
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] |
antenna:AntNums.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 |
waveforms (volts)step size (nanoseconds)waveforms (volts) and step size (nanoseconds) will be upsampled and replaced. 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) |
waveforms (volts)step size (nanoseconds)PhiSectorRingPolrun0/./tmp directory. /tmp/Vpol_waveforms.html. Had we chosen not to filter out the horizontally polarized channels, there will be another plot: /tmp/Hpol_waveforms.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]. |
passTree of the IceFinal file (see filepath) is empty. (ie. no triggered events)AntNum.upsample_factor.truth (signal origin) is a unit vector that represents the true direction of the incoming signal.RFdir_payload is the direction the signal is travelling to.signal_origin = - RFdir_payloadThe 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):
511 does not exist, since there are only 4 antennas in each PhiSector.InvalidOperationError: conversion from
strtoenumfailed 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.