Acoular 16.5 documentation

MicGeom

«  MicGeom   ::   microphones   ::   spectra  »

MicGeom

class acoular.microphones.MicGeom

Bases: traits.has_traits.HasPrivateTraits

Provides the geometric arrangement of microphones in the mic. array.

The geometric arrangement of microphones is read in from an xml-source with element tag names ‘pos’ and attributes Name, x, y and z. Can also be used with programmatically generated arrangements.

from_file = File(filter=['*.xml'], desc="name of the xml file to import")

Name of the .xml-file from wich to read the data.

basename = Property( depends_on = 'from_file', desc="basename of xml file")

Basename of the .xml-file, without the extension, is set automatically / readonly.

invalid_channels = List( desc="list of invalid channels")

List that gives the indices of channels that should not be considered. Defaults to a blank list.

num_mics = Property( depends_on = ['mpos', ], desc="number of microphones in the geometry")

Number of microphones in the array, readonly.

mpos_tot = CArray( desc="x, y, z position of all microphones")

Positions as (3, num_mics) array of floats, may include also invalid microphones (if any). Set either automatically on change of the from_file argument or explicitely by assigning an array of floats.

mpos = Property( depends_on = ['mpos_tot', 'invalid_channels'], desc="x, y, z position of microphones")

Positions as (3, num_mics) array of floats, without invalid microphones, readonly.

import_mpos()

Import the microphone positions from .xml file. Called when basename changes.

«  MicGeom   ::   microphones   ::   spectra  »