Package adams.data.multifilter
Class Atan2
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.ShallowCopySupporter<AbstractMultiSpectrumFilter>
,adams.core.SizeOfHandler
,Serializable
,Comparable
public class Atan2 extends AbstractBinaryFormatsBasedMultiSpectrumFilter
Computes the atan2, with the first format representing 'y' and the second format 'x'.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-no-id-update <boolean> (property: dontUpdateID) If enabled, suppresses updating the ID of adams.data.id.IDHandler data containers. default: false
-format <adams.core.base.BaseString> [-format ...] (property: formats) The formats of the two spectra to compute the atan2 for. default:
-new-format <java.lang.String> (property: newFormat) The new format to use for the atan2 spectrum. default: ATAN2
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.multifilter.AbstractFormatsBasedMultiSpectrumFilter
m_Formats, m_NewFormat
-
Fields inherited from class adams.data.multifilter.AbstractMultiSpectrumFilter
m_DontUpdateID
-
-
Constructor Summary
Constructors Constructor Description Atan2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatsTipText()
Returns the tip text for this property.protected String
getDefaultNewFormat()
Returns the default format for the generated spectrum.String
globalInfo()
Returns a string describing the object.String
newFormatTipText()
Returns the tip text for this property.protected Spectrum
processData(MultiSpectrum data, List<Spectrum> spectra)
Performs the actual filtering of the selected spectra.-
Methods inherited from class adams.data.multifilter.AbstractBinaryFormatsBasedMultiSpectrumFilter
checkData, processData
-
Methods inherited from class adams.data.multifilter.AbstractFormatsBasedMultiSpectrumFilter
defineOptions, getFormats, getNewFormat, setFormats, setNewFormat
-
Methods inherited from class adams.data.multifilter.AbstractMultiSpectrumFilter
cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, forName, getDontUpdateID, getFilters, reset, setDontUpdateID, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
formatsTipText
public String formatsTipText()
Returns the tip text for this property.- Specified by:
formatsTipText
in classAbstractFormatsBasedMultiSpectrumFilter
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultNewFormat
protected String getDefaultNewFormat()
Returns the default format for the generated spectrum.- Specified by:
getDefaultNewFormat
in classAbstractFormatsBasedMultiSpectrumFilter
- Returns:
- the default format
-
newFormatTipText
public String newFormatTipText()
Returns the tip text for this property.- Specified by:
newFormatTipText
in classAbstractFormatsBasedMultiSpectrumFilter
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
processData
protected Spectrum processData(MultiSpectrum data, List<Spectrum> spectra)
Performs the actual filtering of the selected spectra.- Specified by:
processData
in classAbstractBinaryFormatsBasedMultiSpectrumFilter
- Parameters:
data
- the original data to filterspectra
- the spectra to filter- Returns:
- the filtered data, null if failed to generate output
-
-