Skip to main content

mapping:fft

Version: 0.0.0

Description

Computes the Fast Fourier Transform on each component of input Field or each field of input Fields Container (you can use transpose_fields_container to have relevant scoping). Fields are assumed with the same scoping, number of components and representing equally spaced data, ideally resampled to have a 2^n points (prepare_sampling_fft with time_freq_interpolation can help creating these fields). If Complex label is present, Complex to Complex FFT performed otherwise Real to Complex is performed (only half of the coefficient will be returned).

Inputs

InputNameExpected type(s)Description
Pin 0
Required
fieldfield, fields_containerField or Fields Container.
Pin 3scale_forward_transformdoubleScale for Forward Transform, default is 2/field_num_elementary_data.
Pin 4inplaceboolTrue if inplace, default is false.
Pin 5force_fft_pointsint32Explicitely define number of fft points to either rescope or perform zero padding.
Pin 6cutoff_frequencydoubleRestrict output frequency up to this cutoff frequency
Pin 7scale_right_amplitudeboolIf set to true (default is false), 2/field_num_entities scaling will be applied, to have right amplitude values.

Outputs

OutputNameExpected type(s)Description
Pin 0fields_containerfields_containerOutput Complex Fields Container with labels matching input Fields Container. No supports binded, but prepare_sampling_fft provides it.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: mapping

Plugin: core

Scripting name: fft

Full name: mapping.fft

Internal name: fft

License: None

Changelog

  • Version 0.0.0: Initial release.