IsolateOrders#
- class ansys.sound.core.spectrogram_processing.IsolateOrders(signal=None, rpm_profile=None, orders=None, fft_size=1024, window_type='HANN', window_overlap=0.5, width_selection=10)#
Isolates the orders of a signal.
This class isolates the order of a signal that has an associated RPM profile.
Class instantiation takes the following parameters.
- Parameters:
- signal
FieldsContainer
|Field
, default:None
One or more input signals to isolate orders on as a DPF fields container or field.
- rpm_profile
Field
, default:None
RPM signal associated with the time signals as a DPF field. It is assumed that the signal’s unit is
rpm
. If this is not the case, inaccurate behavior might occur during the conversion from RPM to frequency.- orders
list
, default:None
List of the order numbers to isolate. The list must contain at least one value.
- fft_size
int
, default: 1024 Size of the FFT used to compute the STFT.
- window_type
str
, default: ‘HANN’ Window type used for the FFT computation. Options are
'BARTLETT'
,'BLACKMAN'
,'BLACKMANHARRIS'
,``’HAMMING’, ``'HANN'
,'KAISER'
, and'RECTANGULAR'
.- window_overlap
float
, default: 0.5 Overlap value between two successive FFT computations. Values can range from 0 to 1. For example,
0
means no overlap, and0.5
means 50% overlap.- width_selection
int
, default: 10 Width in Hz of the area used to select each individual order. Note that its precision depends on the FFT size.
- signal
Methods
Convert a DPF fields container to a NumPy array.
Get the temporal signal of the isolated orders as a DPF field or fields container.
Get the temporal signal of the isolated orders as a NumPy array.
Plot the signal after order isolation.
Isolate the orders of the signal.
Attributes
Number of FFT points.
List of the order numbers to isolate.
RPM profile as a DPF field.
Input signal as a DPF field or fields container.
Width in Hz of each individual order selection.
Window overlap in %.
Window type.