\chapter{CUBE On-Line Help}
\label{sec:CUBE:package}
\section{List of CUBE languages}
\label{sec:CUBE:languages}
\index{Language list}
\begin{PlusVerbatim}
  ADM\                                  +blue{Commands to manage list of cubes}
  CUBE\             +blue{Commands that performs various computations on cubes}
  GO\                      +blue{Commands to visualize or interact with a cube}
  HELP\                        +blue{Commands to get help or debug the program}
  SET\                 +blue{Commands that set global behaviors of the program}
  FIT\                                                      +blue{COMMAND fits}
\end{PlusVerbatim}
\newpage{}
\section{ADM Language On-Line Help}
\label{sec:ADM:help}
\index{ADM command list}
\begin{PlusVerbatim}
  ADM\                                  +blue{Commands to manage list of cubes}
---------------------------------------------------------------------------
  DAG                                             +blue{For debugging purposes}
  DIRECTORY                +blue{Define directories where CUBE looks for files}
  FIND                                       +blue{Search for cubes on the DAG}
  FREE                                              +blue{Free the current DAG}
  HISTORY               +blue{Display and interact with the processing history}
  IMPORT                                       +blue{Import files into the DAG}
  LIST            +blue{List the cubes in the default index or the given index}
  MEMORY                            +blue{Display the current memory footprint}
  REMOVE                                      +blue{Remove a cube from the DAG}
  SNAPSHOT                    +blue{Save the current DAG structure to the disk}
  UNDO                         +blue{Undo a command and remove it from history}

\end{PlusVerbatim}
\subsection{DAG}
\label{sec:ADM:DAG:help}
\index{ADM DAG command}
\begin{PlusVerbatim}
                                                              +blue{DAG} action
---------------------------------------------------------------------------
  Abstract                                        +blue{For debugging purposes}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) ACTION                            +blue{Action to be executed}
     Possible values: INIT, ADD, READ, PLIST, DIGRAPH or WRITE
\end{PlusVerbatim}
\subsection{DIRECTORY}
\label{sec:ADM:DIRECTORY:help}
\index{ADM DIRECTORY command}
\begin{PlusVerbatim}
                                                +blue{DIRECTORY} [type dirname]
---------------------------------------------------------------------------
  Abstract                 +blue{Define directories where CUBE looks for files}
---------------------------------------------------------------------------
  Define the directories where CUBE looks for and/or stores raw (RAW),
  temporary (TMP) or reduced (RED) cubes. Defaults are ./raw/, ./tmp/,
  and ./red/ respectively.

  Without argument, display the current values. The current values are
  also visible in the SIC structure CUBE%DIR%.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TYPE                                    +blue{Directory types}
     Possible values: RAW, TMP or RED
  #2 (optional)  DIRNAME                          +blue{Directory name or path}
\end{PlusVerbatim}
\subsection{FIND}
\label{sec:ADM:FIND:help}
\index{ADM FIND command}
\begin{PlusVerbatim}
  Syntax                       +blue{FIND} [+blue{/ENTRY} n1 [n2]] [+blue{/OBSERVATORY} name]
                   [+blue{/SOURCE} name] [+blue{/LINE} name] [+blue{/FAMILY} name] [+blue{/TAG} tag]
                                                 [+blue{/IDENTIFIER} id1 [id2]]
---------------------------------------------------------------------------
  Abstract                                   +blue{Search for cubes on the DAG}
---------------------------------------------------------------------------
  Search the DAG to build a current Index, according to selection
  criteria defined by the options. If no options are given the current
  index will contains all cubes on the DAG.
---------------------------------------------------------------------------
  /ENTRY                 +blue{search for the specified range of entry numbers}
  /OBSERVATORY                      +blue{search for the specified observatory}
  /SOURCE                                          +blue{search by source name}
  /LINE                                              +blue{search by line name}
  /FAMILY                           +blue{search for the specified family name}
  /TAG                              +blue{search for the specified tag pattern}
  /IDENTIFIER              +blue{search for the specified range of identifiers}
\end{PlusVerbatim}
\subsubsection{FIND /ENTRY}
\label{sec:ADM:FIND:ENTRY:help}
\index{ADM FIND /ENTRY option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/ENTRY} n1 [n2]
---------------------------------------------------------------------------
  /ENTRY                 +blue{search for the specified range of entry numbers}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) N1                                 +blue{First entry in range}
  #2 (optional)  N2                                +blue{Second entry in range}

\end{PlusVerbatim}
\subsubsection{FIND /OBSERVATORY}
\label{sec:ADM:FIND:OBSERVATORY:help}
\index{ADM FIND /OBSERVATORY option}
\begin{PlusVerbatim}
  Syntax                                               +blue{/OBSERVATORY} name
---------------------------------------------------------------------------
  /OBSERVATORY                      +blue{search for the specified observatory}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                   +blue{Observatory name}

\end{PlusVerbatim}
\subsubsection{FIND /SOURCE}
\label{sec:ADM:FIND:SOURCE:help}
\index{ADM FIND /SOURCE option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/SOURCE} name
---------------------------------------------------------------------------
  /SOURCE                                          +blue{search by source name}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                        +blue{Source name}

\end{PlusVerbatim}
\subsubsection{FIND /LINE}
\label{sec:ADM:FIND:LINE:help}
\index{ADM FIND /LINE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/LINE} name
---------------------------------------------------------------------------
  /LINE                                              +blue{search by line name}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                          +blue{Line name}

\end{PlusVerbatim}
\subsubsection{FIND /FAMILY}
\label{sec:ADM:FIND:FAMILY:help}
\index{ADM FIND /FAMILY option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/FAMILY} name
---------------------------------------------------------------------------
  /FAMILY                           +blue{search for the specified family name}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                        +blue{Family name}

\end{PlusVerbatim}
\subsubsection{FIND /TAG}
\label{sec:ADM:FIND:TAG:help}
\index{ADM FIND /TAG option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/TAG} tag
---------------------------------------------------------------------------
  /TAG                              +blue{search for the specified tag pattern}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TAG                                         +blue{Tag pattern}

\end{PlusVerbatim}
\subsubsection{FIND /IDENTIFIER}
\label{sec:ADM:FIND:IDENTIFIER:help}
\index{ADM FIND /IDENTIFIER option}
\begin{PlusVerbatim}
  Syntax                                           +blue{/IDENTIFIER} id1 [id2]
---------------------------------------------------------------------------
  /IDENTIFIER              +blue{search for the specified range of identifiers}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) ID1                           +blue{First identifier in range}
  #2 (optional)  ID2                          +blue{Second identifier in range}

\end{PlusVerbatim}
\subsection{FREE}
\label{sec:ADM:FREE:help}
\index{ADM FREE command}
\begin{PlusVerbatim}
                                                                    +blue{FREE}
---------------------------------------------------------------------------
  Abstract                                          +blue{Free the current DAG}
---------------------------------------------------------------------------
  Free the DAG, i.e. delete all the cube and history structures. Beware
  memory-only objects are lost during this operation (use command
  SNAPSHOT to save them for possible later reuse). In return the DAG is
  ready for use as if starting from scratch.
\end{PlusVerbatim}
\subsection{HISTORY}
\label{sec:ADM:HISTORY:help}
\index{ADM HISTORY command}
\begin{PlusVerbatim}
                                                                 +blue{HISTORY}
---------------------------------------------------------------------------
  Abstract              +blue{Display and interact with the processing history}
\end{PlusVerbatim}
\subsection{IMPORT}
\label{sec:ADM:IMPORT:help}
\index{ADM IMPORT command}
\begin{PlusVerbatim}
                       +blue{IMPORT} [Directory|DagFile|FilePattern] [+blue{/MAPPING}]
---------------------------------------------------------------------------
  Abstract                                     +blue{Import files into the DAG}
---------------------------------------------------------------------------
  With a file pattern as argument (e.g. raw/*{.lmv|.fits}), import
  files using this pattern (pattern is assumed relative from current
  directory, if relevant). With a directory name as argument, import
  all files (*.*, only Gildas Data Format or FITS format files are
  imported) from this directory (no recursion). With a DAG file name as
  argument (*.dag), reload it from disk.

  Without argument, import files from the RAW directory.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TARGET  +blue{Import target, a DagFile, a directory or a File}
---------------------------------------------------------------------------
  /MAPPING              +blue{Import files with proper tags based on extension}
\end{PlusVerbatim}
\subsubsection{IMPORT /MAPPING}
\label{sec:ADM:IMPORT:MAPPING:help}
\index{ADM IMPORT /MAPPING option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/MAPPING}
---------------------------------------------------------------------------
  /MAPPING              +blue{Import files with proper tags based on extension}

\end{PlusVerbatim}
\subsection{LIST}
\label{sec:ADM:LIST:help}
\index{ADM LIST command}
\begin{PlusVerbatim}
  Syntax             +blue{LIST} [cube] [+blue{/INDEX} IndexName] [+blue{/TOC} topic] [+blue{/PAGE}]
                        [+blue{/COLUMNS} col1 col2 ... coln] [+blue{/FILE} OutputFile]
                                                     [+blue{/VARIABLE} varname]
---------------------------------------------------------------------------
  Abstract        +blue{List the cubes in the default index or the given index}
---------------------------------------------------------------------------
  LIST is used for a quick look to cube headers, in a more or less
  detailed format. A medium-sized format is used by default, this can
  be changed with option /COLUMNS. If the list is too large it can be
  displayed page by page with option /PAGE. The list can be output to
  an ASCII file with option /FILE.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                            +blue{Cube identifier pattern}
---------------------------------------------------------------------------
  /INDEX                         +blue{Override the default index to be listed}
  /TOC                                    +blue{Table Of Contents of the index}
  /PAGE                                            +blue{Page through the list}
  /COLUMNS                                   +blue{Define columns to be listed}
  /FILE                               +blue{Define an output file for the list}
  /VARIABLE       +blue{Define the name of the SIC variable containing the TOC}
\end{PlusVerbatim}
\subsubsection{LIST /INDEX}
\label{sec:ADM:LIST:INDEX:help}
\index{ADM LIST /INDEX option}
\begin{PlusVerbatim}
  Syntax                                                +blue{/INDEX} IndexName
---------------------------------------------------------------------------
  /INDEX                         +blue{Override the default index to be listed}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) INDEXNAME                +blue{Name of the index to be listed}
     Possible values: DAG or CURRENT

\end{PlusVerbatim}
\subsubsection{LIST /TOC}
\label{sec:ADM:LIST:TOC:help}
\index{ADM LIST /TOC option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/TOC} topic
---------------------------------------------------------------------------
  /TOC                                    +blue{Table Of Contents of the index}
---------------------------------------------------------------------------
  A summary of the different values of each topic is made, plus a final
  summary of all the combinations (setups).By default, all topics are
  used. The table of contents is also saved in a SIC structure. The
  default name for the structure is TOC%, this can be changed by using
  the option /VARIABLE. The content of the structure is updated after
  each call to the command LIST /TOC. One must take care that
  subsequent calls to FIND can lead to values in TOC% that are
  inconsistent with the actual index.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TOPIC                     +blue{Topic(s) over which build TOC}
     Possible values: SOURCE, LINE or OBSERVATORY

\end{PlusVerbatim}
\subsubsection{LIST /PAGE}
\label{sec:ADM:LIST:PAGE:help}
\index{ADM LIST /PAGE option}
\begin{PlusVerbatim}
  Syntax                                                           +blue{/PAGE}
---------------------------------------------------------------------------
  /PAGE                                            +blue{Page through the list}

\end{PlusVerbatim}
\subsubsection{LIST /COLUMNS}
\label{sec:ADM:LIST:COLUMNS:help}
\index{ADM LIST /COLUMNS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/COLUMNS} col1 col2 ... coln
---------------------------------------------------------------------------
  /COLUMNS                                   +blue{Define columns to be listed}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) COLUMN                           +blue{Column(s) to be listed}
     Possible values: ENTRY, IDENTIFIER, PARENTS, CHILDREN, TWINS, UNIT,
     SOURCE, PROJTYPE, L0, M0, PROJANGLE, SPALINC, SPAMINC, LINE,
     SPEFREQVAL, SPEFREQINC, SPEVELOVAL, BMAJOR, BMINOR, BPA,
     OBSERVATORY, LOCATION, ACCESS, ORIGIN, FAMILY, TAG, TYPE, VARIABLE,
     SEPARATOR, HISTORY, MEMSIZE, DATASIZE, DEFAULT, BEAM, PROJECTION,
     GRAPH, SPECTRAL, SPATIAL, TUPLE or SIZE

\end{PlusVerbatim}
\subsubsection{LIST /FILE}
\label{sec:ADM:LIST:FILE:help}
\index{ADM LIST /FILE option}
\begin{PlusVerbatim}
  Syntax                                                +blue{/FILE} OutputFile
---------------------------------------------------------------------------
  /FILE                               +blue{Define an output file for the list}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) OUTPUTFILE           +blue{Name of the file to store the list}

\end{PlusVerbatim}
\subsubsection{LIST /VARIABLE}
\label{sec:ADM:LIST:VARIABLE:help}
\index{ADM LIST /VARIABLE option}
\begin{PlusVerbatim}
  Syntax                                               +blue{/VARIABLE} varname
---------------------------------------------------------------------------
  /VARIABLE       +blue{Define the name of the SIC variable containing the TOC}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME       +blue{Name of the SIC variable to store the TOC}

\end{PlusVerbatim}
\subsection{MEMORY}
\label{sec:ADM:MEMORY:help}
\index{ADM MEMORY command}
\begin{PlusVerbatim}
                                                                  +blue{MEMORY}
---------------------------------------------------------------------------
  Abstract                          +blue{Display the current memory footprint}
\end{PlusVerbatim}
\subsection{REMOVE}
\label{sec:ADM:REMOVE:help}
\index{ADM REMOVE command}
\begin{PlusVerbatim}
                                                         +blue{REMOVE} [CubeID]
---------------------------------------------------------------------------
  Abstract                                    +blue{Remove a cube from the DAG}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                           +blue{[CubeID]}
\end{PlusVerbatim}
\subsection{SNAPSHOT}
\label{sec:ADM:SNAPSHOT:help}
\index{ADM SNAPSHOT command}
\begin{PlusVerbatim}
                                                    +blue{SNAPSHOT} [+blue{/REIMPORT}]
---------------------------------------------------------------------------
  Abstract                    +blue{Save the current DAG structure to the disk}
---------------------------------------------------------------------------
  Perform a snapshot (from memory to disk) of the relevant buffers for
  later reuse in a new CUBE session. In details: 1) memory-only cubes
  (i.e. created during the session in memory mode) are dumped in the
  TMP directory under an arbitrary name (based on their identifier and
  access mode). Other cubes (RAW and RED cubes) are not dumped as they
  are disk files; 2) the DAG is saved on disk (name cube.dag) in the
  TMP directory. Option /REIMPORT does the reverse operation, e.g. to
  restart working in a new cube session from an existing snapshot.
---------------------------------------------------------------------------
  /REIMPORT                     +blue{Reimport the buffers from disk to memory}
\end{PlusVerbatim}
\subsubsection{SNAPSHOT /REIMPORT}
\label{sec:ADM:SNAPSHOT:REIMPORT:help}
\index{ADM SNAPSHOT /REIMPORT option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/REIMPORT}
---------------------------------------------------------------------------
  /REIMPORT                     +blue{Reimport the buffers from disk to memory}

\end{PlusVerbatim}
\subsection{UNDO}
\label{sec:ADM:UNDO:help}
\index{ADM UNDO command}
\begin{PlusVerbatim}
                                                        +blue{UNDO} [CommandID]
---------------------------------------------------------------------------
  Abstract                     +blue{Undo a command and remove it from history}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  COMMAND                                     +blue{[CommandID]}
\end{PlusVerbatim}
\section{CUBE Language On-Line Help}
\label{sec:CUBE:help}
\index{CUBE command list}
\begin{PlusVerbatim}
  CUBE\             +blue{Commands that performs various computations on cubes}
---------------------------------------------------------------------------
  BASELINE                               +blue{Subtract a baseline from a cube}
  CIRCLE                    +blue{Average intensities of a cube along ellipses}
  CONSISTENCY             +blue{Check the consistency between two cube headers}
  CONVERT                          +blue{Convert cube between brightness units}
  EXPORT                                             +blue{Export reduced data}
  EXTRACT                                              +blue{Extract a subcube}
  FEATHER             +blue{Combine two cubes of different spatial resolutions}
  FFT                     +blue{Fourier transform a cube onto visibility space}
  HEADER                                    +blue{List or edit the cube header}
  HISTO1D                                +blue{Produce a histogram from a cube}
  HISTO2D                       +blue{Compute the joint histogram of two cubes}
  LUMINOSITY                      +blue{Compute the total luminosity of a cube}
  MODIFY                                   +blue{Modify CUBE header coherently}
  MOMENTS            +blue{Compute various moments for each spectrum of a cube}
  NAN                                    +blue{Replace blanked values with NaN}
  NOISE                 +blue{Compute the noise RMS of each spectrum of a cube}
  POLY2MASK                            +blue{Transfer a polygon onto a 2D mask}
  REPLACE                     +blue{Replace a value in a cube by another value}
  REPROJECT                         +blue{Reproject the spatial grid of a cube}
  RESAMPLE                                    +blue{Resample a cube spectrally}
  RESIDUALS                  +blue{Compute cube1-cube2 and cube1/(cube1-cube2)}
  ROTATE                                   +blue{Rotate a cube around a center}
  SHUFFLE                            +blue{Shuffle the velocity axis of a cube}
  SLICE                 +blue{Extract a 2D Position-Velocity slice from a cube}
  SMOOTH                                         +blue{Smooth a cube spatially}
  SNR                                  +blue{Compute the signal to noise ratio}
  SORT                   +blue{Sort the intensities of each spectrum of a cube}
  STACK                             +blue{Stack a cube spectrally or spatially}
  WINDOW              +blue{Find the signal windows of each spectrum of a cube}

\end{PlusVerbatim}
\subsection{BASELINE}
\label{sec:CUBE:BASELINE:help}
\index{CUBE BASELINE command}
\begin{PlusVerbatim}
  Syntax         +blue{BASELINE} [cube] [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]]
                                             [+blue{/MEDIAN}] [+blue{/WAVELET} degree]
                 [+blue{/POLYNOMIAL} deg1 [tr12 deg2 [... [trij degj [kind]]]]]
---------------------------------------------------------------------------
  Abstract                               +blue{Subtract a baseline from a cube}
---------------------------------------------------------------------------
  Three algorithms are available to compute a baseline: /MEDIAN,
  /WAVELET and /POLYNOMIAL. Only one of these three can be given at a
  time. If no algorithm option is given BASELINE defaults to /MEDIAN.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /RANGE                             +blue{Define the signal velocity range(s)}
  /MEDIAN             +blue{Use a median running filter to define the baseline}
  /WAVELET                   +blue{Use a wavelet filter to define the baseline}
  /POLYNOMIAL           +blue{Fit Chebyshev polynomials to define the baseline}
\end{PlusVerbatim}
\subsubsection{BASELINE /RANGE}
\label{sec:CUBE:BASELINE:RANGE:help}
\index{CUBE BASELINE /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE                             +blue{Define the signal velocity range(s)}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{BASELINE /MEDIAN}
\label{sec:CUBE:BASELINE:MEDIAN:help}
\index{CUBE BASELINE /MEDIAN option}
\begin{PlusVerbatim}
  Syntax                                                         +blue{/MEDIAN}
---------------------------------------------------------------------------
  /MEDIAN             +blue{Use a median running filter to define the baseline}

\end{PlusVerbatim}
\subsubsection{BASELINE /WAVELET}
\label{sec:CUBE:BASELINE:WAVELET:help}
\index{CUBE BASELINE /WAVELET option}
\begin{PlusVerbatim}
  Syntax                                                 +blue{/WAVELET} degree
---------------------------------------------------------------------------
  /WAVELET                   +blue{Use a wavelet filter to define the baseline}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) DEGREE                                   +blue{Wavelet degree}

\end{PlusVerbatim}
\subsubsection{BASELINE /POLYNOMIAL}
\label{sec:CUBE:BASELINE:POLYNOMIAL:help}
\index{CUBE BASELINE /POLYNOMIAL option}
\begin{PlusVerbatim}
  Syntax            +blue{/POLYNOMIAL} deg1 [tr12 deg2 [... [trij degj [kind]]]
---------------------------------------------------------------------------
  /POLYNOMIAL           +blue{Fit Chebyshev polynomials to define the baseline}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) DEG1                          +blue{[First] Polynomial degree}
  #2 (optional)  TR12     +blue{Transition between first and second polynomial}
  #3 (optional)  DEG2                   +blue{Degree for the second polynomial}
  #4 (optional)  TRIJ          +blue{Transition between ith and jth polynomial}
  #5 (optional)  DEGJ                      +blue{Degree for the jth polynomial}
  #6 (optional)  KIND      +blue{Kind of the transition(s) between polynomials}

\end{PlusVerbatim}
\subsection{CIRCLE}
\label{sec:CUBE:CIRCLE:help}
\index{CUBE CIRCLE command}
\begin{PlusVerbatim}
  Syntax                   +blue{CIRCLE} [cube] [+blue{/CENTER} lcen mcen type [unit]]
                                [+blue{/ELLIPSE} major [minor [pang]]] [+blue{/ASCII}]
---------------------------------------------------------------------------
  Abstract                  +blue{Average intensities of a cube along ellipses}
---------------------------------------------------------------------------
  By default the averaging is circular and centered at the projection
  center. This can be changed by using options /CENTER and /ELLIPSE
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /CENTER                                          +blue{Center of the ellipse}
  /ELLIPSE                        +blue{Define ellipse axes and position angle}
  /ASCII                                            +blue{Produce ASCII output}
\end{PlusVerbatim}
\subsubsection{CIRCLE /CENTER}
\label{sec:CUBE:CIRCLE:CENTER:help}
\index{CUBE CIRCLE /CENTER option}
\begin{PlusVerbatim}
  Syntax                                   +blue{/CENTER} lcen mcen type [unit]
---------------------------------------------------------------------------
  /CENTER                                          +blue{Center of the ellipse}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LCEN                           +blue{Position in L coordinate}
  #2 (mandatory) MCEN                           +blue{Position in m coordinate}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                             +blue{Unit for lcen and mcen}

\end{PlusVerbatim}
\subsubsection{CIRCLE /ELLIPSE}
\label{sec:CUBE:CIRCLE:ELLIPSE:help}
\index{CUBE CIRCLE /ELLIPSE option}
\begin{PlusVerbatim}
  Syntax                                   +blue{/ELLIPSE} major [minor [pang]]
---------------------------------------------------------------------------
  /ELLIPSE                        +blue{Define ellipse axes and position angle}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) MAJOR                                        +blue{Major axis}
  #2 (optional)  MINOR                                        +blue{Minor axis}
  #3 (optional)  PANG                                     +blue{Position angle}

\end{PlusVerbatim}
\subsubsection{CIRCLE /ASCII}
\label{sec:CUBE:CIRCLE:ASCII:help}
\index{CUBE CIRCLE /ASCII option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/ASCII}
---------------------------------------------------------------------------
  /ASCII                                            +blue{Produce ASCII output}

\end{PlusVerbatim}
\subsection{CONSISTENCY}
\label{sec:CUBE:CONSISTENCY:help}
\index{CUBE CONSISTENCY command}
\begin{PlusVerbatim}
  Syntax                      +blue{CONSISTENCY} cube1 cube2 [+blue{/NOCHECK} section]
                    [+blue{/TOLERANCE} [SPECTRAL Tol] [SPATIAL Tol] [BEAM Tol]]
---------------------------------------------------------------------------
  Abstract                +blue{Check the consistency between two cube headers}
---------------------------------------------------------------------------
  The consistency is divided into 4 sections. The SPATIAL, and SPECTRAL
  sections describe the spatial and spectral characterstics of the
  cube, respectively. The ARRAY and OBSERVATORY sections describe the
  characteristics of the data array and used telescope, respectively.
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CUBE1                                        +blue{First cube}
  #2 (mandatory) CUBE2                                       +blue{Second cube}
---------------------------------------------------------------------------
  /NOCHECK                +blue{Set which consistency check(s) will be ignored}
  /TOLERANCE           +blue{Customize the tolerance on parameters consistency}
\end{PlusVerbatim}
\subsubsection{CONSISTENCY /NOCHECK}
\label{sec:CUBE:CONSISTENCY:NOCHECK:help}
\index{CUBE CONSISTENCY /NOCHECK option}
\begin{PlusVerbatim}
  Syntax                                                +blue{/NOCHECK} section
---------------------------------------------------------------------------
  /NOCHECK                +blue{Set which consistency check(s) will be ignored}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SECTION   +blue{Section(s) to be ignored in consistency check}
     Possible values: SPATIAL, SPECTRAL, ARRAY or OBSERVATORY

\end{PlusVerbatim}
\subsubsection{CONSISTENCY /TOLERANCE}
\label{sec:CUBE:CONSISTENCY:TOLERANCE:help}
\index{CUBE CONSISTENCY /TOLERANCE option}
\begin{PlusVerbatim}
  Syntax              +blue{/TOLERANCE} [SPECTRAL Tol] [SPATIAL Tol] [BEAM Tol]
---------------------------------------------------------------------------
  /TOLERANCE           +blue{Customize the tolerance on parameters consistency}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SECTION  +blue{Section(s) that will have a modified tolerance}
     Possible values: SPATIAL, SPECTRAL or BEAM
  #2 (mandatory) TOL       +blue{New tolerance for a given section, in percent}

\end{PlusVerbatim}
\subsection{CONVERT}
\label{sec:CUBE:CONVERT:help}
\index{CUBE CONVERT command}
\begin{PlusVerbatim}
                 +blue{CONVERT} [cube] [+blue{/UNIT} name] [+blue{/EFFICIENCIES} Beff [Feff]]
---------------------------------------------------------------------------
  Abstract                         +blue{Convert cube between brightness units}
---------------------------------------------------------------------------
  Input cube must be in a brightness unit
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /UNIT                                           +blue{Output brightness unit}
  /EFFICIENCIES                          +blue{Convert From K (Ta*) to K (Tmb)}
\end{PlusVerbatim}
\subsubsection{CONVERT /UNIT}
\label{sec:CUBE:CONVERT:UNIT:help}
\index{CUBE CONVERT /UNIT option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/UNIT} name
---------------------------------------------------------------------------
  /UNIT                                           +blue{Output brightness unit}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                           +blue{New unit}
     Possible values: K (Ta*), K (Tmb), Jy/beam, Jy/pixel or MJy/sr

\end{PlusVerbatim}
\subsubsection{CONVERT /EFFICIENCIES}
\label{sec:CUBE:CONVERT:EFFICIENCIES:help}
\index{CUBE CONVERT /EFFICIENCIES option}
\begin{PlusVerbatim}
  Syntax                                       +blue{/EFFICIENCIES} Beff [Feff]
---------------------------------------------------------------------------
  /EFFICIENCIES                          +blue{Convert From K (Ta*) to K (Tmb)}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) BEFF                                    +blue{Beam efficiency}
  #2 (optional)  FEFF                                 +blue{Forward efficiency}

\end{PlusVerbatim}
\subsection{EXPORT}
\label{sec:CUBE:EXPORT:help}
\index{CUBE EXPORT command}
\begin{PlusVerbatim}
  Syntax            +blue{EXPORT} name [+blue{/FORMAT} type] [+blue{/BLANKING} [Bval [Eval]]]
                                 [+blue{/NAME} [dir/]name[.ext]] [+blue{/ACCESS} type]
---------------------------------------------------------------------------
  Abstract                                           +blue{Export reduced data}
---------------------------------------------------------------------------
  Export a cube to the RED (reduction) directory, by default the file
  name is based on its family name and tag. The option /NAME allows to
  customize the output file base name, and optionally the directory and
  the file extension.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                +blue{Cube to be exported}
---------------------------------------------------------------------------
  /FORMAT                                 +blue{Set the data format to be used}
  /BLANKING           +blue{Export with blank values instead of NaN (GDF only)}
  /NAME                            +blue{Customize the name of the output file}
  /ACCESS                        +blue{Set the access order of the output file}
\end{PlusVerbatim}
\subsubsection{EXPORT /FORMAT}
\label{sec:CUBE:EXPORT:FORMAT:help}
\index{CUBE EXPORT /FORMAT option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/FORMAT} type
---------------------------------------------------------------------------
  /FORMAT                                 +blue{Set the data format to be used}
---------------------------------------------------------------------------
  Default is FITS if the option is omitted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                                        +blue{Format type}
     Possible values: FITS or GDF

\end{PlusVerbatim}
\subsubsection{EXPORT /BLANKING}
\label{sec:CUBE:EXPORT:BLANKING:help}
\index{CUBE EXPORT /BLANKING option}
\begin{PlusVerbatim}
  Syntax                                         +blue{/BLANKING} [Bval [Eval]]
---------------------------------------------------------------------------
  /BLANKING           +blue{Export with blank values instead of NaN (GDF only)}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  BVAL                     +blue{Blanking value (default -1000)}
  #2 (optional)  EVAL            +blue{Tolerance on blanking value (default 0)}

\end{PlusVerbatim}
\subsubsection{EXPORT /NAME}
\label{sec:CUBE:EXPORT:NAME:help}
\index{CUBE EXPORT /NAME option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/NAME} [dir/]name[.ext]
---------------------------------------------------------------------------
  /NAME                            +blue{Customize the name of the output file}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                          +blue{Name of the exported file}

\end{PlusVerbatim}
\subsubsection{EXPORT /ACCESS}
\label{sec:CUBE:EXPORT:ACCESS:help}
\index{CUBE EXPORT /ACCESS option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/ACCESS} type
---------------------------------------------------------------------------
  /ACCESS                        +blue{Set the access order of the output file}
---------------------------------------------------------------------------
  Defaults to last used access
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                                        +blue{Access type}
     Possible values: IMAGE or SPECTRUM

\end{PlusVerbatim}
\subsection{EXTRACT}
\label{sec:CUBE:EXTRACT:help}
\index{CUBE EXTRACT command}
\begin{PlusVerbatim}
  Syntax                       +blue{EXTRACT} [cube] [+blue{/RANGE} first last [unit]]
                                      [+blue{/FREQUENCY} line frequency [unit]]
                  [+blue{/CENTER} lcen mcen type [unit]] [+blue{/SIZE} sl [sm [unit]]]
---------------------------------------------------------------------------
  Abstract                                             +blue{Extract a subcube}
---------------------------------------------------------------------------
  The velocity range may be around the current reference frequency for
  the cube, or it can be around a new reference frequency (/FREQUENCY).
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /RANGE                          +blue{Spectral range of the extracted region}
  /FREQUENCY +blue{Line name & associated rest frequency of the extracted spec}
  /CENTER                         +blue{Spatial center of the extracted region}
  /SIZE                             +blue{Spatial size of the extracted region}
\end{PlusVerbatim}
\subsubsection{EXTRACT /RANGE}
\label{sec:CUBE:EXTRACT:RANGE:help}
\index{CUBE EXTRACT /RANGE option}
\begin{PlusVerbatim}
  Syntax                                        +blue{/RANGE} first last [unit]
---------------------------------------------------------------------------
  /RANGE                          +blue{Spectral range of the extracted region}
---------------------------------------------------------------------------
  A single spectral range is accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FIRST                                    +blue{Start of range}
  #2 (mandatory) LAST                                       +blue{End of range}
  #3 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{EXTRACT /FREQUENCY}
\label{sec:CUBE:EXTRACT:FREQUENCY:help}
\index{CUBE EXTRACT /FREQUENCY option}
\begin{PlusVerbatim}
  Syntax                                +blue{/FREQUENCY} line frequency [unit]
---------------------------------------------------------------------------
  /FREQUENCY +blue{Line name & associated rest frequency of the extracted spec}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LINE                                          +blue{Line name}
  #2 (mandatory) FREQUENCY                                +blue{Line frequency}
  #3 (optional)  UNIT                                     +blue{Frequency unit}
     Possible values: THz, GHz, MHz or KHz

\end{PlusVerbatim}
\subsubsection{EXTRACT /CENTER}
\label{sec:CUBE:EXTRACT:CENTER:help}
\index{CUBE EXTRACT /CENTER option}
\begin{PlusVerbatim}
  Syntax                                   +blue{/CENTER} lcen mcen type [unit]
---------------------------------------------------------------------------
  /CENTER                         +blue{Spatial center of the extracted region}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LCEN                           +blue{Position in L coordinate}
  #2 (mandatory) MCEN                           +blue{Position in m coordinate}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                             +blue{Unit for lcen and mcen}

\end{PlusVerbatim}
\subsubsection{EXTRACT /SIZE}
\label{sec:CUBE:EXTRACT:SIZE:help}
\index{CUBE EXTRACT /SIZE option}
\begin{PlusVerbatim}
  Syntax                                            +blue{/SIZE} sl [sm [unit]]
---------------------------------------------------------------------------
  /SIZE                             +blue{Spatial size of the extracted region}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SL                                 +blue{Size in L coordinate}
  #2 (optional)  SM                                 +blue{Size in M coordinate}
  #3 (optional)  UNIT                                          +blue{Size unit}
     Possible values: radian, degree, minute or second

\end{PlusVerbatim}
\subsection{FEATHER}
\label{sec:CUBE:FEATHER:help}
\index{CUBE FEATHER command}
\begin{PlusVerbatim}
                                     +blue{FEATHER} lores hires [+blue{/FACTOR} lofac]
---------------------------------------------------------------------------
  Abstract            +blue{Combine two cubes of different spatial resolutions}
---------------------------------------------------------------------------
  The combination is done on the UV plane via the fourier transform of
  the input images. lores must have a coarser spatial resolution than
  hires. lores and hires must have the same spectral and spatial
  gridding, this can be achieved using CUBE\RESAMPLE and CUBE\REPROJECT
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LORES                             +blue{Lower resolution cube}
  #2 (mandatory) HIRES                            +blue{Higher resolution cube}
---------------------------------------------------------------------------
  /FACTOR                 +blue{Define a flux density scaling factor for LORES}
\end{PlusVerbatim}
\subsubsection{FEATHER /FACTOR}
\label{sec:CUBE:FEATHER:FACTOR:help}
\index{CUBE FEATHER /FACTOR option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/FACTOR} lofac
---------------------------------------------------------------------------
  /FACTOR                 +blue{Define a flux density scaling factor for LORES}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LOFAC             +blue{flux density scaling factor for LORES}

\end{PlusVerbatim}
\subsection{FFT}
\label{sec:CUBE:FFT:help}
\index{CUBE FFT command}
\begin{PlusVerbatim}
                                                              +blue{FFT} [cube]
---------------------------------------------------------------------------
  Abstract                +blue{Fourier transform a cube onto visibility space}
---------------------------------------------------------------------------
  The output is a complex cube. WARNING: Currently the header of the
  output cube does not contain coherent information about the U and V
  axes sampling
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input data}
\end{PlusVerbatim}
\subsection{HEADER}
\label{sec:CUBE:HEADER:help}
\index{CUBE HEADER command}
\begin{PlusVerbatim}
  Syntax                   +blue{HEADER} [cube] [+blue{/FORMAT} format] [+blue{/EDIT} action]
                            [+blue{/SOURCE} name] [+blue{/SPATIALFRAME} frame [epoch]]
                              [+blue{/PTYPE} type] [+blue{/PCENTER} l0 m0 type [unit]]
                                                 [+blue{/PANGLE} pang [paunit]]
                            [+blue{/BEAM} major [minor [unit [pang [paunit]]]]]
                          [+blue{/UNIT} name] [+blue{/AXIS} name n ref val inc [unit]]
                                [+blue{/OBSERVATORY} [+-]Name1 [... [+-]NameN]]
                                   [+blue{/VELOCITY} value [unit [convention]]]
                                   [+blue{/REDSHIFT} value [unit [convention]]]
                                   [+blue{/FREQUENCY} line rest [image [unit]]]
                                  [+blue{/WAVELENGTH} line rest [image [unit]]]
                            [+blue{/SPECTRALFRAME} type] [+blue{/AXNAMES} ax1 ... axn]
---------------------------------------------------------------------------
  Abstract                                  +blue{List or edit the cube header}
---------------------------------------------------------------------------
  List header or edit information for cubename. The option /EDIT opens
  the header editing mode. In this mode several options are available
  to modify the variables of the header.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /FORMAT                           +blue{Select the format to list the header}
  /EDIT                 +blue{Open, close, or abort the header editing process}
  /SOURCE                        +blue{Change source name when in editing mode}
  /SPATIALFRAME    +blue{Change spatial frame information when in editing mode}
  /PTYPE                                          +blue{Change projection type}
  /PCENTER                                      +blue{Change projection center}
  /PANGLE                                        +blue{Change projection angle}
  /BEAM       +blue{Change spatial resolution information when in editing mode}
  /UNIT                     +blue{Change unit of the cube when in editing mode}
  /AXIS           +blue{Change the description of an axis when in editing mode}
  /OBSERVATORY       +blue{Update the observatory section when in editing mode}
  /VELOCITY            +blue{Change the systemic velocity when in editing mode}
  /REDSHIFT            +blue{Change the systemic redshift when in editing mode}
  /FREQUENCY      +blue{Change Line name, and frequencies when in editing mode}
  /WAVELENGTH      +blue{Change Line name, and wavelenght when in editing mode}
  /SPECTRALFRAME              +blue{Change spectral frame when in editing mode}
  /AXNAMES                             +blue{Change the names of the cube axes}
\end{PlusVerbatim}
\subsubsection{HEADER /FORMAT}
\label{sec:CUBE:HEADER:FORMAT:help}
\index{CUBE HEADER /FORMAT option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/FORMAT} format
---------------------------------------------------------------------------
  /FORMAT                           +blue{Select the format to list the header}
---------------------------------------------------------------------------
  The are 3 possible formats: CUBE (default if option is not given),
  GDF (same as in VECTOR\GREG) and FITS (List the FITS file header)
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FORMAT                    +blue{Listing format for the header}
     Possible values: CUBE, INTERFACE, FITS or GDF

\end{PlusVerbatim}
\subsubsection{HEADER /EDIT}
\label{sec:CUBE:HEADER:EDIT:help}
\index{CUBE HEADER /EDIT option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/EDIT} action
---------------------------------------------------------------------------
  /EDIT                 +blue{Open, close, or abort the header editing process}
---------------------------------------------------------------------------
  WARNING: Modifying the header does not modify the data coherently.
  The header editing mode is intended to correct the header of a cube
  that has missing or incorrect information.The currently available
  options for editing are: /UNIT, /SOURCE, /PROJECTION, /SPATIALFRAME,
  /BEAM, /AXIS, /OBSERVATORY, /VELOCITY, /REDSHIFT, /FREQUENCY,
  /WAVELENGTH and /SPECTRALFRAME
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) ACTION             +blue{Select the editing action to perform}
     Possible values: OPEN, CLOSE, BOTH or ABORT

\end{PlusVerbatim}
\subsubsection{HEADER /SOURCE}
\label{sec:CUBE:HEADER:SOURCE:help}
\index{CUBE HEADER /SOURCE option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/SOURCE} name
---------------------------------------------------------------------------
  /SOURCE                        +blue{Change source name when in editing mode}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                        +blue{Source name}

\end{PlusVerbatim}
\subsubsection{HEADER /SPATIALFRAME}
\label{sec:CUBE:HEADER:SPATIALFRAME:help}
\index{CUBE HEADER /SPATIALFRAME option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/SPATIALFRAME} frame [epoch]
---------------------------------------------------------------------------
  /SPATIALFRAME    +blue{Change spatial frame information when in editing mode}
---------------------------------------------------------------------------
  Frame can be Equatorial, Galactic, ICRS or Unknown
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                              +blue{type of spatial frame}
     Possible values: UNKNOWN, EQUATORIAL, GALACTIC, HORIZONTAL or ICRS
  #2 (optional)  EPOCH         +blue{Epoch of the spatial frame, if equatorial}

\end{PlusVerbatim}
\subsubsection{HEADER /PTYPE}
\label{sec:CUBE:HEADER:PTYPE:help}
\index{CUBE HEADER /PTYPE option}
\begin{PlusVerbatim}
  Syntax                                                     +blue{/PTYPE} type
---------------------------------------------------------------------------
  /PTYPE                                          +blue{Change projection type}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                                    +blue{Projection type}
     Possible values: GNOMONIC, ORTHOGRAPHIC, AZIMUTHAL, STEREOGRAPHIC,
     LAMBERT, AITOFF, RADIO, SFL, MOLLWEIDE, NCP or CARTESIAN

\end{PlusVerbatim}
\subsubsection{HEADER /PCENTER}
\label{sec:CUBE:HEADER:PCENTER:help}
\index{CUBE HEADER /PCENTER option}
\begin{PlusVerbatim}
  Syntax                                      +blue{/PCENTER} l0 m0 type [unit]
---------------------------------------------------------------------------
  /PCENTER                                      +blue{Change projection center}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) L0                   +blue{l Coordinate for projection center}
  #2 (mandatory) M0                   +blue{m Coordinate for projection center}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                                 +blue{Unit for l0 and m0}

\end{PlusVerbatim}
\subsubsection{HEADER /PANGLE}
\label{sec:CUBE:HEADER:PANGLE:help}
\index{CUBE HEADER /PANGLE option}
\begin{PlusVerbatim}
  Syntax                                           +blue{/PANGLE} pang [paunit]
---------------------------------------------------------------------------
  /PANGLE                                        +blue{Change projection angle}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  PANG                          +blue{Projection position angle}
  #2 (optional)  PAUNIT                              +blue{Position angle unit}
     Possible values: radian or degree

\end{PlusVerbatim}
\subsubsection{HEADER /BEAM}
\label{sec:CUBE:HEADER:BEAM:help}
\index{CUBE HEADER /BEAM option}
\begin{PlusVerbatim}
  Syntax                      +blue{/BEAM} major [minor [unit [pang [paunit]]]]
---------------------------------------------------------------------------
  /BEAM       +blue{Change spatial resolution information when in editing mode}
---------------------------------------------------------------------------
  If only the major axis is given the beam is assumed circular and
  hence minor = major
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) MAJOR                                   +blue{Beam major axis}
  #2 (optional)  MINOR                                   +blue{Beam minor axis}
  #3 (optional)  UNIT                                     +blue{Beam axes unit}
     Possible values: radian, minute, second or msecond
  #4 (optional)  PANG                                +blue{Beam position angle}
  #5 (optional)  PAUNIT                              +blue{Position angle unit}
     Possible values: radian or degree

\end{PlusVerbatim}
\subsubsection{HEADER /UNIT}
\label{sec:CUBE:HEADER:UNIT:help}
\index{CUBE HEADER /UNIT option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/UNIT} name
---------------------------------------------------------------------------
  /UNIT                     +blue{Change unit of the cube when in editing mode}
---------------------------------------------------------------------------
  Unit can be set to any value, however only the following brightness
  units are supported:
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                          +blue{Unit name}

\end{PlusVerbatim}
\subsubsection{HEADER /AXIS}
\label{sec:CUBE:HEADER:AXIS:help}
\index{CUBE HEADER /AXIS option}
\begin{PlusVerbatim}
  Syntax                                 +blue{/AXIS} name n ref val inc [unit]
---------------------------------------------------------------------------
  /AXIS           +blue{Change the description of an axis when in editing mode}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME                                          +blue{Axis name}
  #2 (mandatory) N                            +blue{number of elements in axis}
  #3 (mandatory) REF                                +blue{Axis reference point}
  #4 (mandatory) VAL                       +blue{Axis value at reference point}
  #5 (mandatory) INC                                      +blue{Axis increment}
  #6 (optional)  UNIT                               +blue{Unit for val and inc}

\end{PlusVerbatim}
\subsubsection{HEADER /OBSERVATORY}
\label{sec:CUBE:HEADER:OBSERVATORY:help}
\index{CUBE HEADER /OBSERVATORY option}
\begin{PlusVerbatim}
  Syntax                          +blue{/OBSERVATORY} [+-]Name1 [... [+-]NameN]
---------------------------------------------------------------------------
  /OBSERVATORY       +blue{Update the observatory section when in editing mode}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NAME1          +blue{First observatory to be added or removed}
  #2 (optional)  NAMEN          +blue{N-eth observatory to be added or removed}

\end{PlusVerbatim}
\subsubsection{HEADER /VELOCITY}
\label{sec:CUBE:HEADER:VELOCITY:help}
\index{CUBE HEADER /VELOCITY option}
\begin{PlusVerbatim}
  Syntax                             +blue{/VELOCITY} value [unit [convention]]
---------------------------------------------------------------------------
  /VELOCITY            +blue{Change the systemic velocity when in editing mode}
---------------------------------------------------------------------------
  Systemic redshift is updated accordingly
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VALUE                                   +blue{Reference value}
  #2 (optional)  UNIT                                               +blue{Unit}
     Possible values: km/s or m/s
  #3 (optional)  CONVENTION                              +blue{Convention type}
     Possible values: Unknown, Radio, Optical or Relativ

\end{PlusVerbatim}
\subsubsection{HEADER /REDSHIFT}
\label{sec:CUBE:HEADER:REDSHIFT:help}
\index{CUBE HEADER /REDSHIFT option}
\begin{PlusVerbatim}
  Syntax                             +blue{/REDSHIFT} value [unit [convention]]
---------------------------------------------------------------------------
  /REDSHIFT            +blue{Change the systemic redshift when in editing mode}
---------------------------------------------------------------------------
  Systemic velocity is updated accordingly
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VALUE                                   +blue{Reference value}
  #2 (optional)  UNIT                                               +blue{Unit}
     Possible values: Unknown
  #3 (optional)  CONVENTION                              +blue{Convention type}
     Possible values: Unknown, Radio, Optical or Relativ

\end{PlusVerbatim}
\subsubsection{HEADER /FREQUENCY}
\label{sec:CUBE:HEADER:FREQUENCY:help}
\index{CUBE HEADER /FREQUENCY option}
\begin{PlusVerbatim}
  Syntax                             +blue{/FREQUENCY} line rest [image [unit]]
---------------------------------------------------------------------------
  /FREQUENCY      +blue{Change Line name, and frequencies when in editing mode}
---------------------------------------------------------------------------
  Spectral increments and wavelengths updated accordingly, values in
  current frequency unit
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LINE                                          +blue{Line name}
  #2 (mandatory) REST                                   +blue{Rest frame value}
  #3 (optional)  IMAGE                                 +blue{Image frame value}
  #4 (optional)  UNIT                                               +blue{Unit}
     Possible values: THz, GHz, MHz or KHz

\end{PlusVerbatim}
\subsubsection{HEADER /WAVELENGTH}
\label{sec:CUBE:HEADER:WAVELENGTH:help}
\index{CUBE HEADER /WAVELENGTH option}
\begin{PlusVerbatim}
  Syntax                            +blue{/WAVELENGTH} line rest [image [unit]]
---------------------------------------------------------------------------
  /WAVELENGTH      +blue{Change Line name, and wavelenght when in editing mode}
---------------------------------------------------------------------------
  Spectral increments and frequencies updated accordingly, values in mm
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LINE                                          +blue{Line name}
  #2 (mandatory) REST                                   +blue{Rest frame value}
  #3 (optional)  IMAGE                                 +blue{Image frame value}
  #4 (optional)  UNIT                                               +blue{Unit}
     Possible values: Ang, nm, um, mm or cm

\end{PlusVerbatim}
\subsubsection{HEADER /SPECTRALFRAME}
\label{sec:CUBE:HEADER:SPECTRALFRAME:help}
\index{CUBE HEADER /SPECTRALFRAME option}
\begin{PlusVerbatim}
  Syntax                                             +blue{/SPECTRALFRAME} type
---------------------------------------------------------------------------
  /SPECTRALFRAME              +blue{Change spectral frame when in editing mode}
---------------------------------------------------------------------------
  WARNING: Systemic velocity and redshift are not updated accordingly
  when the spectral frame is changed
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                                +blue{Spectral frame type}
     Possible values: Unk, LSRK, Hel, Obs or Ear

\end{PlusVerbatim}
\subsubsection{HEADER /AXNAMES}
\label{sec:CUBE:HEADER:AXNAMES:help}
\index{CUBE HEADER /AXNAMES option}
\begin{PlusVerbatim}
  Syntax                                            +blue{/AXNAMES} ax1 ... axn
---------------------------------------------------------------------------
  /AXNAMES                             +blue{Change the names of the cube axes}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) AX1                                 +blue{Name for first axis}
  #2 (mandatory) AXN              +blue{"*" or "=" mean previous value is kept}

\end{PlusVerbatim}
\subsection{HISTO1D}
\label{sec:CUBE:HISTO1D:help}
\index{CUBE HISTO1D command}
\begin{PlusVerbatim}
  Syntax                            +blue{HISTO1D} [cube] [+blue{/LINEAR} [min [max]]]
                  [+blue{/LOGARITHMIC} [max [range]]] [+blue{/NBIN} nbin] [+blue{/NORMALISE}]
---------------------------------------------------------------------------
  Abstract                               +blue{Produce a histogram from a cube}
---------------------------------------------------------------------------
  Compute the histogram of a cube. The bins are sampled following a
  linear or logarithmic scale. The number of bins are automatically
  computed using the ??? heuristic or defined by the user. The
  histogram can be normalized.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /LINEAR                               +blue{Compute a linear scale histogram}
  /LOGARITHMIC                       +blue{Compute a logarithm scale histogram}
  /NBIN                                        +blue{Define the number of bins}
  /NORMALISE                              +blue{Compute a normalised histogram}
\end{PlusVerbatim}
\subsubsection{HISTO1D /LINEAR}
\label{sec:CUBE:HISTO1D:LINEAR:help}
\index{CUBE HISTO1D /LINEAR option}
\begin{PlusVerbatim}
  Syntax                                             +blue{/LINEAR} [min [max]]
---------------------------------------------------------------------------
  /LINEAR                               +blue{Compute a linear scale histogram}
---------------------------------------------------------------------------
  With this option bins are equally spaced on a linear scale. Min and
  Max are by default the minimum and maximum of the input cube
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  MIN                            +blue{Minimum of the histogram}
  #2 (optional)  MAX                            +blue{Maximum of the histogram}

\end{PlusVerbatim}
\subsubsection{HISTO1D /LOGARITHMIC}
\label{sec:CUBE:HISTO1D:LOGARITHMIC:help}
\index{CUBE HISTO1D /LOGARITHMIC option}
\begin{PlusVerbatim}
  Syntax                                      +blue{/LOGARITHMIC} [max [range]]
---------------------------------------------------------------------------
  /LOGARITHMIC                       +blue{Compute a logarithm scale histogram}
---------------------------------------------------------------------------
  With this option bins are equally spaced on a log10 scale. The
  Maximum value is by default the maximum of cubname and the default
  value for range is 1000. The minimum value to be taken into account
  for the histogram is: min=max/range.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  MAX                            +blue{Maximum of the histogram}
  #2 (optional)  RANGE                            +blue{range of the histogram}

\end{PlusVerbatim}
\subsubsection{HISTO1D /NBIN}
\label{sec:CUBE:HISTO1D:NBIN:help}
\index{CUBE HISTO1D /NBIN option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/NBIN} nbin
---------------------------------------------------------------------------
  /NBIN                                        +blue{Define the number of bins}
---------------------------------------------------------------------------
  This option defines the number of bins to be used. Its argument can
  be a positive integer or one of 3 methods: RICE, STURGES or SQRT. If
  this option is not given explicitly by the user the number of bins
  defaults to the value defined by the STURGES method.
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NBIN           +blue{Number of bins or method to determine it}
     Possible values: nbin, SQRT, STURGES or RICE

\end{PlusVerbatim}
\subsubsection{HISTO1D /NORMALISE}
\label{sec:CUBE:HISTO1D:NORMALISE:help}
\index{CUBE HISTO1D /NORMALISE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/NORMALISE}
---------------------------------------------------------------------------
  /NORMALISE                              +blue{Compute a normalised histogram}
---------------------------------------------------------------------------
  Normalise the histogram to 1 by dividing the number of counts in each
  bin by the total number of counts in the histogram.

\end{PlusVerbatim}
\subsection{HISTO2D}
\label{sec:CUBE:HISTO2D:help}
\index{CUBE HISTO2D command}
\begin{PlusVerbatim}
  Syntax                     +blue{HISTO2D} [cube1 cube2] [+blue{/NORMALIZE}] [+blue{/BLANK}]
                      [+blue{/XAXIS} [lin [nbin min max] | log [nbin max dyn]]]
                      [+blue{/YAXIS} [lin [nbin min max] | log [nbin max dyn]]]
---------------------------------------------------------------------------
  Abstract                      +blue{Compute the joint histogram of two cubes}
---------------------------------------------------------------------------
  Compute the joint histogram of two cubes
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) XCUBE                      +blue{Input cube #1 used as X axis}
  #2 (mandatory) YCUBE                      +blue{Input cube #2 used as Y axis}
---------------------------------------------------------------------------
  /NORMALIZE               +blue{Normalize histogram from counts to percentage}
  /BLANK                                           +blue{Set empty bins to NaN}
  /XAXIS                         +blue{Define a regular sampling of the X axis}
  /YAXIS                         +blue{Define a regular sampling of the Y axis}
\end{PlusVerbatim}
\subsubsection{HISTO2D /NORMALIZE}
\label{sec:CUBE:HISTO2D:NORMALIZE:help}
\index{CUBE HISTO2D /NORMALIZE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/NORMALIZE}
---------------------------------------------------------------------------
  /NORMALIZE               +blue{Normalize histogram from counts to percentage}

\end{PlusVerbatim}
\subsubsection{HISTO2D /BLANK}
\label{sec:CUBE:HISTO2D:BLANK:help}
\index{CUBE HISTO2D /BLANK option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/BLANK}
---------------------------------------------------------------------------
  /BLANK                                           +blue{Set empty bins to NaN}

\end{PlusVerbatim}
\subsubsection{HISTO2D /XAXIS}
\label{sec:CUBE:HISTO2D:XAXIS:help}
\index{CUBE HISTO2D /XAXIS option}
\begin{PlusVerbatim}
  Syntax                +blue{/XAXIS} [lin [nbin min max] | log [nbin max dyn]]
---------------------------------------------------------------------------
  /XAXIS                         +blue{Define a regular sampling of the X axis}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  XKIND                  +blue{Linearly or logarithmically axis}
  #2 (optional)  XNBIN          +blue{Number of bins or method to determine it}
     Possible values: XNBIN, *, SQRT, STURGES or RICE
  #3 (optional)  XRANGE1  +blue{Minimum or maximum for a linear or logarithmic}
  #4 (optional)  XRANGE2 +blue{Maximum or dynamical range for a linear or loga}

\end{PlusVerbatim}
\subsubsection{HISTO2D /YAXIS}
\label{sec:CUBE:HISTO2D:YAXIS:help}
\index{CUBE HISTO2D /YAXIS option}
\begin{PlusVerbatim}
  Syntax                +blue{/YAXIS} [lin [nbin min max] | log [nbin max dyn]]
---------------------------------------------------------------------------
  /YAXIS                         +blue{Define a regular sampling of the Y axis}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  YKIND                  +blue{Linearly or logarithmically axis}
  #2 (optional)  YNBIN          +blue{Number of bins or method to determine it}
     Possible values: YNBIN, *, SQRT, STURGES or RICE
  #3 (optional)  YRANGE1  +blue{Minimum or maximum for a linear or logarithmic}
  #4 (optional)  YRANGE2 +blue{Maximum or dynamical range for a linear or loga}

\end{PlusVerbatim}
\subsection{LUMINOSITY}
\label{sec:CUBE:LUMINOSITY:help}
\index{CUBE LUMINOSITY command}
\begin{PlusVerbatim}
  Syntax                                               +blue{LUMINOSITY} [cube]
                                 [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]]
                                        [+blue{/DISTANCE} dist [unit]] [+blue{/X} val]
---------------------------------------------------------------------------
  Abstract                        +blue{Compute the total luminosity of a cube}
---------------------------------------------------------------------------
  The distance to the source must be given. By default LUMINOSITY uses
  the Galactic CO to H2 conversion factor (2e20 (H2.cm-2) / (K.km/s))
  this can be changed by using of option /X.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
  #2 (optional)  NOISE                                 +blue{Noise measurement}
---------------------------------------------------------------------------
  /RANGE   +blue{Define the velocity range(s) over which to compute luminosity}
  /DISTANCE                            +blue{Define the distance do the source}
  /X                               +blue{Define the CO to h2 conversion factor}
\end{PlusVerbatim}
\subsubsection{LUMINOSITY /RANGE}
\label{sec:CUBE:LUMINOSITY:RANGE:help}
\index{CUBE LUMINOSITY /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE   +blue{Define the velocity range(s) over which to compute luminosity}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{LUMINOSITY /DISTANCE}
\label{sec:CUBE:LUMINOSITY:DISTANCE:help}
\index{CUBE LUMINOSITY /DISTANCE option}
\begin{PlusVerbatim}
  Syntax                                           +blue{/DISTANCE} dist [unit]
---------------------------------------------------------------------------
  /DISTANCE                            +blue{Define the distance do the source}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) DIST                             +blue{Distance to the source}
  #2 (optional)  UNIT                                      +blue{Distance unit}
     Possible values: pc, kpc, Mpc or Gpc

\end{PlusVerbatim}
\subsubsection{LUMINOSITY /X}
\label{sec:CUBE:LUMINOSITY:X:help}
\index{CUBE LUMINOSITY /X option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/X} val
---------------------------------------------------------------------------
  /X                               +blue{Define the CO to h2 conversion factor}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VAL                          +blue{CO to h2 conversion factor}

\end{PlusVerbatim}
\subsection{MODIFY}
\label{sec:CUBE:MODIFY:help}
\index{CUBE MODIFY command}
\begin{PlusVerbatim}
  Syntax                                        +blue{MODIFY} [cube] [+blue{/EXTREMA}]
                                      [+blue{/FREQUENCY} line frequency [unit]]
                               [+blue{/VELOCITY} velocity [unit]] [+blue{/AXSET} mode]
---------------------------------------------------------------------------
  Abstract                                 +blue{Modify CUBE header coherently}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /EXTREMA                             +blue{Recompute the extrema of the cube}
  /FREQUENCY                            +blue{Modify rest frequency coherently}
  /VELOCITY                          +blue{Modify Systemic velocity coherently}
  /AXSET                                       +blue{Reshape the cube axes set}
\end{PlusVerbatim}
\subsubsection{MODIFY /EXTREMA}
\label{sec:CUBE:MODIFY:EXTREMA:help}
\index{CUBE MODIFY /EXTREMA option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/EXTREMA}
---------------------------------------------------------------------------
  /EXTREMA                             +blue{Recompute the extrema of the cube}

\end{PlusVerbatim}
\subsubsection{MODIFY /FREQUENCY}
\label{sec:CUBE:MODIFY:FREQUENCY:help}
\index{CUBE MODIFY /FREQUENCY option}
\begin{PlusVerbatim}
  Syntax                                +blue{/FREQUENCY} line frequency [unit]
---------------------------------------------------------------------------
  /FREQUENCY                            +blue{Modify rest frequency coherently}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LINE                                          +blue{Line name}
  #2 (mandatory) FREQUENCY                                +blue{Line frequency}
  #3 (optional)  UNIT                                     +blue{Frequency unit}
     Possible values: THz, GHz, MHz or KHz

\end{PlusVerbatim}
\subsubsection{MODIFY /VELOCITY}
\label{sec:CUBE:MODIFY:VELOCITY:help}
\index{CUBE MODIFY /VELOCITY option}
\begin{PlusVerbatim}
  Syntax                                       +blue{/VELOCITY} velocity [unit]
---------------------------------------------------------------------------
  /VELOCITY                          +blue{Modify Systemic velocity coherently}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VELOCITY                          +blue{New systemic velocity}
  #2 (optional)  UNIT                             +blue{Systemic velocity unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{MODIFY /AXSET}
\label{sec:CUBE:MODIFY:AXSET:help}
\index{CUBE MODIFY /AXSET option}
\begin{PlusVerbatim}
  Syntax                                                     +blue{/AXSET} mode
---------------------------------------------------------------------------
  /AXSET                                       +blue{Reshape the cube axes set}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) MODE                         +blue{Axes set modification mode}
     Possible values: IGNOREDEGENERATE

\end{PlusVerbatim}
\subsection{MOMENTS}
\label{sec:CUBE:MOMENTS:help}
\index{CUBE MOMENTS command}
\begin{PlusVerbatim}
  Syntax                                 +blue{MOMENTS} [signal noise [window]]
                                 [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]]
---------------------------------------------------------------------------
  Abstract           +blue{Compute various moments for each spectrum of a cube}
---------------------------------------------------------------------------
  Compute the 4 first moments plus 2 associated quantities (peak
  brightness, integrated intensity, velocity at peak brightness,
  centroid velocity, velocity FWHM and equaivalent width) for each
  spectrum in a cube. MOMENTS uses either a global window to compute
  the moments (/RANGE), or individual windows set for each spectrum
  (created by CUBE\WINDOW). The associated noise and signal-to-noise
  ratio of each moment are also computed.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  NOISE                                      +blue{Noise levels}
  #3 (optional)  WINDOW                                 +blue{Spectral windows}
---------------------------------------------------------------------------
  /RANGE      +blue{Define the velocity range(s) over which to compute moments}
\end{PlusVerbatim}
\subsubsection{MOMENTS /RANGE}
\label{sec:CUBE:MOMENTS:RANGE:help}
\index{CUBE MOMENTS /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE      +blue{Define the velocity range(s) over which to compute moments}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsection{NAN}
\label{sec:CUBE:NAN:help}
\index{CUBE NAN command}
\begin{PlusVerbatim}
                             +blue{NAN} [cube] [+blue{/INPLACE}] [+blue{/REVERT} Bval [Eval]]
---------------------------------------------------------------------------
  Abstract                               +blue{Replace blanked values with NaN}
---------------------------------------------------------------------------
  This command is insensitive to SET\BLANKING
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /INPLACE              +blue{Replace blank values without creating a new file}
  /REVERT                                 +blue{Replace NaN by blanking values}
\end{PlusVerbatim}
\subsubsection{NAN /INPLACE}
\label{sec:CUBE:NAN:INPLACE:help}
\index{CUBE NAN /INPLACE option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/INPLACE}
---------------------------------------------------------------------------
  /INPLACE              +blue{Replace blank values without creating a new file}

\end{PlusVerbatim}
\subsubsection{NAN /REVERT}
\label{sec:CUBE:NAN:REVERT:help}
\index{CUBE NAN /REVERT option}
\begin{PlusVerbatim}
  Syntax                                             +blue{/REVERT} Bval [Eval]
---------------------------------------------------------------------------
  /REVERT                                 +blue{Replace NaN by blanking values}
---------------------------------------------------------------------------
  For backward portability purposes
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) BVAL                                     +blue{Blanking value}
  #2 (optional)  EVAL                           +blue{Blanking value tolerance}

\end{PlusVerbatim}
\subsection{NOISE}
\label{sec:CUBE:NOISE:help}
\index{CUBE NOISE command}
\begin{PlusVerbatim}
  Syntax                                           +blue{NOISE} [cube [window]]
                          [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]] [+blue{/MAD}]
                                                          [+blue{/NCHAN} nchan]
---------------------------------------------------------------------------
  Abstract              +blue{Compute the noise RMS of each spectrum of a cube}
---------------------------------------------------------------------------
  NOISE uses either a global window to compute the moments (/RANGE), or
  individual windows set for each spectrum (created by CUBE\WINDOW).
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  SIGNAL                                      +blue{Signal cube}
  #2 (optional)  WINDOW        +blue{Local spectral range(s) containing signal}
---------------------------------------------------------------------------
  /RANGE               +blue{Define global spectral range(s) containing signal}
  /MAD            +blue{Compute Median Absolute Deviation noise instead of RMS}
  /NCHAN    +blue{Number of channels in each block to be used to compute noise}
\end{PlusVerbatim}
\subsubsection{NOISE /RANGE}
\label{sec:CUBE:NOISE:RANGE:help}
\index{CUBE NOISE /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE               +blue{Define global spectral range(s) containing signal}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{NOISE /MAD}
\label{sec:CUBE:NOISE:MAD:help}
\index{CUBE NOISE /MAD option}
\begin{PlusVerbatim}
  Syntax                                                            +blue{/MAD}
---------------------------------------------------------------------------
  /MAD            +blue{Compute Median Absolute Deviation noise instead of RMS}

\end{PlusVerbatim}
\subsubsection{NOISE /NCHAN}
\label{sec:CUBE:NOISE:NCHAN:help}
\index{CUBE NOISE /NCHAN option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/NCHAN} nchan
---------------------------------------------------------------------------
  /NCHAN    +blue{Number of channels in each block to be used to compute noise}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NCHAN                                +blue{number of channels}

\end{PlusVerbatim}
\subsection{POLY2MASK}
\label{sec:CUBE:POLY2MASK:help}
\index{CUBE POLY2MASK command}
\begin{PlusVerbatim}
                   +blue{POLY2MASK} [cube] [+blue{/FILE} filename] [+blue{/VARIABLE} varname]
---------------------------------------------------------------------------
  Abstract                             +blue{Transfer a polygon onto a 2D mask}
---------------------------------------------------------------------------
  Create a 2D mask with the L and M properties of cubename, based on
  the shape of the polygon. The polygon is read from either a polygon
  file (/FILE) or a SIC variable (/VARIABLE)
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /FILE                                   +blue{Polygon is fetched from a file}
  /VARIABLE                       +blue{Polygon is fetched from a SIC variable}
\end{PlusVerbatim}
\subsubsection{POLY2MASK /FILE}
\label{sec:CUBE:POLY2MASK:FILE:help}
\index{CUBE POLY2MASK /FILE option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/FILE} filename
---------------------------------------------------------------------------
  /FILE                                   +blue{Polygon is fetched from a file}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FILENAME        +blue{Name of the file containing the polygon}

\end{PlusVerbatim}
\subsubsection{POLY2MASK /VARIABLE}
\label{sec:CUBE:POLY2MASK:VARIABLE:help}
\index{CUBE POLY2MASK /VARIABLE option}
\begin{PlusVerbatim}
  Syntax                                               +blue{/VARIABLE} varname
---------------------------------------------------------------------------
  /VARIABLE                       +blue{Polygon is fetched from a SIC variable}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME     +blue{Name of the variable containing the polygon}

\end{PlusVerbatim}
\subsection{REPLACE}
\label{sec:CUBE:REPLACE:help}
\index{CUBE REPLACE command}
\begin{PlusVerbatim}
                                       +blue{REPLACE} [cube] [+blue{/VALUE} ival oval]
---------------------------------------------------------------------------
  Abstract                    +blue{Replace a value in a cube by another value}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                    +blue{Cube with values to be replaced}
---------------------------------------------------------------------------
  /VALUE                 +blue{Define value to be replaced and its replacement}
\end{PlusVerbatim}
\subsubsection{REPLACE /VALUE}
\label{sec:CUBE:REPLACE:VALUE:help}
\index{CUBE REPLACE /VALUE option}
\begin{PlusVerbatim}
  Syntax                                                +blue{/VALUE} ival oval
---------------------------------------------------------------------------
  /VALUE                 +blue{Define value to be replaced and its replacement}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) IVAL                               +blue{Value to be replaced}
     Possible values: ival, NaN
  #2 (mandatory) OVAL                              +blue{Value to replace with}
     Possible values: oval, NaN

\end{PlusVerbatim}
\subsection{REPROJECT}
\label{sec:CUBE:REPROJECT:help}
\index{CUBE REPROJECT command}
\begin{PlusVerbatim}
  Syntax                  +blue{REPROJECT} [cube] [+blue{/SPATIALFRAME} frame [epoch]]
                              [+blue{/PTYPE} type] [+blue{/PCENTER} l0 m0 type [unit]]
                   [+blue{/PANGLE} pang [paunit]] [+blue{/LAXIS} n ref val inc [unit]]
                              [+blue{/MAXIS} n ref val inc [unit]] [+blue{/LIKE} cube]
---------------------------------------------------------------------------
  Abstract                          +blue{Reproject the spatial grid of a cube}
---------------------------------------------------------------------------
  At least one option must be given. Options /SPATIALFRAME,
  /PROJECTION, /LAXIS and /MAXIS can be specified at the same time.  If
  the /LIKE option is given all other options are ignored
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /SPATIALFRAME         +blue{Define the spatial frame of the reprojected cube}
  /PTYPE                                  +blue{Define the new projection type}
  /PCENTER                              +blue{Define the new projection center}
  /PANGLE                                +blue{Define the new projection angle}
  /LAXIS                       +blue{Define the l axis of the reprojected cube}
  /MAXIS                       +blue{Define the m axis of the reprojected cube}
  /LIKE                 +blue{Reproject onto the same grid as a reference cube}
\end{PlusVerbatim}
\subsubsection{REPROJECT /SPATIALFRAME}
\label{sec:CUBE:REPROJECT:SPATIALFRAME:help}
\index{CUBE REPROJECT /SPATIALFRAME option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/SPATIALFRAME} frame [epoch]
---------------------------------------------------------------------------
  /SPATIALFRAME         +blue{Define the spatial frame of the reprojected cube}
---------------------------------------------------------------------------
  Frame can be Equatorial, Galactic, ICRS or Unknown
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                              +blue{type of spatial frame}
     Possible values: UNKNOWN, EQUATORIAL, GALACTIC, HORIZONTAL or ICRS
  #2 (optional)  EPOCH         +blue{Epoch of the spatial frame, if equatorial}

\end{PlusVerbatim}
\subsubsection{REPROJECT /PTYPE}
\label{sec:CUBE:REPROJECT:PTYPE:help}
\index{CUBE REPROJECT /PTYPE option}
\begin{PlusVerbatim}
  Syntax                                                     +blue{/PTYPE} type
---------------------------------------------------------------------------
  /PTYPE                                  +blue{Define the new projection type}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                                    +blue{Projection type}
     Possible values: GNOMONIC, ORTHOGRAPHIC, AZIMUTHAL, STEREOGRAPHIC,
     LAMBERT, AITOFF, RADIO, SFL, MOLLWEIDE, NCP or CARTESIAN

\end{PlusVerbatim}
\subsubsection{REPROJECT /PCENTER}
\label{sec:CUBE:REPROJECT:PCENTER:help}
\index{CUBE REPROJECT /PCENTER option}
\begin{PlusVerbatim}
  Syntax                                      +blue{/PCENTER} l0 m0 type [unit]
---------------------------------------------------------------------------
  /PCENTER                              +blue{Define the new projection center}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) L0                   +blue{l Coordinate for projection center}
  #2 (mandatory) M0                   +blue{m Coordinate for projection center}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                                 +blue{Unit for l0 and m0}

\end{PlusVerbatim}
\subsubsection{REPROJECT /PANGLE}
\label{sec:CUBE:REPROJECT:PANGLE:help}
\index{CUBE REPROJECT /PANGLE option}
\begin{PlusVerbatim}
  Syntax                                           +blue{/PANGLE} pang [paunit]
---------------------------------------------------------------------------
  /PANGLE                                +blue{Define the new projection angle}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  PANG                          +blue{Projection position angle}
  #2 (optional)  PAUNIT                              +blue{Position angle unit}
     Possible values: radian or degree

\end{PlusVerbatim}
\subsubsection{REPROJECT /LAXIS}
\label{sec:CUBE:REPROJECT:LAXIS:help}
\index{CUBE REPROJECT /LAXIS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/LAXIS} n ref val inc [unit]
---------------------------------------------------------------------------
  /LAXIS                       +blue{Define the l axis of the reprojected cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) N                            +blue{number of elements in axis}
  #2 (mandatory) REF                                +blue{Axis reference point}
  #3 (mandatory) VAL                       +blue{Axis value at reference point}
  #4 (mandatory) INC                                      +blue{Axis increment}
  #5 (optional)  UNIT                               +blue{Unit for val and inc}
     Possible values: radian, degree, minute or second

\end{PlusVerbatim}
\subsubsection{REPROJECT /MAXIS}
\label{sec:CUBE:REPROJECT:MAXIS:help}
\index{CUBE REPROJECT /MAXIS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/MAXIS} n ref val inc [unit]
---------------------------------------------------------------------------
  /MAXIS                       +blue{Define the m axis of the reprojected cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) N                            +blue{number of elements in axis}
  #2 (mandatory) REF                                +blue{Axis reference point}
  #3 (mandatory) VAL                       +blue{Axis value at reference point}
  #4 (mandatory) INC                                      +blue{Axis increment}
  #5 (optional)  UNIT                               +blue{Unit for val and inc}
     Possible values: radian, degree, minute or second

\end{PlusVerbatim}
\subsubsection{REPROJECT /LIKE}
\label{sec:CUBE:REPROJECT:LIKE:help}
\index{CUBE REPROJECT /LIKE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/LIKE} cube
---------------------------------------------------------------------------
  /LIKE                 +blue{Reproject onto the same grid as a reference cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CUBE                                     +blue{Reference cube}

\end{PlusVerbatim}
\subsection{RESAMPLE}
\label{sec:CUBE:RESAMPLE:help}
\index{CUBE RESAMPLE command}
\begin{PlusVerbatim}
  Syntax                   +blue{RESAMPLE} [cube] [+blue{/FAXIS} n ref val inc [unit]]
                              [+blue{/VAXIS} n ref val inc [unit]] [+blue{/LIKE} cube]
---------------------------------------------------------------------------
  Abstract                                    +blue{Resample a cube spectrally}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /FAXIS                 +blue{Define the frequency axis of the resampled cube}
  /VAXIS                  +blue{Define the velocity axis of the resampled cube}
  /LIKE                +blue{Resample onto the same spectral grid as a refcube}
\end{PlusVerbatim}
\subsubsection{RESAMPLE /FAXIS}
\label{sec:CUBE:RESAMPLE:FAXIS:help}
\index{CUBE RESAMPLE /FAXIS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/FAXIS} n ref val inc [unit]
---------------------------------------------------------------------------
  /FAXIS                 +blue{Define the frequency axis of the resampled cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) N                            +blue{number of elements in axis}
  #2 (mandatory) REF                                +blue{Axis reference point}
  #3 (mandatory) VAL                       +blue{Axis value at reference point}
  #4 (mandatory) INC                                      +blue{Axis increment}
  #5 (optional)  UNIT                               +blue{Unit for val and inc}
     Possible values: THz, GHz, MHz or KHz

\end{PlusVerbatim}
\subsubsection{RESAMPLE /VAXIS}
\label{sec:CUBE:RESAMPLE:VAXIS:help}
\index{CUBE RESAMPLE /VAXIS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/VAXIS} n ref val inc [unit]
---------------------------------------------------------------------------
  /VAXIS                  +blue{Define the velocity axis of the resampled cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) N                            +blue{number of elements in axis}
  #2 (mandatory) REF                                +blue{Axis reference point}
  #3 (mandatory) VAL                       +blue{Axis value at reference point}
  #4 (mandatory) INC                                      +blue{Axis increment}
  #5 (optional)  UNIT                               +blue{Unit for val and inc}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{RESAMPLE /LIKE}
\label{sec:CUBE:RESAMPLE:LIKE:help}
\index{CUBE RESAMPLE /LIKE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/LIKE} cube
---------------------------------------------------------------------------
  /LIKE                +blue{Resample onto the same spectral grid as a refcube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CUBE                                     +blue{Reference cube}

\end{PlusVerbatim}
\subsection{RESIDUALS}
\label{sec:CUBE:RESIDUALS:help}
\index{CUBE RESIDUALS command}
\begin{PlusVerbatim}
                            +blue{RESIDUALS} [cube1 cube2] [+blue{/SIGNIFICANT} level]
---------------------------------------------------------------------------
  Abstract                   +blue{Compute cube1-cube2 and cube1/(cube1-cube2)}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CUBE1                                     +blue{Input cube #1}
  #2 (mandatory) CUBE2                                     +blue{Input cube #2}
---------------------------------------------------------------------------
  /SIGNIFICANT          +blue{Define a level of significance for the residuals}
\end{PlusVerbatim}
\subsubsection{RESIDUALS /SIGNIFICANT}
\label{sec:CUBE:RESIDUALS:SIGNIFICANT:help}
\index{CUBE RESIDUALS /SIGNIFICANT option}
\begin{PlusVerbatim}
  Syntax                                              +blue{/SIGNIFICANT} level
---------------------------------------------------------------------------
  /SIGNIFICANT          +blue{Define a level of significance for the residuals}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LEVEL   +blue{Significant signal value (typical 3 to 5 sigma)}

\end{PlusVerbatim}
\subsection{ROTATE}
\label{sec:CUBE:ROTATE:help}
\index{CUBE ROTATE command}
\begin{PlusVerbatim}
  Syntax                       +blue{ROTATE} [cube] [+blue{/CENTER} l0 m0 type [unit]]
                                                  [+blue{/ANGLE} pang [paunit]]
---------------------------------------------------------------------------
  Abstract                                 +blue{Rotate a cube around a center}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /CENTER                        +blue{Define the center about which to rotate}
  /ANGLE                                 +blue{Define the new projection angle}
\end{PlusVerbatim}
\subsubsection{ROTATE /CENTER}
\label{sec:CUBE:ROTATE:CENTER:help}
\index{CUBE ROTATE /CENTER option}
\begin{PlusVerbatim}
  Syntax                                       +blue{/CENTER} l0 m0 type [unit]
---------------------------------------------------------------------------
  /CENTER                        +blue{Define the center about which to rotate}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) L0                   +blue{l Coordinate for projection center}
  #2 (mandatory) M0                   +blue{m Coordinate for projection center}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                                 +blue{Unit for l0 and m0}

\end{PlusVerbatim}
\subsubsection{ROTATE /ANGLE}
\label{sec:CUBE:ROTATE:ANGLE:help}
\index{CUBE ROTATE /ANGLE option}
\begin{PlusVerbatim}
  Syntax                                            +blue{/ANGLE} pang [paunit]
---------------------------------------------------------------------------
  /ANGLE                                 +blue{Define the new projection angle}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  PANG                          +blue{Projection position angle}
  #2 (optional)  PAUNIT                              +blue{Position angle unit}
     Possible values: radian or degree

\end{PlusVerbatim}
\subsection{SHUFFLE}
\label{sec:CUBE:SHUFFLE:help}
\index{CUBE SHUFFLE command}
\begin{PlusVerbatim}
                                                 +blue{SHUFFLE} [cube centroid]
---------------------------------------------------------------------------
  Abstract                           +blue{Shuffle the velocity axis of a cube}
---------------------------------------------------------------------------
  Circularly permute each spectrum in cubname as to center them on the
  velocity of a spectral line centroid. The line centroid must obtained
  before hand by using command MOMENTS. Centroid identification only
  works properly if there is a single spectral line on the cube.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  CENTROID                                 +blue{Centroid image}
\end{PlusVerbatim}
\subsection{SLICE}
\label{sec:CUBE:SLICE:help}
\index{CUBE SLICE command}
\begin{PlusVerbatim}
  Syntax                     +blue{SLICE} [cube] [+blue{/BEGIN} lcen mcen type [unit]]
                                            [+blue{/END} lcen mcen type [unit]]
---------------------------------------------------------------------------
  Abstract              +blue{Extract a 2D Position-Velocity slice from a cube}
---------------------------------------------------------------------------
  Extract a Position Velocity slice from cubname along the line that
  connects /BEGIN to /END
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /BEGIN                                    +blue{Beginning point of the slice}
  /END                                            +blue{End point of the slice}
\end{PlusVerbatim}
\subsubsection{SLICE /BEGIN}
\label{sec:CUBE:SLICE:BEGIN:help}
\index{CUBE SLICE /BEGIN option}
\begin{PlusVerbatim}
  Syntax                                    +blue{/BEGIN} lcen mcen type [unit]
---------------------------------------------------------------------------
  /BEGIN                                    +blue{Beginning point of the slice}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LCEN                           +blue{Position in L coordinate}
  #2 (mandatory) MCEN                           +blue{Position in m coordinate}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                             +blue{Unit for lcen and mcen}

\end{PlusVerbatim}
\subsubsection{SLICE /END}
\label{sec:CUBE:SLICE:END:help}
\index{CUBE SLICE /END option}
\begin{PlusVerbatim}
  Syntax                                      +blue{/END} lcen mcen type [unit]
---------------------------------------------------------------------------
  /END                                            +blue{End point of the slice}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LCEN                           +blue{Position in L coordinate}
  #2 (mandatory) MCEN                           +blue{Position in m coordinate}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                             +blue{Unit for lcen and mcen}

\end{PlusVerbatim}
\subsection{SMOOTH}
\label{sec:CUBE:SMOOTH:help}
\index{CUBE SMOOTH command}
\begin{PlusVerbatim}
  Syntax                     +blue{SMOOTH} [cube] [+blue{/GAUSS} major [minor [pang]]]
                            [+blue{/BEAM} major [minor [unit [pang [paunit]]]]]
                                                            [+blue{/LIKE} cube]
---------------------------------------------------------------------------
  Abstract                                       +blue{Smooth a cube spatially}
---------------------------------------------------------------------------
  The smoothing is based on a gaussian kernel. This gaussian kernel can
  be given directly (/GAUSS) or can be determined from a desired
  spatial resolution, either provided by the user (/BEAM) or from
  another cube (/LIKE)
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /GAUSS                            +blue{Define the gaussian smoothing kernel}
  /BEAM                            +blue{Define the desired spatial resolution}
  /LIKE                +blue{Smooth to the same resolution as a reference cube}
\end{PlusVerbatim}
\subsubsection{SMOOTH /GAUSS}
\label{sec:CUBE:SMOOTH:GAUSS:help}
\index{CUBE SMOOTH /GAUSS option}
\begin{PlusVerbatim}
  Syntax                                     +blue{/GAUSS} major [minor [pang]]
---------------------------------------------------------------------------
  /GAUSS                            +blue{Define the gaussian smoothing kernel}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) MAJOR                                        +blue{Major axis}
  #2 (optional)  MINOR                                        +blue{Minor axis}
  #3 (optional)  PANG                                     +blue{Position angle}

\end{PlusVerbatim}
\subsubsection{SMOOTH /BEAM}
\label{sec:CUBE:SMOOTH:BEAM:help}
\index{CUBE SMOOTH /BEAM option}
\begin{PlusVerbatim}
  Syntax                      +blue{/BEAM} major [minor [unit [pang [paunit]]]]
---------------------------------------------------------------------------
  /BEAM                            +blue{Define the desired spatial resolution}
---------------------------------------------------------------------------
  If only the major axis is given the beam is assumed circular and
  hence minor = major
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) MAJOR                                   +blue{Beam major axis}
  #2 (optional)  MINOR                                   +blue{Beam minor axis}
  #3 (optional)  UNIT                                     +blue{Beam axes unit}
     Possible values: radian, minute, second or msecond
  #4 (optional)  PANG                                +blue{Beam position angle}
  #5 (optional)  PAUNIT                              +blue{Position angle unit}
     Possible values: radian or degree

\end{PlusVerbatim}
\subsubsection{SMOOTH /LIKE}
\label{sec:CUBE:SMOOTH:LIKE:help}
\index{CUBE SMOOTH /LIKE option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/LIKE} cube
---------------------------------------------------------------------------
  /LIKE                +blue{Smooth to the same resolution as a reference cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CUBE                                     +blue{Reference cube}

\end{PlusVerbatim}
\subsection{SNR}
\label{sec:CUBE:SNR:help}
\index{CUBE SNR command}
\begin{PlusVerbatim}
                                                      +blue{SNR} [signal noise]
---------------------------------------------------------------------------
  Abstract                             +blue{Compute the signal to noise ratio}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  SIGNAL                                      +blue{Signal cube}
  #2 (optional)  NOISE                                        +blue{Noise cube}
\end{PlusVerbatim}
\subsection{SORT}
\label{sec:CUBE:SORT:help}
\index{CUBE SORT command}
\begin{PlusVerbatim}
                                  +blue{SORT} [cube] [+blue{/RANGE} first last [unit]]
---------------------------------------------------------------------------
  Abstract               +blue{Sort the intensities of each spectrum of a cube}
---------------------------------------------------------------------------
  The sorting starts from the channel of maximum brightness and then
  sorts the most contiguous channels by decreasing brightness.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /RANGE                    +blue{Define the velocity range over which to sort}
\end{PlusVerbatim}
\subsubsection{SORT /RANGE}
\label{sec:CUBE:SORT:RANGE:help}
\index{CUBE SORT /RANGE option}
\begin{PlusVerbatim}
  Syntax                                        +blue{/RANGE} first last [unit]
---------------------------------------------------------------------------
  /RANGE                    +blue{Define the velocity range over which to sort}
---------------------------------------------------------------------------
  A single spectral range is accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FIRST                                    +blue{Start of range}
  #2 (mandatory) LAST                                       +blue{End of range}
  #3 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsection{STACK}
\label{sec:CUBE:STACK:help}
\index{CUBE STACK command}
\begin{PlusVerbatim}
  Syntax                                            +blue{STACK} [cube [noise]]
                    [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]] [+blue{/MASK} cube]
                    [+blue{/SUM}] [+blue{/MEAN}] [+blue{/WEIGHT} scheme] [+blue{/IMAGE}] [+blue{/SPECTRUM}]
---------------------------------------------------------------------------
  Abstract                          +blue{Stack a cube spectrally or spatially}
---------------------------------------------------------------------------
  Output unit is determined by the type of stacking being done. By
  default a spectral stack is computed
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  NOISE                                   +blue{Noise reference}
---------------------------------------------------------------------------
  /RANGE                +blue{Define the velocity range(s) over which to stack}
  /MASK            +blue{Use a mask to define pixels or channels to be ignored}
  /SUM                                                    +blue{Stack is a sum}
  /MEAN                                                  +blue{Stack is a mean}
  /WEIGHT                   +blue{Define the weighting scheme for the stacking}
  /IMAGE                                               +blue{Stack is an image}
  /SPECTRUM                                          +blue{Stack is a spectrum}
\end{PlusVerbatim}
\subsubsection{STACK /RANGE}
\label{sec:CUBE:STACK:RANGE:help}
\index{CUBE STACK /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE                +blue{Define the velocity range(s) over which to stack}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{STACK /MASK}
\label{sec:CUBE:STACK:MASK:help}
\index{CUBE STACK /MASK option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/MASK} cube
---------------------------------------------------------------------------
  /MASK            +blue{Use a mask to define pixels or channels to be ignored}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                               +blue{Mask}

\end{PlusVerbatim}
\subsubsection{STACK /SUM}
\label{sec:CUBE:STACK:SUM:help}
\index{CUBE STACK /SUM option}
\begin{PlusVerbatim}
  Syntax                                                            +blue{/SUM}
---------------------------------------------------------------------------
  /SUM                                                    +blue{Stack is a sum}
---------------------------------------------------------------------------
  Output unit is Jy for a spectral stack and <CubUnit>.km/s for a
  spatial stack

\end{PlusVerbatim}
\subsubsection{STACK /MEAN}
\label{sec:CUBE:STACK:MEAN:help}
\index{CUBE STACK /MEAN option}
\begin{PlusVerbatim}
  Syntax                                                           +blue{/MEAN}
---------------------------------------------------------------------------
  /MEAN                                                  +blue{Stack is a mean}
---------------------------------------------------------------------------
  Output unit is K(Tmb) for a spectral stack and <CubUnit> for a
  spatial stack

\end{PlusVerbatim}
\subsubsection{STACK /WEIGHT}
\label{sec:CUBE:STACK:WEIGHT:help}
\index{CUBE STACK /WEIGHT option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/WEIGHT} scheme
---------------------------------------------------------------------------
  /WEIGHT                   +blue{Define the weighting scheme for the stacking}
---------------------------------------------------------------------------
  Only valid for /SPECTRUM
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SCHEME                                 +blue{Weighting scheme}
     Possible values: Equal or Noise

\end{PlusVerbatim}
\subsubsection{STACK /IMAGE}
\label{sec:CUBE:STACK:IMAGE:help}
\index{CUBE STACK /IMAGE option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/IMAGE}
---------------------------------------------------------------------------
  /IMAGE                                               +blue{Stack is an image}
---------------------------------------------------------------------------
  Default behaviour is /SUM

\end{PlusVerbatim}
\subsubsection{STACK /SPECTRUM}
\label{sec:CUBE:STACK:SPECTRUM:help}
\index{CUBE STACK /SPECTRUM option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/SPECTRUM}
---------------------------------------------------------------------------
  /SPECTRUM                                          +blue{Stack is a spectrum}
---------------------------------------------------------------------------
  Default behaviour is /SUM for Jy/beam spectra and /MEAN for K(Tmb) spectra

\end{PlusVerbatim}
\subsection{WINDOW}
\label{sec:CUBE:WINDOW:help}
\index{CUBE WINDOW command}
\begin{PlusVerbatim}
  Syntax           +blue{WINDOW} [cube] [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]]
                                                         [+blue{/NITER} number]
---------------------------------------------------------------------------
  Abstract            +blue{Find the signal windows of each spectrum of a cube}
---------------------------------------------------------------------------
  A window is a set of contiguous channels going to the 0 level
  starting from the spectrum maximum brightness
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
---------------------------------------------------------------------------
  /RANGE                  +blue{Define the velocity range(s) containing signal}
  /NITER                           +blue{Set the number of windows to be found}
\end{PlusVerbatim}
\subsubsection{WINDOW /RANGE}
\label{sec:CUBE:WINDOW:RANGE:help}
\index{CUBE WINDOW /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE                  +blue{Define the velocity range(s) containing signal}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{WINDOW /NITER}
\label{sec:CUBE:WINDOW:NITER:help}
\index{CUBE WINDOW /NITER option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/NITER} number
---------------------------------------------------------------------------
  /NITER                           +blue{Set the number of windows to be found}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NITER                                 +blue{Number of windows}

\end{PlusVerbatim}
\section{GO Language On-Line Help}
\label{sec:GO:help}
\index{GO command list}
\begin{PlusVerbatim}
  GO\                      +blue{Commands to visualize or interact with a cube}
---------------------------------------------------------------------------
  BIT                                     +blue{Display channel maps of a cube}
  DATA                                 +blue{Get IMAGES or SPECTRA from a cube}
  GET                           +blue{Get IMAGES or SPECTRA from a loaded cube}
  HYPERGET               +blue{Get information from a CUBE onto a SIC variable}
  LOAD                                   +blue{Load a cube onto a sic variable}
  SPECTRUM                                +blue{Display channel maps of a cube}
  TOPOLOGY                +blue{Compute the topology of the region of interest}
  VIEW                                        +blue{Interactive view of a cube}

\end{PlusVerbatim}
\subsection{BIT}
\label{sec:GO:BIT:help}
\index{GO BIT command}
\begin{PlusVerbatim}
                                                              +blue{BIT} [cube]
---------------------------------------------------------------------------
  Abstract                                +blue{Display channel maps of a cube}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
\end{PlusVerbatim}
\subsection{DATA}
\label{sec:GO:DATA:help}
\index{GO DATA command}
\begin{PlusVerbatim}
  Syntax                    +blue{DATA} [cube] [+blue{/IMAGE} which] [+blue{/SPECTRUM} which]
                                          [+blue{/PIXEL} lcen mcen type [unit]]
                                         [+blue{/CHANNEL} velocity type [unit]]
                                     [+blue{/INTO} varname [scope [overwrite]]]
---------------------------------------------------------------------------
  Abstract                             +blue{Get IMAGES or SPECTRA from a cube}
---------------------------------------------------------------------------
  Data can be either an /IMAGE or a /SPECTRUM
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /IMAGE                                      +blue{Get an image from the cube}
  /SPECTRUM                                +blue{Get an spectrum from the cube}
  /PIXEL                   +blue{Define the position of the pixel to be gotten}
  /CHANNEL                                   +blue{Get a channel from the cube}
  /INTO                      +blue{Define the SIC variable name and its status}
\end{PlusVerbatim}
\subsubsection{DATA /IMAGE}
\label{sec:GO:DATA:IMAGE:help}
\index{GO DATA /IMAGE option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/IMAGE} which
---------------------------------------------------------------------------
  /IMAGE                                      +blue{Get an image from the cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) WHICH           +blue{Which image of the cube is to be gotten}
     Possible values: which, NEXT, PREVIOUS, FIRST, LAST or ZERO

\end{PlusVerbatim}
\subsubsection{DATA /SPECTRUM}
\label{sec:GO:DATA:SPECTRUM:help}
\index{GO DATA /SPECTRUM option}
\begin{PlusVerbatim}
  Syntax                                                 +blue{/SPECTRUM} which
---------------------------------------------------------------------------
  /SPECTRUM                                +blue{Get an spectrum from the cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) WHICH        +blue{Which spectrum of the cube is to be gotten}
     Possible values: which, NEXT, PREVIOUS, FIRST, LAST or ZERO

\end{PlusVerbatim}
\subsubsection{DATA /PIXEL}
\label{sec:GO:DATA:PIXEL:help}
\index{GO DATA /PIXEL option}
\begin{PlusVerbatim}
  Syntax                                    +blue{/PIXEL} lcen mcen type [unit]
---------------------------------------------------------------------------
  /PIXEL                   +blue{Define the position of the pixel to be gotten}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LCEN                           +blue{Position in L coordinate}
  #2 (mandatory) MCEN                           +blue{Position in m coordinate}
  #3 (mandatory) TYPE                                   +blue{Coordinates type}
     Possible values: Absolute or Relative
  #4 (optional)  UNIT                             +blue{Unit for lcen and mcen}

\end{PlusVerbatim}
\subsubsection{DATA /CHANNEL}
\label{sec:GO:DATA:CHANNEL:help}
\index{GO DATA /CHANNEL option}
\begin{PlusVerbatim}
  Syntax                                   +blue{/CHANNEL} velocity type [unit]
---------------------------------------------------------------------------
  /CHANNEL                                   +blue{Get a channel from the cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VELOCITY           +blue{Velocity of the channel to be gotten}
  #2 (mandatory) TYPE +blue{Velocity is absolute or relative to systemic veloc}
     Possible values: Absolute or Relative
  #3 (mandatory) UNIT                                      +blue{Velocity unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{DATA /INTO}
\label{sec:GO:DATA:INTO:help}
\index{GO DATA /INTO option}
\begin{PlusVerbatim}
  Syntax                               +blue{/INTO} varname [scope [overwrite]]
---------------------------------------------------------------------------
  /INTO                      +blue{Define the SIC variable name and its status}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME                                   +blue{Variable name}
  #2 (optional)  SCOPE                       +blue{Variable is global or local}
     Possible values: GLOBAL or LOCAL
  #3 (optional)  OVERWRITE      +blue{Overwrite previous variable of same name}
     Possible values: YES or NO

\end{PlusVerbatim}
\subsection{GET}
\label{sec:GO:GET:help}
\index{GO GET command}
\begin{PlusVerbatim}
                               +blue{GET} which [+blue{/FROM} varname] [+blue{/INTO} varname]
---------------------------------------------------------------------------
  Abstract                      +blue{Get IMAGES or SPECTRA from a loaded cube}
---------------------------------------------------------------------------
  The data fetched depend on the access chose for the cube (GO\LOAD
  /ACCESS), Images or spectra are loaded in the named variable (/INTO).
  Data is fetched from the named cube (/FROM).
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) WHICH           +blue{Which entry of the cube is to be gotten}
     Possible values: which, NEXT, PREVIOUS, FIRST, LAST or ZERO
---------------------------------------------------------------------------
  /FROM                        +blue{Choose from which loaded CUBE to get data}
  /INTO               +blue{Choose to which variable the data has to be loaded}
\end{PlusVerbatim}
\subsubsection{GET /FROM}
\label{sec:GO:GET:FROM:help}
\index{GO GET /FROM option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/FROM} varname
---------------------------------------------------------------------------
  /FROM                        +blue{Choose from which loaded CUBE to get data}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME                        +blue{Which cube is to be used}

\end{PlusVerbatim}
\subsubsection{GET /INTO}
\label{sec:GO:GET:INTO:help}
\index{GO GET /INTO option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/INTO} varname
---------------------------------------------------------------------------
  /INTO               +blue{Choose to which variable the data has to be loaded}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME                        +blue{Where the data is loaded}

\end{PlusVerbatim}
\subsection{HYPERGET}
\label{sec:GO:HYPERGET:help}
\index{GO HYPERGET command}
\begin{PlusVerbatim}
  Syntax         +blue{HYPERGET} [cube] [+blue{/AXIS} axtype relative|absolute [unit]]
                     [+blue{/SHAPE}] [+blue{/UNIT}] [+blue{/SPATIALFRAME}] [+blue{/SOURCE}] [+blue{/PTYPE}]
                           [+blue{/PCENTER}] [+blue{/PANGLE}] [+blue{/BEAM}] [+blue{/SPECTRALFRAME}]
                      [+blue{/VELOCITY}] [+blue{/REDSHIFT}] [+blue{/FREQUENCY}] [+blue{/WAVELENGTH}]
                                 [+blue{/OBSERVATORY}] [+blue{/INTO} varname [status]]
---------------------------------------------------------------------------
  Abstract               +blue{Get information from a CUBE onto a SIC variable}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /AXIS                          +blue{Define axis to be fetched from the cube}
  /SHAPE                       +blue{Fetch shape of a cube into a SIC variable}
  /UNIT              +blue{Fetch data array unit of a cube into a SIC variable}
  /SPATIALFRAME                  +blue{Fetch spatial frame into a SIC variable}
  /SOURCE                     +blue{Fetch source of a cube into a SIC variable}
  /PTYPE             +blue{Fetch projection type of a cube into a SIC variable}
  /PCENTER         +blue{Fetch projection center of a cube into a SIC variable}
  /PANGLE           +blue{Fetch projection angle of a cube into a SIC variable}
  /BEAM          +blue{Fetch Beam section of a cube header into a SIC variable}
  /SPECTRALFRAME                +blue{Fetch spectral frame into a SIC variable}
  /VELOCITY                  +blue{Fetch systemic velocity into a SIC variable}
  /REDSHIFT                  +blue{Fetch systemic redshift into a SIC variable}
  /FREQUENCY                    +blue{Fetch rest frequency into a SIC variable}
  /WAVELENGTH                  +blue{Fetch rest wavelength into a SIC variable}
  /OBSERVATORY +blue{Fetch observatory section of a cube header into a SIC var}
  /INTO                      +blue{Define the SIC variable name and its status}
\end{PlusVerbatim}
\subsubsection{HYPERGET /AXIS}
\label{sec:GO:HYPERGET:AXIS:help}
\index{GO HYPERGET /AXIS option}
\begin{PlusVerbatim}
  Syntax                           +blue{/AXIS} axtype relative|absolute [unit]
---------------------------------------------------------------------------
  /AXIS                          +blue{Define axis to be fetched from the cube}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) AXTYPE                                        +blue{Axis type}
     Possible values: axtype, VELOCITY, FREQUENCY, REDSHIFT, WAVELENGTH,
     IMAGEFREQ, L or M
  #2 (mandatory) COORTYPE          +blue{Coordinate type, relative or absolute}
     Possible values: RELATIVE or ABSOLUTE
  #3 (optional)  UNIT                                      +blue{Unit for axis}

\end{PlusVerbatim}
\subsubsection{HYPERGET /SHAPE}
\label{sec:GO:HYPERGET:SHAPE:help}
\index{GO HYPERGET /SHAPE option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/SHAPE}
---------------------------------------------------------------------------
  /SHAPE                       +blue{Fetch shape of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /UNIT}
\label{sec:GO:HYPERGET:UNIT:help}
\index{GO HYPERGET /UNIT option}
\begin{PlusVerbatim}
  Syntax                                                           +blue{/UNIT}
---------------------------------------------------------------------------
  /UNIT              +blue{Fetch data array unit of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /SPATIALFRAME}
\label{sec:GO:HYPERGET:SPATIALFRAME:help}
\index{GO HYPERGET /SPATIALFRAME option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/SPATIALFRAME}
---------------------------------------------------------------------------
  /SPATIALFRAME                  +blue{Fetch spatial frame into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /SOURCE}
\label{sec:GO:HYPERGET:SOURCE:help}
\index{GO HYPERGET /SOURCE option}
\begin{PlusVerbatim}
  Syntax                                                         +blue{/SOURCE}
---------------------------------------------------------------------------
  /SOURCE                     +blue{Fetch source of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /PTYPE}
\label{sec:GO:HYPERGET:PTYPE:help}
\index{GO HYPERGET /PTYPE option}
\begin{PlusVerbatim}
  Syntax                                                          +blue{/PTYPE}
---------------------------------------------------------------------------
  /PTYPE             +blue{Fetch projection type of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /PCENTER}
\label{sec:GO:HYPERGET:PCENTER:help}
\index{GO HYPERGET /PCENTER option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/PCENTER}
---------------------------------------------------------------------------
  /PCENTER         +blue{Fetch projection center of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /PANGLE}
\label{sec:GO:HYPERGET:PANGLE:help}
\index{GO HYPERGET /PANGLE option}
\begin{PlusVerbatim}
  Syntax                                                         +blue{/PANGLE}
---------------------------------------------------------------------------
  /PANGLE           +blue{Fetch projection angle of a cube into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /BEAM}
\label{sec:GO:HYPERGET:BEAM:help}
\index{GO HYPERGET /BEAM option}
\begin{PlusVerbatim}
  Syntax                                                           +blue{/BEAM}
---------------------------------------------------------------------------
  /BEAM          +blue{Fetch Beam section of a cube header into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /SPECTRALFRAME}
\label{sec:GO:HYPERGET:SPECTRALFRAME:help}
\index{GO HYPERGET /SPECTRALFRAME option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/SPECTRALFRAME}
---------------------------------------------------------------------------
  /SPECTRALFRAME                +blue{Fetch spectral frame into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /VELOCITY}
\label{sec:GO:HYPERGET:VELOCITY:help}
\index{GO HYPERGET /VELOCITY option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/VELOCITY}
---------------------------------------------------------------------------
  /VELOCITY                  +blue{Fetch systemic velocity into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /REDSHIFT}
\label{sec:GO:HYPERGET:REDSHIFT:help}
\index{GO HYPERGET /REDSHIFT option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/REDSHIFT}
---------------------------------------------------------------------------
  /REDSHIFT                  +blue{Fetch systemic redshift into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /FREQUENCY}
\label{sec:GO:HYPERGET:FREQUENCY:help}
\index{GO HYPERGET /FREQUENCY option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/FREQUENCY}
---------------------------------------------------------------------------
  /FREQUENCY                    +blue{Fetch rest frequency into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /WAVELENGTH}
\label{sec:GO:HYPERGET:WAVELENGTH:help}
\index{GO HYPERGET /WAVELENGTH option}
\begin{PlusVerbatim}
  Syntax                                                     +blue{/WAVELENGTH}
---------------------------------------------------------------------------
  /WAVELENGTH                  +blue{Fetch rest wavelength into a SIC variable}

\end{PlusVerbatim}
\subsubsection{HYPERGET /OBSERVATORY}
\label{sec:GO:HYPERGET:OBSERVATORY:help}
\index{GO HYPERGET /OBSERVATORY option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/OBSERVATORY}
---------------------------------------------------------------------------
  /OBSERVATORY +blue{Fetch observatory section of a cube header into a SIC var}

\end{PlusVerbatim}
\subsubsection{HYPERGET /INTO}
\label{sec:GO:HYPERGET:INTO:help}
\index{GO HYPERGET /INTO option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/INTO} varname [status]
---------------------------------------------------------------------------
  /INTO                      +blue{Define the SIC variable name and its status}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME                                   +blue{Variable name}
  #2 (optional)  STATUS                +blue{READ or WRITE status for variable}
     Possible values: READ or WRITE

\end{PlusVerbatim}
\subsection{LOAD}
\label{sec:GO:LOAD:help}
\index{GO LOAD command}
\begin{PlusVerbatim}
  Syntax                 +blue{LOAD} [cube] [+blue{/IN} varname status] [+blue{/SYNTAX} type]
                                                        [+blue{/ACCESS} access]
---------------------------------------------------------------------------
  Abstract                               +blue{Load a cube onto a sic variable}
---------------------------------------------------------------------------
  By default LOAD loads the cube onto a read-only SIC variable called
  AAA1 using the new cube header. By default the loaded cube is set to
  be accessed by images, this can be changed by using option /ACCESS
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                         +blue{Input cube}
---------------------------------------------------------------------------
  /IN                                +blue{Define the name of the SIC variable}
  /SYNTAX               +blue{Define the type of structure of the SIC variable}
  /ACCESS                      +blue{Define the access type of the loaded cube}
\end{PlusVerbatim}
\subsubsection{LOAD /IN}
\label{sec:GO:LOAD:IN:help}
\index{GO LOAD /IN option}
\begin{PlusVerbatim}
  Syntax                                              +blue{/IN} varname status
---------------------------------------------------------------------------
  /IN                                +blue{Define the name of the SIC variable}
---------------------------------------------------------------------------
  The option can also be used to modify the read-write status of the
  SIC variable
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME    +blue{Name of the variable onto which to load data}
  #2 (optional)  STATUS                           +blue{Variable access status}
     Possible values: READ or WRITE

\end{PlusVerbatim}
\subsubsection{LOAD /SYNTAX}
\label{sec:GO:LOAD:SYNTAX:help}
\index{GO LOAD /SYNTAX option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/SYNTAX} type
---------------------------------------------------------------------------
  /SYNTAX               +blue{Define the type of structure of the SIC variable}
---------------------------------------------------------------------------
  HEAD (default if options is not present) means the new CUBE header,
  HGDF means the classic GREG header
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) TYPE                          +blue{SIC structure syntax type}
     Possible values: HEAD or HGDF

\end{PlusVerbatim}
\subsubsection{LOAD /ACCESS}
\label{sec:GO:LOAD:ACCESS:help}
\index{GO LOAD /ACCESS option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/ACCESS} access
---------------------------------------------------------------------------
  /ACCESS                      +blue{Define the access type of the loaded cube}
---------------------------------------------------------------------------
  If Access is IMAGE, command GO\GET will fetch images, if access is
  SPECTRUM, command GO\GET will fetch spectra
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) ACCESS                                +blue{IMAGE or SPECTRUM}
     Possible values: IMAGE or SPECTRUM

\end{PlusVerbatim}
\subsection{SPECTRUM}
\label{sec:GO:SPECTRUM:help}
\index{GO SPECTRUM command}
\begin{PlusVerbatim}
                                                         +blue{SPECTRUM} [cube]
---------------------------------------------------------------------------
  Abstract                                +blue{Display channel maps of a cube}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
\end{PlusVerbatim}
\subsection{TOPOLOGY}
\label{sec:GO:TOPOLOGY:help}
\index{GO TOPOLOGY command}
\begin{PlusVerbatim}
                                        +blue{TOPOLOGY} [+blue{/FROM} varname] [+blue{/SHOW}]
---------------------------------------------------------------------------
  Abstract                +blue{Compute the topology of the region of interest}
---------------------------------------------------------------------------
  By default uses the last loaded cube (GO\LOAD)
---------------------------------------------------------------------------
  /FROM                +blue{Choose from which loaded cube to compute topology}
  /SHOW                                       +blue{Show the computed topology}
\end{PlusVerbatim}
\subsubsection{TOPOLOGY /FROM}
\label{sec:GO:TOPOLOGY:FROM:help}
\index{GO TOPOLOGY /FROM option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/FROM} varname
---------------------------------------------------------------------------
  /FROM                +blue{Choose from which loaded cube to compute topology}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VARNAME             +blue{SIC variable containing cube header}

\end{PlusVerbatim}
\subsubsection{TOPOLOGY /SHOW}
\label{sec:GO:TOPOLOGY:SHOW:help}
\index{GO TOPOLOGY /SHOW option}
\begin{PlusVerbatim}
  Syntax                                                           +blue{/SHOW}
---------------------------------------------------------------------------
  /SHOW                                       +blue{Show the computed topology}

\end{PlusVerbatim}
\subsection{VIEW}
\label{sec:GO:VIEW:help}
\index{GO VIEW command}
\begin{PlusVerbatim}
                                                    +blue{VIEW} [cube [window]]
---------------------------------------------------------------------------
  Abstract                                    +blue{Interactive view of a cube}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                  +blue{Cube to be viewed}
\end{PlusVerbatim}
\section{HELP Language On-Line Help}
\label{sec:HELP:help}
\index{HELP command list}
\begin{PlusVerbatim}
  HELP\                        +blue{Commands to get help or debug the program}
---------------------------------------------------------------------------
  ?                                                 +blue{List known languages}
  HELP                                 +blue{Get help for commands and options}
  DEBUG                       +blue{Set which debugging messages are displayed}

\end{PlusVerbatim}
\subsection{?}
\label{sec:HELP:?:help}
\index{HELP ? command}
\begin{PlusVerbatim}
                                                                       +blue{?}
---------------------------------------------------------------------------
  Abstract                                          +blue{List known languages}
\end{PlusVerbatim}
\subsection{HELP}
\label{sec:HELP:HELP:help}
\index{HELP HELP command}
\begin{PlusVerbatim}
                                     +blue{HELP} [COMMAND [/OPTION]] [+blue{/COLLECT}]
---------------------------------------------------------------------------
  Abstract                             +blue{Get help for commands and options}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  COMMAND                                    +blue{Command name}
  #2 (optional)  OPTION                                      +blue{Option name}
---------------------------------------------------------------------------
  /COLLECT                        +blue{Collect all the helps in a single file}
\end{PlusVerbatim}
\subsubsection{HELP /COLLECT}
\label{sec:HELP:HELP:COLLECT:help}
\index{HELP HELP /COLLECT option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/COLLECT}
---------------------------------------------------------------------------
  /COLLECT                        +blue{Collect all the helps in a single file}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  FILE                                   +blue{Output file name}

\end{PlusVerbatim}
\subsection{DEBUG}
\label{sec:HELP:DEBUG:help}
\index{HELP DEBUG command}
\begin{PlusVerbatim}
                                       +blue{DEBUG} [[Topic [Subtopic]] ON|OFF]
---------------------------------------------------------------------------
  Abstract                    +blue{Set which debugging messages are displayed}
---------------------------------------------------------------------------
  DEBUG without any topic or subtopic will display which debug or trace
  messages are active. All debug messages for a topic can be turned ON
  or OFF at once if no subtopic is provided, Also all debug messages
  for all topics can be turned ON or OFF if no topic is given
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TOPIC                   +blue{Select topic for debug messages}
     Possible values: ADM, CUBE, DAG, FIT, GO, IO, SET or TOOLS
  #2 (optional)  SUBTOPIC             +blue{Select subtopic for debug messages}
     Possible values: *, ALLOCATION, TRANSPOSITION, TRACE or OTHERS
  #3 (optional)  ONOFF                          +blue{Debug messages ON or OFF}
     Possible values: ON or OFF
\end{PlusVerbatim}
\section{SET Language On-Line Help}
\label{sec:SET:help}
\index{SET command list}
\begin{PlusVerbatim}
  SET\                 +blue{Commands that set global behaviors of the program}
---------------------------------------------------------------------------
  AXSET                        +blue{Set how axes set are treated when reading}
  BLANKING               +blue{Set how blanked values are treated when reading}
  BUFFERING                  +blue{Set how input and output files are buffered}
  COLORS                     +blue{Set colors to be used in consistency prints}
  INDEX          +blue{Set which index should be used when searching for cubes}
  OUTPUT                                +blue{Set how output cubes are handled}
  PANEL                        +blue{Define and configure plot regions in GREG}
  SPATIAL                             +blue{Set the spatial region of interest}
  SPECTRAL                           +blue{Set the spectral region of interest}
  TIMING      +blue{Enable or disable timing feedback at the end of processing}
  UNITS                                           +blue{Set user current units}

\end{PlusVerbatim}
\subsection{AXSET}
\label{sec:SET:AXSET:help}
\index{SET AXSET command}
\begin{PlusVerbatim}
                                         +blue{AXSET} [+blue{/IGNOREDEGENERAT} ON|OFF]
---------------------------------------------------------------------------
  Abstract                     +blue{Set how axes set are treated when reading}
---------------------------------------------------------------------------
  /IGNOREDEGENERATE        +blue{Should the degenerate axes be ignored or not?}
\end{PlusVerbatim}
\subsubsection{AXSET /IGNOREDEGENERATE}
\label{sec:SET:AXSET:IGNOREDEGENERATE:help}
\index{SET AXSET /IGNOREDEGENERATE option}
\begin{PlusVerbatim}
  Syntax                                         +blue{/IGNOREDEGENERAT} ON|OFF
---------------------------------------------------------------------------
  /IGNOREDEGENERATE        +blue{Should the degenerate axes be ignored or not?}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SWITCH                                 +blue{Switch on or off}
     Possible values: YES or NO

\end{PlusVerbatim}
\subsection{BLANKING}
\label{sec:SET:BLANKING:help}
\index{SET BLANKING command}
\begin{PlusVerbatim}
                                               +blue{BLANKING} [ERROR|ONTHEFLY]
---------------------------------------------------------------------------
  Abstract               +blue{Set how blanked values are treated when reading}
---------------------------------------------------------------------------
  If mode is set to ERROR, an error will be raised if data contain Bval
  and Eval, else if mode is set to ONTHEFLY blanked values in the data
  will be automatically patched to NaN
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  BEHAVIOUR   +blue{behaviour when encountering blanking values}
     Possible values: ERROR or ONTHEFLY
\end{PlusVerbatim}
\subsection{BUFFERING}
\label{sec:SET:BUFFERING:help}
\index{SET BUFFERING command}
\begin{PlusVerbatim}
  Syntax                        +blue{BUFFERING} [+blue{/INPUT} value] [+blue{/OUTPUT} value]
                               [+blue{/BLOCK} size [unit]] [+blue{/LIMIT} size [unit]]
                                     [+blue{/PARALLEL} size [unit]] [+blue{/DEFAULTS}]
---------------------------------------------------------------------------
  Abstract                   +blue{Set how input and output files are buffered}
---------------------------------------------------------------------------
  /INPUT                                +blue{Define buffering for input files}
  /OUTPUT                              +blue{Define buffering for output files}
  /BLOCK                                   +blue{File block size for DISK mode}
  /LIMIT             +blue{Define the threshold for DISK use in automatic mode}
  /PARALLEL                                    +blue{Define parallel task size}
  /DEFAULTS                                 +blue{Return buffering to defaults}
\end{PlusVerbatim}
\subsubsection{BUFFERING /INPUT}
\label{sec:SET:BUFFERING:INPUT:help}
\index{SET BUFFERING /INPUT option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/INPUT} value
---------------------------------------------------------------------------
  /INPUT                                +blue{Define buffering for input files}
---------------------------------------------------------------------------
  Choose if the input files should be stored entirely in memory (MEMORY
  mode), or should be processed by blocks (DISK mode), or choose
  automatically between memory and disk processing depending on a limit
  (AUTOMATIC mode)
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VALUE                                 +blue{Default is memory}
     Possible values: AUTO, NONE, MEMORY or DISK

\end{PlusVerbatim}
\subsubsection{BUFFERING /OUTPUT}
\label{sec:SET:BUFFERING:OUTPUT:help}
\index{SET BUFFERING /OUTPUT option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/OUTPUT} value
---------------------------------------------------------------------------
  /OUTPUT                              +blue{Define buffering for output files}
---------------------------------------------------------------------------
  Choose if the output files should be stored entirely in memory
  (MEMORY mode), or should be processed by blocks (DISK mode), or
  choose automatically between memory and disk processing depending on
  a limit (AUTOMATIC mode)
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VALUE                                 +blue{Default is memory}
     Possible values: AUTO, NONE, MEMORY or DISK

\end{PlusVerbatim}
\subsubsection{BUFFERING /BLOCK}
\label{sec:SET:BUFFERING:BLOCK:help}
\index{SET BUFFERING /BLOCK option}
\begin{PlusVerbatim}
  Syntax                                              +blue{/BLOCK} size [unit]
---------------------------------------------------------------------------
  /BLOCK                                   +blue{File block size for DISK mode}
---------------------------------------------------------------------------
  In DISK mode files are accessed by contiguous blocks of limited size.
  This allows processing of files larger than the available memory. In
  serial mode, keeping this parameter relatively small (e.g. 1% of the
  file size) saves memory with marginal file access overheads (e.g. 1%
  means 100 accesses to the file). In parallel mode, however, one might
  want to increase this value so that a large slice of the file is
  loaded in memory and is processed by several parallelisation tasks:
  the ideal value is Nthread times the /PARALLEL size parameter
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SIZE                           +blue{Block size for disk mode}
  #2 (optional)  UNIT                                +blue{unit for block size}

\end{PlusVerbatim}
\subsubsection{BUFFERING /LIMIT}
\label{sec:SET:BUFFERING:LIMIT:help}
\index{SET BUFFERING /LIMIT option}
\begin{PlusVerbatim}
  Syntax                                              +blue{/LIMIT} size [unit]
---------------------------------------------------------------------------
  /LIMIT             +blue{Define the threshold for DISK use in automatic mode}
---------------------------------------------------------------------------
  In AUTOMATIC mode, define the cube size threshold above which the
  file is processed by blocks on disk.
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SIZE        +blue{Limit between Disk access and memory access}
  #2 (optional)  UNIT                                     +blue{unit for limit}

\end{PlusVerbatim}
\subsubsection{BUFFERING /PARALLEL}
\label{sec:SET:BUFFERING:PARALLEL:help}
\index{SET BUFFERING /PARALLEL option}
\begin{PlusVerbatim}
  Syntax                                           +blue{/PARALLEL} size [unit]
---------------------------------------------------------------------------
  /PARALLEL                                    +blue{Define parallel task size}
---------------------------------------------------------------------------
  When parallel processing is available, the entries (either images or
  spectra) are grouped in different tasks, and the tasks are executed
  in parallel
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SIZE                     +blue{Size for parallelisation tasks}
  #2 (optional)  UNIT                                 +blue{unit for task size}

\end{PlusVerbatim}
\subsubsection{BUFFERING /DEFAULTS}
\label{sec:SET:BUFFERING:DEFAULTS:help}
\index{SET BUFFERING /DEFAULTS option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/DEFAULTS}
---------------------------------------------------------------------------
  /DEFAULTS                                 +blue{Return buffering to defaults}

\end{PlusVerbatim}
\subsection{COLORS}
\label{sec:SET:COLORS:help}
\index{SET COLORS command}
\begin{PlusVerbatim}
                                                    +blue{COLORS} [topic color]
---------------------------------------------------------------------------
  Abstract                   +blue{Set colors to be used in consistency prints}
---------------------------------------------------------------------------
  If called without arguments shows the current consistency colors.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TOPIC                             +blue{Topic to define color}
     Possible values: CONSISTENT, INCONSISTENT or NOTCHECKED
  #2 (optional)  COLOR                                      +blue{Chosen color}
     Possible values: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN,
     WHITE or ORANGE
\end{PlusVerbatim}
\subsection{INDEX}
\label{sec:SET:INDEX:help}
\index{SET INDEX command}
\begin{PlusVerbatim}
                                                   +blue{INDEX} [INPUT|CURRENT]
---------------------------------------------------------------------------
  Abstract       +blue{Set which index should be used when searching for cubes}
---------------------------------------------------------------------------
  No argument shows current value. Default is DAG
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  NAME                       +blue{Name of the index to be used}
     Possible values: DAG or CURRENT
\end{PlusVerbatim}
\subsection{OUTPUT}
\label{sec:SET:OUTPUT:help}
\index{SET OUTPUT command}
\begin{PlusVerbatim}
                                                    +blue{OUTPUT} [Topic yesno]
---------------------------------------------------------------------------
  Abstract                              +blue{Set how output cubes are handled}
---------------------------------------------------------------------------
  Topic EXTREMA Enables or disables the automatic computation/update of
  the extrema section in the header of the output cubes. Default is
  YES. Topic WRITE Enables or disables writing the cubes from memory to
  disk at the end of the processing commands. This makes sense for
  memory mode only. Default is YES.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TOPIC                                   +blue{Topic to be set}
     Possible values: EXTREMA or WRITE
  #2 (optional)  YESNO                         +blue{Topic is set to yes or no}
     Possible values: YES or NO
\end{PlusVerbatim}
\subsection{PANEL}
\label{sec:SET:PANEL:help}
\index{SET PANEL command}
\begin{PlusVerbatim}
  Syntax                   +blue{PANEL} [I [J]] [+blue{/NXY} nx [ny]] [+blue{/INTER} rx [ry]]
                    [+blue{/ASPECT} ratio] [+blue{/POSITION} preset | px1 px2 py1 py2]
                                     [+blue{/FIXED} [corner]] [+blue{/DEFAULT}] [+blue{/BOX}]
---------------------------------------------------------------------------
  Abstract                     +blue{Define and configure plot regions in GREG}
---------------------------------------------------------------------------
  if only I is given panel counting starts at the top left and ends at
  the bottom right, if both I and J are given I stands for the column
  (from left to right) and J the line (from bottom to top). If no
  option is given PANEL uses the previous plot configurations, in the
  case of the first call of PANEL in the CUBE session, CUBE plot
  defaults are used
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  I                                 +blue{I-eth panel or Column}
  #2 (optional)  J                                            +blue{J-eth line}
---------------------------------------------------------------------------
  /NXY                                         +blue{Define the grid of panels}
  /INTER                   +blue{Define the spacing between panels in the grid}
  /ASPECT                              +blue{Set the aspect ratio of the panel}
  /POSITION                     +blue{Set the area of the plot page to be used}
  /FIXED                   +blue{Fix panels to a corner of the total plot page}
  /DEFAULT                                          +blue{Reset PANEL defaults}
  /BOX                               +blue{Draw a box around the current panel}
\end{PlusVerbatim}
\subsubsection{PANEL /NXY}
\label{sec:SET:PANEL:NXY:help}
\index{SET PANEL /NXY option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/NXY} nx [ny]
---------------------------------------------------------------------------
  /NXY                                         +blue{Define the grid of panels}
---------------------------------------------------------------------------
  If only nx is given PANEL will use a square configuration to display
  nx plots. If both nx and ny are given nx stand for the number of
  columns of plots and ny for the number of lines of plots, with nx*ny
  being the total number of plots
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) NX                +blue{Number of panels or number of columns}
  #2 (optional)  NY                                      +blue{Number of lines}

\end{PlusVerbatim}
\subsubsection{PANEL /INTER}
\label{sec:SET:PANEL:INTER:help}
\index{SET PANEL /INTER option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/INTER} rx [ry]
---------------------------------------------------------------------------
  /INTER                   +blue{Define the spacing between panels in the grid}
---------------------------------------------------------------------------
  If rx and ry are given rx is the spacing in the x direction and ry is
  the spacing on the y direction.  If only rx is given rx is the
  spacing in both directions.
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) RX                 +blue{Spacing between panels, or x spacing}
  #2 (optional)  RY                             +blue{y spacing between panels}

\end{PlusVerbatim}
\subsubsection{PANEL /ASPECT}
\label{sec:SET:PANEL:ASPECT:help}
\index{SET PANEL /ASPECT option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/ASPECT} ratio
---------------------------------------------------------------------------
  /ASPECT                              +blue{Set the aspect ratio of the panel}
---------------------------------------------------------------------------
  A ratio larger than 1 means that the X axis will be larger than the Y
  axis. If ratio is 0 or * the aspect ratio is chosen automatically to
  maximise plot area. Default is 0
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) RATIO                                +blue{panel aspect ratio}

\end{PlusVerbatim}
\subsubsection{PANEL /POSITION}
\label{sec:SET:PANEL:POSITION:help}
\index{SET PANEL /POSITION option}
\begin{PlusVerbatim}
  Syntax                              +blue{/POSITION} preset | px1 px2 py1 py2
---------------------------------------------------------------------------
  /POSITION                     +blue{Set the area of the plot page to be used}
---------------------------------------------------------------------------
  Unit is in fraction of the total GREG plot page smallest side, e.g.
  0.1 0.9 0.1 1.4. Using the same unit in both direction ensure that
  the same value correspond to the same length on the plot
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) PX1     +blue{Panel position preset or left side x coordinate}
     Possible values: px1, USER, DEFAULT, PLOT, HEADER or WEDGE
  #2 (optional)  PX2                             +blue{right side x coordinate}
  #3 (optional)  PY1                            +blue{bottom side y coordinate}
  #4 (optional)  PY2                               +blue{top side y coordinate}

\end{PlusVerbatim}
\subsubsection{PANEL /FIXED}
\label{sec:SET:PANEL:FIXED:help}
\index{SET PANEL /FIXED option}
\begin{PlusVerbatim}
  Syntax                                                 +blue{/FIXED} [corner]
---------------------------------------------------------------------------
  /FIXED                   +blue{Fix panels to a corner of the total plot page}
---------------------------------------------------------------------------
  TRC for Top Right corner, TLC for the Top Left Corner, BRC for the
  Bottom Right Corner and BLC for the Bottom Left Corner
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CORNER                           +blue{Corner to fix panel to}
     Possible values: NONE, TRC, TLC, BRC or BLC

\end{PlusVerbatim}
\subsubsection{PANEL /DEFAULT}
\label{sec:SET:PANEL:DEFAULT:help}
\index{SET PANEL /DEFAULT option}
\begin{PlusVerbatim}
  Syntax                                                        +blue{/DEFAULT}
---------------------------------------------------------------------------
  /DEFAULT                                          +blue{Reset PANEL defaults}

\end{PlusVerbatim}
\subsubsection{PANEL /BOX}
\label{sec:SET:PANEL:BOX:help}
\index{SET PANEL /BOX option}
\begin{PlusVerbatim}
  Syntax                                                            +blue{/BOX}
---------------------------------------------------------------------------
  /BOX                               +blue{Draw a box around the current panel}

\end{PlusVerbatim}
\subsection{SPATIAL}
\label{sec:SET:SPATIAL:help}
\index{SET SPATIAL command}
\begin{PlusVerbatim}
  Syntax                      +blue{SPATIAL} [+blue{/DEFAULTS}] [+blue{/SIZE} sx [sy [unit]]]
                         [+blue{/ANGLE} posang [unit]] [+blue{/CENTER} cx [cy [unit]]]
---------------------------------------------------------------------------
  Abstract                            +blue{Set the spatial region of interest}
---------------------------------------------------------------------------
  /DEFAULTS                                       +blue{Reset SPATIAL defaults}
  /SIZE                   +blue{Set the size of the spatial region of interest}
  /ANGLE         +blue{Set a rotation angle for the spatial region of interest}
  /CENTER               +blue{Set the center of the spatial region of interest}
\end{PlusVerbatim}
\subsubsection{SPATIAL /DEFAULTS}
\label{sec:SET:SPATIAL:DEFAULTS:help}
\index{SET SPATIAL /DEFAULTS option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/DEFAULTS}
---------------------------------------------------------------------------
  /DEFAULTS                                       +blue{Reset SPATIAL defaults}

\end{PlusVerbatim}
\subsubsection{SPATIAL /SIZE}
\label{sec:SET:SPATIAL:SIZE:help}
\index{SET SPATIAL /SIZE option}
\begin{PlusVerbatim}
  Syntax                                            +blue{/SIZE} sx [sy [unit]]
---------------------------------------------------------------------------
  /SIZE                   +blue{Set the size of the spatial region of interest}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) SX                                 +blue{Total size or x size}
  #2 (optional)  SY                              +blue{Size in the y direction}
  #3 (optional)  UNIT                                          +blue{Size unit}

\end{PlusVerbatim}
\subsubsection{SPATIAL /ANGLE}
\label{sec:SET:SPATIAL:ANGLE:help}
\index{SET SPATIAL /ANGLE option}
\begin{PlusVerbatim}
  Syntax                                            +blue{/ANGLE} posang [unit]
---------------------------------------------------------------------------
  /ANGLE         +blue{Set a rotation angle for the spatial region of interest}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) POSANG                                   +blue{position angle}
  #2 (optional)  UNIT                                         +blue{angle unit}

\end{PlusVerbatim}
\subsubsection{SPATIAL /CENTER}
\label{sec:SET:SPATIAL:CENTER:help}
\index{SET SPATIAL /CENTER option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/CENTER} cx [cy [unit]]
---------------------------------------------------------------------------
  /CENTER               +blue{Set the center of the spatial region of interest}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) CX                              +blue{Center in L coordinates}
  #2 (mandatory) CY                              +blue{Center in M coordinates}
  #3 (optional)  UNIT                                        +blue{Center unit}

\end{PlusVerbatim}
\subsection{SPECTRAL}
\label{sec:SET:SPECTRAL:help}
\index{SET SPECTRAL command}
\begin{PlusVerbatim}
  Syntax                     +blue{SPECTRAL} [+blue{/FREQUENCY} line frequency [unit]]
                     [+blue{/VSYSTEMIC} vsys [unit]] [+blue{/RANGE} first last [unit]]
                                                             [+blue{/DEFAULTS}]
---------------------------------------------------------------------------
  Abstract                           +blue{Set the spectral region of interest}
---------------------------------------------------------------------------
  /FREQUENCY +blue{Set the line, frequency and unit for the region of interest}
  /VSYSTEMIC        +blue{Set the systemic velocity for the region of interest}
  /RANGE       +blue{Set the velocity range of the spectral region of interest}
  /DEFAULTS                                      +blue{Reset SPECTRAL defaults}
\end{PlusVerbatim}
\subsubsection{SPECTRAL /FREQUENCY}
\label{sec:SET:SPECTRAL:FREQUENCY:help}
\index{SET SPECTRAL /FREQUENCY option}
\begin{PlusVerbatim}
  Syntax                                +blue{/FREQUENCY} line frequency [unit]
---------------------------------------------------------------------------
  /FREQUENCY +blue{Set the line, frequency and unit for the region of interest}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) LINE                                          +blue{Line name}
  #2 (mandatory) FREQUENCY                                +blue{Line frequency}
  #3 (optional)  UNIT                                     +blue{Frequency unit}

\end{PlusVerbatim}
\subsubsection{SPECTRAL /VSYSTEMIC}
\label{sec:SET:SPECTRAL:VSYSTEMIC:help}
\index{SET SPECTRAL /VSYSTEMIC option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/VSYSTEMIC} vsys [unit]
---------------------------------------------------------------------------
  /VSYSTEMIC        +blue{Set the systemic velocity for the region of interest}
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) VSYS                            +blue{Systemic velocity value}
  #2 (optional)  UNIT                                      +blue{Velocity unit}

\end{PlusVerbatim}
\subsubsection{SPECTRAL /RANGE}
\label{sec:SET:SPECTRAL:RANGE:help}
\index{SET SPECTRAL /RANGE option}
\begin{PlusVerbatim}
  Syntax                                        +blue{/RANGE} first last [unit]
---------------------------------------------------------------------------
  /RANGE       +blue{Set the velocity range of the spectral region of interest}
---------------------------------------------------------------------------
  A single spectral range is accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FIRST                                    +blue{Start of range}
  #2 (mandatory) LAST                                       +blue{End of range}
  #3 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{SPECTRAL /DEFAULTS}
\label{sec:SET:SPECTRAL:DEFAULTS:help}
\index{SET SPECTRAL /DEFAULTS option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/DEFAULTS}
---------------------------------------------------------------------------
  /DEFAULTS                                      +blue{Reset SPECTRAL defaults}

\end{PlusVerbatim}
\subsection{TIMING}
\label{sec:SET:TIMING:help}
\index{SET TIMING command}
\begin{PlusVerbatim}
                                                   +blue{TIMING} [topic ON|OFF]
---------------------------------------------------------------------------
  Abstract    +blue{Enable or disable timing feedback at the end of processing}
---------------------------------------------------------------------------
  Default is OFF. Two topics are available: COMMAND for execution
  times, and IO for data Input and Output
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  TOPIC                                      +blue{Timing topic}
     Possible values: IO or COMMAND
  #2 (optional)  ONOFF                         +blue{Timing messages ON or OFF}
     Possible values: ON or OFF
\end{PlusVerbatim}
\subsection{UNITS}
\label{sec:SET:UNITS:help}
\index{SET UNITS command}
\begin{PlusVerbatim}
                                           +blue{UNITS} [kind name] [+blue{/DEFAULTS}]
---------------------------------------------------------------------------
  Abstract                                        +blue{Set user current units}
---------------------------------------------------------------------------
  Current units are the units used to display information to the user
  and the expected units for user input. If called without arguments,
  Units display the current units and its convertion factor to internal units
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  KIND                                          +blue{Unit kind}
     Possible values: FOV, POSANGLE, BEAM, FREQUENCY, VELOCITY,
     WAVELENGTH, CHANNEL, PIXEL, DISTANCE or UNKNOWN
  #2 (optional)  NAME                                          +blue{Unit name}
---------------------------------------------------------------------------
  /DEFAULTS                            +blue{Restore current units to defaults}
\end{PlusVerbatim}
\subsubsection{UNITS /DEFAULTS}
\label{sec:SET:UNITS:DEFAULTS:help}
\index{SET UNITS /DEFAULTS option}
\begin{PlusVerbatim}
  Syntax                                                       +blue{/DEFAULTS}
---------------------------------------------------------------------------
  /DEFAULTS                            +blue{Restore current units to defaults}

\end{PlusVerbatim}
\section{FIT Language On-Line Help}
\label{sec:FIT:help}
\index{FIT command list}
\begin{PlusVerbatim}
  FIT\                                                      +blue{COMMAND fits}
---------------------------------------------------------------------------
  MINIMIZE                                      +blue{Fit functions to spectra}
  PARAMETERS                         +blue{Extract parameters from fit results}
  RESIDUALS                                 +blue{Compute residuals from a fit}
  RESULT                           +blue{Produce a model cube from fit results}

\end{PlusVerbatim}
\subsection{MINIMIZE}
\label{sec:FIT:MINIMIZE:help}
\index{FIT MINIMIZE command}
\begin{PlusVerbatim}
  Syntax                                        +blue{MINIMIZE} [cube] [window]
                                 [+blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]]
                                            [+blue{/INITIAL} cube] [+blue{/MASK} cube]
     [+blue{/LINE} method [nlines f11 p11 ... f1m p1m ... fn1 pn1 ... fnm pnm]]
                                         [+blue{/HFS} hfsfile] [+blue{/WINDOW} method]
---------------------------------------------------------------------------
  Abstract                                      +blue{Fit functions to spectra}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  WINDOW                                      +blue{window cube}
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
  /INITIAL        +blue{Get initial guesses to a fit from a initial guess cube}
  /MASK                 +blue{Use a 2D mask to define the regions to be fitted}
  /LINE              +blue{Set fitting method and optionally its first guesses}
  /HFS                                              +blue{Provide the HFS file}
  /WINDOW                      +blue{Estimate first guesses from a window CUBE}
\end{PlusVerbatim}
\subsubsection{MINIMIZE /RANGE}
\label{sec:FIT:MINIMIZE:RANGE:help}
\index{FIT MINIMIZE /RANGE option}
\begin{PlusVerbatim}
  Syntax                           +blue{/RANGE} v11 v12 [... [vn1 vn2]] [unit]
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
---------------------------------------------------------------------------
  Range(s) is (are) in velocity, multiple ranges are accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) V11                                +blue{Start of first range}
  #2 (mandatory) V12                                  +blue{End of first range}
  #3 (optional)  VN1                                +blue{Start of n-eth range}
  #4 (optional)  VN2                                  +blue{End of n-eth range}
  #5 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{MINIMIZE /INITIAL}
\label{sec:FIT:MINIMIZE:INITIAL:help}
\index{FIT MINIMIZE /INITIAL option}
\begin{PlusVerbatim}
  Syntax                                                   +blue{/INITIAL} cube
---------------------------------------------------------------------------
  /INITIAL        +blue{Get initial guesses to a fit from a initial guess cube}
---------------------------------------------------------------------------
  The input CUBE can be the output of the command MINIMIZE orcan be
  created freely by the user
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                 +blue{Initial guess cube}

\end{PlusVerbatim}
\subsubsection{MINIMIZE /MASK}
\label{sec:FIT:MINIMIZE:MASK:help}
\index{FIT MINIMIZE /MASK option}
\begin{PlusVerbatim}
  Syntax                                                      +blue{/MASK} cube
---------------------------------------------------------------------------
  /MASK                 +blue{Use a 2D mask to define the regions to be fitted}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                               +blue{Mask}

\end{PlusVerbatim}
\subsubsection{MINIMIZE /LINE}
\label{sec:FIT:MINIMIZE:LINE:help}
\index{FIT MINIMIZE /LINE option}
\begin{PlusVerbatim}
  Syntax            +blue{/LINE} method [nlines f11 p11 ... f1m p1m ... fn1 pn1
---------------------------------------------------------------------------
  /LINE              +blue{Set fitting method and optionally its first guesses}
---------------------------------------------------------------------------
  If first guesses are omitted, smart first guesses will be computed
  for a  single line. If both /LINE and /INITIAL are not present a
  single guassian is assumed with initial guesses  chosen by MINIMIZE
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) METHOD                               +blue{Method for fitting}
     Possible values: GAUSS, NH3(1,1), NH3(2,2), NH3(3,3), HFS,
     ABSORPTION or SHELL
  #2 (mandatory) NLINES                     +blue{Number of lines to be fitted}
  #3 (mandatory) F11      +blue{Flag for the first parameter of the first line}
  #4 (mandatory) P11                   +blue{First parameter of the first line}
  #5 (mandatory) FNM      +blue{Flag for the m-eth parameter of the n-eth line}
  #6 (mandatory) PNM                   +blue{m-eth parameter of the n-eth line}

\end{PlusVerbatim}
\subsubsection{MINIMIZE /HFS}
\label{sec:FIT:MINIMIZE:HFS:help}
\index{FIT MINIMIZE /HFS option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/HFS} hfsfile
---------------------------------------------------------------------------
  /HFS                                              +blue{Provide the HFS file}
---------------------------------------------------------------------------
  Provide the file describing the HyperFine Structure (HFS) of the line
  to be fitted using the methods: HFS and ABSORPTION
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) HFSFILE               +blue{File containing the HFS structure}

\end{PlusVerbatim}
\subsubsection{MINIMIZE /WINDOW}
\label{sec:FIT:MINIMIZE:WINDOW:help}
\index{FIT MINIMIZE /WINDOW option}
\begin{PlusVerbatim}
  Syntax                                                  +blue{/WINDOW} method
---------------------------------------------------------------------------
  /WINDOW                      +blue{Estimate first guesses from a window CUBE}
---------------------------------------------------------------------------
  The window cube can be created with commad WINDOW. The number of
  lines to be fitted is assumed to be equal to the number of windows in
  the window CUBE
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) METHOD                               +blue{Method for fitting}
     Possible values: GAUSS, NH3(1,1), NH3(2,2), NH3(3,3), HFS,
     ABSORPTION or SHELL

\end{PlusVerbatim}
\subsection{PARAMETERS}
\label{sec:FIT:PARAMETERS:help}
\index{FIT PARAMETERS command}
\begin{PlusVerbatim}
                              +blue{PARAMETERS} [cube] [+blue{/SELECT} method [iline]]
---------------------------------------------------------------------------
  Abstract                           +blue{Extract parameters from fit results}
---------------------------------------------------------------------------
  Apart from extracting the fit resutls a SNR image is produced for
  each of the parameters fitted. This SNR image is computed as the fit
  result divided by the fit error, except for the position parameters
  (Frequency and Velocity). In this case the SNR is computed as the
  Spectral resolution divided by the fit error.
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                               +blue{FIT\MINIMIZE results}
---------------------------------------------------------------------------
  /SELECT                         +blue{Select which fit result to be computed}
\end{PlusVerbatim}
\subsubsection{PARAMETERS /SELECT}
\label{sec:FIT:PARAMETERS:SELECT:help}
\index{FIT PARAMETERS /SELECT option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/SELECT} method [iline]
---------------------------------------------------------------------------
  /SELECT                         +blue{Select which fit result to be computed}
---------------------------------------------------------------------------
  If iline is not given or is 0 all components are included
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) METHOD                            +blue{Method to be selected}
     Possible values: GAUSS, NH3(1,1), NH3(2,2), NH3(3,3), HFS,
     ABSORPTION or SHELL
  #2 (optional)  ILINE                    +blue{which component to be selected}

\end{PlusVerbatim}
\subsection{RESIDUALS}
\label{sec:FIT:RESIDUALS:help}
\index{FIT RESIDUALS command}
\begin{PlusVerbatim}
  Syntax               +blue{RESIDUALS} [cube] [fit] [+blue{/RANGE} first last [unit]]
                                 [+blue{/HFS} hfsfile] [+blue{/SELECT} method [iline]]
---------------------------------------------------------------------------
  Abstract                                  +blue{Compute residuals from a fit}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  FIT                      +blue{Cube containing fit residualss}
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
  /HFS                                              +blue{Provide the HFS file}
  /SELECT                         +blue{Select which fit result to be computed}
\end{PlusVerbatim}
\subsubsection{RESIDUALS /RANGE}
\label{sec:FIT:RESIDUALS:RANGE:help}
\index{FIT RESIDUALS /RANGE option}
\begin{PlusVerbatim}
  Syntax                                        +blue{/RANGE} first last [unit]
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
---------------------------------------------------------------------------
  A single spectral range is accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FIRST                                    +blue{Start of range}
  #2 (mandatory) LAST                                       +blue{End of range}
  #3 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{RESIDUALS /HFS}
\label{sec:FIT:RESIDUALS:HFS:help}
\index{FIT RESIDUALS /HFS option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/HFS} hfsfile
---------------------------------------------------------------------------
  /HFS                                              +blue{Provide the HFS file}
---------------------------------------------------------------------------
  Provide the file describing the HyperFine Structure (HFS) of the line
  to be fitted using the methods: HFS and ABSORPTION
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) HFSFILE               +blue{File containing the HFS structure}

\end{PlusVerbatim}
\subsubsection{RESIDUALS /SELECT}
\label{sec:FIT:RESIDUALS:SELECT:help}
\index{FIT RESIDUALS /SELECT option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/SELECT} method [iline]
---------------------------------------------------------------------------
  /SELECT                         +blue{Select which fit result to be computed}
---------------------------------------------------------------------------
  If iline is not given or is 0 all components are included
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) METHOD                            +blue{Method to be selected}
     Possible values: GAUSS, NH3(1,1), NH3(2,2), NH3(3,3), HFS,
     ABSORPTION or SHELL
  #2 (optional)  ILINE                    +blue{which component to be selected}

\end{PlusVerbatim}
\subsection{RESULT}
\label{sec:FIT:RESULT:help}
\index{FIT RESULT command}
\begin{PlusVerbatim}
  Syntax                  +blue{RESULT} [cube] [fit] [+blue{/RANGE} first last [unit]]
                                 [+blue{/HFS} hfsfile] [+blue{/SELECT} method [iline]]
---------------------------------------------------------------------------
  Abstract                         +blue{Produce a model cube from fit results}
---------------------------------------------------------------------------
  Arguments
  #1 (optional)  CUBE                                        +blue{Signal cube}
  #2 (optional)  FIT                         +blue{Cube containing fit results}
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
  /HFS                                              +blue{Provide the HFS file}
  /SELECT                         +blue{Select which fit result to be computed}
\end{PlusVerbatim}
\subsubsection{RESULT /RANGE}
\label{sec:FIT:RESULT:RANGE:help}
\index{FIT RESULT /RANGE option}
\begin{PlusVerbatim}
  Syntax                                        +blue{/RANGE} first last [unit]
---------------------------------------------------------------------------
  /RANGE                                        +blue{Define velocity range(s)}
---------------------------------------------------------------------------
  A single spectral range is accepted
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) FIRST                                    +blue{Start of range}
  #2 (mandatory) LAST                                       +blue{End of range}
  #3 (optional)  UNIT                                         +blue{Range unit}
     Possible values: km/s or m/s

\end{PlusVerbatim}
\subsubsection{RESULT /HFS}
\label{sec:FIT:RESULT:HFS:help}
\index{FIT RESULT /HFS option}
\begin{PlusVerbatim}
  Syntax                                                    +blue{/HFS} hfsfile
---------------------------------------------------------------------------
  /HFS                                              +blue{Provide the HFS file}
---------------------------------------------------------------------------
  Provide the file describing the HyperFine Structure (HFS) of the line
  to be fitted using the methods: HFS and ABSORPTION
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) HFSFILE               +blue{File containing the HFS structure}

\end{PlusVerbatim}
\subsubsection{RESULT /SELECT}
\label{sec:FIT:RESULT:SELECT:help}
\index{FIT RESULT /SELECT option}
\begin{PlusVerbatim}
  Syntax                                          +blue{/SELECT} method [iline]
---------------------------------------------------------------------------
  /SELECT                         +blue{Select which fit result to be computed}
---------------------------------------------------------------------------
  If iline is not given or is 0 all components are included
---------------------------------------------------------------------------
  Arguments
  #1 (mandatory) METHOD                            +blue{Method to be selected}
     Possible values: GAUSS, NH3(1,1), NH3(2,2), NH3(3,3), HFS,
     ABSORPTION or SHELL
  #2 (optional)  ILINE                    +blue{which component to be selected}

\end{PlusVerbatim}
