Sofar is maybe the most complete Python package for the SOFA file format so far. SOFA files store spatially distributed acoustic data such as impulse responses or transfer functions. These are the sofar key features
Based on the official SOFA conventions from the Matlab/Octave API
Read and write support for SOFA files
Add custom attributes to SOFA files
Verify content of a SOFA file with respect to the data type and shape
Open license allows unrestricted use
sofar is tested using continuous integration on Travis CI
Use pip to install sofar
$ pip install sofar
(Requires Python >= 3.7)
Check out read the docs for example use cases and the complete documentation. Packages related to sofar are listed at pyfar.org. For more information on the SOFA file format visit sofaconventions.org.
Refer to the contribution guidelines for more information.