acoular


Nameacoular JSON
Version 24.3 PyPI version JSON
download
home_page
SummaryPython library for acoustic beamforming
upload_time2024-03-12 13:19:04
maintainer
docs_urlNone
author
requires_python<=11,>=3.7
licenseCopyright (c) Acoular Development Team. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: a. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. b. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. c. Neither the name of the acoular developers nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords acoustics beamforming microphone array
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ![Acoular Logo](./docs/source/_static/Acoular_logo.png)

[![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
[![PyPI](https://img.shields.io/pypi/v/acoular.svg)](https://pypi.org/project/acoular)
[![Github](https://github.com/acoular/acoular/actions/workflows/python-package.yml/badge.svg)](https://github.com/acoular/acoular/actions/workflows/python-package.yml)

# Acoular
Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license. 

It is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra. 

# Features
- frequency domain beamforming algorithms: delay & sum, Capon (adaptive), MUSIC, functional beamforming, eigenvalue beamforming
- frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
- frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
- time domain methods: delay & sum beamforming, CleanT deconvolution
- time domain methods applicable for moving source with arbitrary trajectory (linear, circular, arbitrarily 3D curved), 
- frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
- 1D, 2D and 3D mapping grids for all methods
- gridless option for orthogonal deconvolution
- four different built-in steering vector formulations
- arbitrary stationary background flow can be considered for all methods
- efficient cross spectral matrix computation
- flexible modular time domain processing: n-th octave band filters, fast, slow, and impulse weighting, A-, C-, and Z-weighting, filter bank, zero delay filters
- time domain simulation of array microphone signals from fixed and arbitrarily moving sources in arbitrary flow
- fully object-oriented interface
- lazy evaluation: while processing blocks are set up at any time, (expensive) computations are only performed when needed
- intelligent and transparent caching: computed results are automatically saved and loaded on the next run to avoid unnecessary re-computation
- parallel (multithreaded) implementation with Numba for most algorithms
- easily extendable with new algorithms

# License
Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)

# Citing

If you use Acoular for academic work, please consider citing our
[publication](https://doi.org/10.1016/j.apacoust.2016.09.015):

    Ennes Sarradj, Gert Herold,
    A Python framework for microphone array data processing,
    Applied Acoustics, Volume 116, 2017, Pages 50-58

# Dependencies
Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available. 
Matplotlib is needed for some of the examples.

If you want to use input from a soundcard hardware, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).

# Installation

Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is also part of the [Anaconda Python distribution](https://www.anaconda.com/). It is recommended to install into a dedicated [conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html). After activating this environment, run

    conda install -c acoular acoular

This will install Acoular in your Anaconda Python enviroment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system. 

A second option is to install Acoular via [pip](https://pip.pypa.io/en/stable/). It is recommended to use a dedicated [virtual environment](https://virtualenv.pypa.io/en/latest/) and then run

    pip install acoular

For more detailed install instructions see the [documentation](http://acoular.org/install/index.html).

# Documentation and help
Documentation is available [here](http://acoular.org) with a
[getting started](http://acoular.org/get_started/index.html) section and
[examples](http://acoular.org/examples/index.html).

The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.

Problems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.

# Example
This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:

```python
from os import path
import acoular
from matplotlib.pylab import figure, plot, axis, imshow, colorbar, show

# this file contains the microphone coordinates
micgeofile = path.join(path.split(acoular.__file__)[0],'xml','array_64.xml')
# set up object managing the microphone coordinates
mg = acoular.MicGeom( from_file=micgeofile )
# set up object managing the microphone array data (usually from measurement)
ts = acoular.TimeSamples( name='three_sources.h5' )
# set up object managing the cross spectral matrix computation
ps = acoular.PowerSpectra( time_data=ts, block_size=128, window='Hanning' )
# set up object managing the mapping grid
rg = acoular.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \
increment=0.01 )
# set up steering vector, implicitely contains also the standard quiescent 
# environment with standard speed of sound
st = acoular.SteeringVector( grid = rg, mics=mg )
# set up the object managing the delay & sum beamformer
bb = acoular.BeamformerBase( freq_data=ps, steer=st )
# request the result in the 8kHz third octave band from approriate FFT-Lines
# this starts the actual computation (data intake, FFT, Welch CSM, beamforming)
pm = bb.synthetic( 8000, 3 )
# compute the sound pressure level
Lm = acoular.L_p( pm )
# plot the map
imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \
interpolation='bicubic')
colorbar()
```

![result](./docs/source/get_started/three_source_py3_colormap.png)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "acoular",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "<=11,>=3.7",
    "maintainer_email": "Adam Kujawski <adam.kujawski@tu-berlin.de>, Art Pelling <a.pelling@tu-berlin.de>, Ennes Sarradj <ennes.sarradj@tu-berlin.de>, Gert Herold <gert.herold@tu-berlin.de>, Mikolaj Czuchaj <mikolaj.czuchaj@tu-berlin.de>, Simon Jekosch <s.jekosch@tu-berlin.de>",
    "keywords": "acoustics,beamforming,microphone array",
    "author": "",
    "author_email": "Acoular Development Team <info@acoular.org>",
    "download_url": "https://files.pythonhosted.org/packages/32/50/217505e70aa3882e286d46a8fd29db91aeffb62645e5664ab92731f4d331/acoular-24.3.tar.gz",
    "platform": null,
    "description": "![Acoular Logo](./docs/source/_static/Acoular_logo.png)\n\n[![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)\n[![PyPI](https://img.shields.io/pypi/v/acoular.svg)](https://pypi.org/project/acoular)\n[![Github](https://github.com/acoular/acoular/actions/workflows/python-package.yml/badge.svg)](https://github.com/acoular/acoular/actions/workflows/python-package.yml)\n\n# Acoular\nAcoular is a Python module for acoustic beamforming that is distributed under the new BSD license. \n\nIt is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra. \n\n# Features\n- frequency domain beamforming algorithms: delay & sum, Capon (adaptive), MUSIC, functional beamforming, eigenvalue beamforming\n- frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution\n- frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX\n- time domain methods: delay & sum beamforming, CleanT deconvolution\n- time domain methods applicable for moving source with arbitrary trajectory (linear, circular, arbitrarily 3D curved), \n- frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques\n- 1D, 2D and 3D mapping grids for all methods\n- gridless option for orthogonal deconvolution\n- four different built-in steering vector formulations\n- arbitrary stationary background flow can be considered for all methods\n- efficient cross spectral matrix computation\n- flexible modular time domain processing: n-th octave band filters, fast, slow, and impulse weighting, A-, C-, and Z-weighting, filter bank, zero delay filters\n- time domain simulation of array microphone signals from fixed and arbitrarily moving sources in arbitrary flow\n- fully object-oriented interface\n- lazy evaluation: while processing blocks are set up at any time, (expensive) computations are only performed when needed\n- intelligent and transparent caching: computed results are automatically saved and loaded on the next run to avoid unnecessary re-computation\n- parallel (multithreaded) implementation with Numba for most algorithms\n- easily extendable with new algorithms\n\n# License\nAcoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)\n\n# Citing\n\nIf you use Acoular for academic work, please consider citing our\n[publication](https://doi.org/10.1016/j.apacoust.2016.09.015):\n\n    Ennes Sarradj, Gert Herold,\n    A Python framework for microphone array data processing,\n    Applied Acoustics, Volume 116, 2017, Pages 50-58\n\n# Dependencies\nAcoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available. \nMatplotlib is needed for some of the examples.\n\nIf you want to use input from a soundcard hardware, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).\n\n# Installation\n\nAcoular can be installed via [conda](https://docs.conda.io/en/latest/), which is also part of the [Anaconda Python distribution](https://www.anaconda.com/). It is recommended to install into a dedicated [conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html). After activating this environment, run\n\n    conda install -c acoular acoular\n\nThis will install Acoular in your Anaconda Python enviroment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system. \n\nA second option is to install Acoular via [pip](https://pip.pypa.io/en/stable/). It is recommended to use a dedicated [virtual environment](https://virtualenv.pypa.io/en/latest/) and then run\n\n    pip install acoular\n\nFor more detailed install instructions see the [documentation](http://acoular.org/install/index.html).\n\n# Documentation and help\nDocumentation is available [here](http://acoular.org) with a\n[getting started](http://acoular.org/get_started/index.html) section and\n[examples](http://acoular.org/examples/index.html).\n\nThe Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.\n\nProblems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.\n\n# Example\nThis reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:\n\n```python\nfrom os import path\nimport acoular\nfrom matplotlib.pylab import figure, plot, axis, imshow, colorbar, show\n\n# this file contains the microphone coordinates\nmicgeofile = path.join(path.split(acoular.__file__)[0],'xml','array_64.xml')\n# set up object managing the microphone coordinates\nmg = acoular.MicGeom( from_file=micgeofile )\n# set up object managing the microphone array data (usually from measurement)\nts = acoular.TimeSamples( name='three_sources.h5' )\n# set up object managing the cross spectral matrix computation\nps = acoular.PowerSpectra( time_data=ts, block_size=128, window='Hanning' )\n# set up object managing the mapping grid\nrg = acoular.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \\\nincrement=0.01 )\n# set up steering vector, implicitely contains also the standard quiescent \n# environment with standard speed of sound\nst = acoular.SteeringVector( grid = rg, mics=mg )\n# set up the object managing the delay & sum beamformer\nbb = acoular.BeamformerBase( freq_data=ps, steer=st )\n# request the result in the 8kHz third octave band from approriate FFT-Lines\n# this starts the actual computation (data intake, FFT, Welch CSM, beamforming)\npm = bb.synthetic( 8000, 3 )\n# compute the sound pressure level\nLm = acoular.L_p( pm )\n# plot the map\nimshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \\\ninterpolation='bicubic')\ncolorbar()\n```\n\n![result](./docs/source/get_started/three_source_py3_colormap.png)\n",
    "bugtrack_url": null,
    "license": "Copyright (c) Acoular Development Team. All rights reserved.   Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  a. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. b. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. c. Neither the name of the acoular developers nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Python library for acoustic beamforming",
    "version": "24.3",
    "project_urls": {
        "documentation": "https://acoular.org",
        "homepage": "https://acoular.org",
        "repository": "https://github.com/acoular/acoular"
    },
    "split_keywords": [
        "acoustics",
        "beamforming",
        "microphone array"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93d6c821647e1b31dbe0185544e7a34a72e234f6583de62c1f9e868ed4630ae4",
                "md5": "ee0013b41e0477cd2a49e59e69cd1712",
                "sha256": "5f62379318dcdf5f7b3854d8dd634eaa5ad042420e39ffaf6194831d0d9e0026"
            },
            "downloads": -1,
            "filename": "acoular-24.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee0013b41e0477cd2a49e59e69cd1712",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<=11,>=3.7",
            "size": 775067,
            "upload_time": "2024-03-12T13:18:59",
            "upload_time_iso_8601": "2024-03-12T13:18:59.211445Z",
            "url": "https://files.pythonhosted.org/packages/93/d6/c821647e1b31dbe0185544e7a34a72e234f6583de62c1f9e868ed4630ae4/acoular-24.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3250217505e70aa3882e286d46a8fd29db91aeffb62645e5664ab92731f4d331",
                "md5": "9e3f621aa648ad28680e532fef550c74",
                "sha256": "6e4f7ff4288e060cb5e77b8adc4e088f19320459259db1f5d3e375bf6d6284db"
            },
            "downloads": -1,
            "filename": "acoular-24.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9e3f621aa648ad28680e532fef550c74",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<=11,>=3.7",
            "size": 6959266,
            "upload_time": "2024-03-12T13:19:04",
            "upload_time_iso_8601": "2024-03-12T13:19:04.219862Z",
            "url": "https://files.pythonhosted.org/packages/32/50/217505e70aa3882e286d46a8fd29db91aeffb62645e5664ab92731f4d331/acoular-24.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-12 13:19:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "acoular",
    "github_project": "acoular",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "acoular"
}
        
Elapsed time: 0.22827s