class pypam.acoustic_survey.ASA(hydrophone: object, folder_path, zipped=False, include_dirs=False, p_ref=1.0, binsize=None, bin_overlap=0, nfft=1.0, fft_overlap=0.5, period=None, timezone='UTC', channel=0, calibration=None, dc_subtract=False, extra_attrs=None)[source]ΒΆ

Init a AcousticSurveyAnalysis (ASA)

Parameters:
hydrophoneHydrophone class from pyhydrophone
folder_pathstring or Path

Where all the sound files are

zippedboolean

Set to True if the directory is zipped

include_dirsboolean

Set to True if the folder contains other folders with sound files

p_reffloat

Reference pressure in uPa

binsizefloat

Time window considered, in seconds. If set to None, only one value is returned

nfftint

Samples of the fft bin used for the spectral analysis

bin_overlapfloat [0 to 1]

Percentage to overlap the bin windows

periodtuple or list

Tuple or list with two elements: start and stop. Has to be a string in the format YYYY-MM-DD HH:MM:SS

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)

timezone: datetime.tzinfo, pytz.tzinfo.BaseTZInfo, dateutil.tz.tz.tzfile, str or None

Timezone where the data was recorded in