1.27. DFTProduct

Full Name: herschel.hifi.dp.tools.DFTProduct
Type: Java Class - Java Class
Import: from herschel.hifi.dp.tools import DFTProduct
Category

HIFI/Analysis

Description

Compute the Discrete Fourier Transform of an HifiSpectrumDataset.

The user is then able to view, analyse, and treat the Fourier Transform to remove standing waves that may have appeared. The class can then retrieve the inverse of the DFT for the astronomer conveniance.

Examples

Example 1: # Create the Discrete Fourier Transform product of the input HRS spectrum
for the given subband
dftp = DFTProduct(hrs, subband)
Example 2: # Add a mask on a given frequency range [f1, f2]
dftp.addMask(f1, f2)
Example 3: # Plot the amplitude of the DFT
dftp.plotAmplitude()
Example 4: # Plot the phase of the DFT
dftp.plotPhase()
Example 5: # Plot both phase and amplitude of the DFT
dftp.plot()
Example 6: # Get the inversed DFT spectrum
idft = dftp.getInverse()
Example 7: # Kill channels according to their omega as plotted with plotAmplitude and
set these channels to 0
dftp.killOmegas(minChan, maxChan, True)
Example 8: # Kill channels according to their omega as plotted with plotAmplitude and
extrapolate
dftp.killOmegas(minChan, maxChan, False)

API details

Properties

HifiSpectrumDataset hrs [INPUT, MANDATORY, default=no default value]

This an HRS SpectrumDataset input

Integer subb [INPUT, MANDATORY, default=no default value]

This is a subband input.

See also