Package uk.ac.starlink.ttools.mode
Class MocMode
java.lang.Object
uk.ac.starlink.ttools.mode.MocMode
- All Implemented Interfaces:
ProcessingMode
Turns a table into a Multi-Order Coverage map.
- Since:
- 8 Mar 2012
- Author:
- Mark Taylor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConsumer
(uk.ac.starlink.task.Environment env) Creates a TableConsumer, deriving any additional required configuration from a given environment.uk.ac.starlink.task.Parameter<?>[]
Returns a list of any parameters which are associated with this mode.Returns a textual description of this processing mode.
-
Field Details
-
FITS_FORMAT
MocFormat implementation that writes MOC 1.0-compliant FITS files. -
JSON_FORMAT
MocFormat implementation that writes JSON files. -
ASCII_FORMAT
MocFormat implementation that writes MOC 2.0 ASCII output.
-
-
Constructor Details
-
MocMode
public MocMode()Constructor.
-
-
Method Details
-
getAssociatedParameters
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()Description copied from interface:ProcessingMode
Returns a list of any parameters which are associated with this mode.- Specified by:
getAssociatedParameters
in interfaceProcessingMode
- Returns:
- parameter list
-
getDescription
Description copied from interface:ProcessingMode
Returns a textual description of this processing mode. This will be included in the user document so should be in XML.- Specified by:
getDescription
in interfaceProcessingMode
- Returns:
- textual description of this mode
-
createConsumer
public TableConsumer createConsumer(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException Description copied from interface:ProcessingMode
Creates a TableConsumer, deriving any additional required configuration from a given environment.- Specified by:
createConsumer
in interfaceProcessingMode
- Parameters:
env
- execution environment- Throws:
uk.ac.starlink.task.TaskException
-