Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.component

component(select='REAL')[source]

Take selected components of an hypercomplex array (RRR, RIR, …).

Parameters

select (str, optional, default=’REAL’) – If ‘REAL’, only real component in all dimensions will be selected. ELse a string must specify which real (R) or imaginary (I) component has to be selected along a specific dimension. For instance, a string such as ‘RRI’ for a 2D hypercomplex array indicated that we take the real component in each dimension except the last one, for which imaginary component is preferred.

Returns

component – Component of the complex or hypercomplex array.