LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp.lasp_common Namespace Reference

Classes

class  AvType
 Specificying the type of data, for adding and removing callbacks from the stream. More...
 
class  CalibrationSettings
 
class  CalSetting
 
class  FreqWeighting
 Frequency weighting types. More...
 
class  lasp_shelve
 
class  Qty
 
class  Shelve
 
class  SIQtys
 
class  this_lasp_shelve
 
class  TimeWeighting
 

Functions

 getTime (fs, N, start=0)
 Return a time array for given number of points and sampling frequency.
 
 getFreq (fs, nfft)
 return an array of frequencies for single-sided spectra
 

Variables

int P_REF = 2e-5
 
int W_REF = 1e-12
 
int I_REF = 1e-12
 
int U_REF = 5e-8
 
float dBFS_REF = 0.5*2**0.5
 
 lasp_appdir = appdirs.user_data_dir('Lasp', 'ASCEE')
 
 exist_ok
 

Function Documentation

◆ getFreq()

lasp.lasp_common.getFreq (   fs,
  nfft 
)

return an array of frequencies for single-sided spectra

Args: fs: Sampling frequency [Hz] nfft: Fft length (int)

Definition at line 388 of file lasp_common.py.

◆ getTime()

lasp.lasp_common.getTime (   fs,
  N,
  start = 0 
)

Return a time array for given number of points and sampling frequency.

Args: fs: Sampling frequency [Hz] N: Number of time samples start: Optional start ofset in number of samples

Definition at line 375 of file lasp_common.py.

Variable Documentation

◆ dBFS_REF

float lasp.lasp_common.dBFS_REF = 0.5*2**0.5

Definition at line 40 of file lasp_common.py.

◆ exist_ok

lasp.lasp_common.exist_ok

Definition at line 194 of file lasp_common.py.

◆ I_REF

int lasp.lasp_common.I_REF = 1e-12

Definition at line 26 of file lasp_common.py.

◆ lasp_appdir

lasp.lasp_common.lasp_appdir = appdirs.user_data_dir('Lasp', 'ASCEE')

Definition at line 190 of file lasp_common.py.

◆ P_REF

int lasp.lasp_common.P_REF = 2e-5

Definition at line 23 of file lasp_common.py.

◆ U_REF

int lasp.lasp_common.U_REF = 5e-8

Definition at line 29 of file lasp_common.py.

◆ W_REF

int lasp.lasp_common.W_REF = 1e-12

Definition at line 25 of file lasp_common.py.