-
class
pypam.acoustic_file.
AcuFile
(sfile, hydrophone, p_ref, timezone='UTC', channel=0, calibration=None, dc_subtract=False)[source]ΒΆ Data recorded in a wav file.
Parameters: - sfileSound file
Can be a path or a file object
- hydrophoneObject for the class hydrophone
- p_refFloat
Reference pressure in upa
- timezone: datetime.tzinfo, pytz.tzinfo.BaseTZInfo, dateutil.tz.tz.tzfile, str or None
Timezone where the data was recorded in
- channelint
Channel to perform the calculations in
- calibration: float, -1 or None
If it is a float, it is the time ignored at the beginning of the file. If None, nothing is done. If negative, the function calibrate from the hydrophone is performed, and the first samples ignored (and hydrophone updated)
- dc_subtract: bool
Set to True to subtract the dc noise (root mean squared value