uwacan.recordings.dBx_to_peak_volts#

dBx_to_peak_volts(db)[source]#

Convert dBu or dBV to peak volts.

Parameters:
dbstr

Decibel value as a string with units, e.g., "10dBu", "-20dBV".

Returns:
voltsfloat

Peak voltage corresponding to the input decibel value.

Raises:
ValueError

If the input string does not contain a valid dB unit ("dBu" or "dBV").