Previous topic

pycrtools.core.hftools.mFFT

Next topic

pycrtools.core.hftools.mFilter

This Page

pycrtools.core.hftools.mFFTW

pycrtools.core.hftools.mFFTW.hFFTWExecutePlan()

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N)
>>> y = cr.hArray(complex, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDft(N, 1, 1, 1, 1, 1, cr.fftw_sign.FORWARD, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(float, N)
>>> y = cr.hArray(complex, N/2+1)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftR2c(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N/2+1)
>>> y = cr.hArray(float, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftC2r(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)
pycrtools.core.hftools.mFFTW.hFFTWExecutePlanRC()

hFFTWExecutePlanRC(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N)
>>> y = cr.hArray(complex, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDft(N, 1, 1, 1, 1, 1, cr.fftw_sign.FORWARD, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)
pycrtools.core.hftools.mFFTW.hFFTWExecutePlanCR()

hFFTWExecutePlanCR(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N)
>>> y = cr.hArray(complex, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDft(N, 1, 1, 1, 1, 1, cr.fftw_sign.FORWARD, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)
pycrtools.core.hftools.mFFTW.hFFTWExecutePlan()

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N)
>>> y = cr.hArray(complex, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDft(N, 1, 1, 1, 1, 1, cr.fftw_sign.FORWARD, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(float, N)
>>> y = cr.hArray(complex, N/2+1)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftR2c(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N/2+1)
>>> y = cr.hArray(float, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftC2r(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)
pycrtools.core.hftools.mFFTW.hFFTWExecutePlan()

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N)
>>> y = cr.hArray(complex, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDft(N, 1, 1, 1, 1, 1, cr.fftw_sign.FORWARD, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(float, N)
>>> y = cr.hArray(complex, N/2+1)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftR2c(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)

hFFTWExecutePlan(out, in, plan)

Executes an FFTW plan.

Parameters

out Return vector in which the FFT transformed data is stored.
in Input vector to make the FFT from.
plan FFTW plan.

Example

>>> # Set up input/output arrays
>>> x = cr.hArray(complex, N/2+1)
>>> y = cr.hArray(float, N)

>>> # Create plan
>>> p = cr.FFTWPlanManyDftC2r(N, 1, 1, 1, 1, 1, cr.fftw_flags.ESTIMATE)

>>> # Execute plan
>>> cr.hFFTWExecutePlan(y, x, p)
pycrtools.core.hftools.mFFTW.hFFTConvert()

hFFTConvert(vec)

Convert between CASA and FFTW definitions for FFT

Parameters

vec  
pycrtools.core.hftools.mFFTW.hFFTWResample()

hFFTWResample(out, in)

Resample input vector to output vector length using FFTW

Parameters

out Output vector
in Input vector
pycrtools.core.hftools.mFFTW.hFFTWDownsample()

hFFTWDownsample(out, in)

Resample input vector to output vector length using FFTW

Parameters

out Output vector
in Input vector