Package uk.ac.starlink.ttools.mode
Class MocMode
- java.lang.Object
-
- uk.ac.starlink.ttools.mode.MocMode
-
- All Implemented Interfaces:
ProcessingMode
public class MocMode extends java.lang.Object implements ProcessingMode
Turns a table into a Multi-Order Coverage map.- Since:
- 8 Mar 2012
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static MocFormatFITS_FORMATMocFormat implementation that writes MOC 1.0-compliant FITS files.static MocFormatJSON_FORMATMocFormat implementation that writes JSON files.
-
Constructor Summary
Constructors Constructor Description MocMode()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TableConsumercreateConsumer(uk.ac.starlink.task.Environment env)Creates a TableConsumer, deriving any additional required configuration from a given environment.uk.ac.starlink.task.Parameter<?>[]getAssociatedParameters()Returns a list of any parameters which are associated with this mode.java.lang.StringgetDescription()Returns a textual description of this processing mode.static voidsetChecked(cds.moc.HealpixMoc moc, boolean checked)Sets the continuous checking flag for the MOC object.
-
-
-
Method Detail
-
getAssociatedParameters
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
Description copied from interface:ProcessingModeReturns a list of any parameters which are associated with this mode.- Specified by:
getAssociatedParametersin interfaceProcessingMode- Returns:
- parameter list
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ProcessingModeReturns a textual description of this processing mode. This will be included in the user document so should be in XML.- Specified by:
getDescriptionin 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:ProcessingModeCreates a TableConsumer, deriving any additional required configuration from a given environment.- Specified by:
createConsumerin interfaceProcessingMode- Parameters:
env- execution environment- Throws:
uk.ac.starlink.task.TaskException
-
setChecked
public static void setChecked(cds.moc.HealpixMoc moc, boolean checked) throws java.io.IOExceptionSets the continuous checking flag for the MOC object. When continuous checking is on, parent pixels are supposed to get weeded out as adds are done. However, it's much slower.- Parameters:
moc- MOC to affectchecked- true iff continuous checking should be performed- Throws:
java.io.IOException
-
-