Task:    swarmsplt

Responsible: Jun-Hui Zhao

         SWARMSPLT is a special tool for handling SMA data produced from 
         the hybrid correlators ASIC and SWARM, splitting the uv dataset 
         into either the ch0 or the ASIC (48 or smaller) spectral chunks
         or the SWARM chunks produced from the SMA hybrid correlator
         (ASIC + SWARM).

Keyword: vis
         The name of the input uv data sets. The input data must be in the
         original format generated with SMALOD in converting SMA data produced 
         from the hybrid correlator SWARM and ASIC; i.e. the 
         data with 53 spectral windows (ch0 + 48 ASIC chunks and number of SWARM
         chunks). No default.

Keyword: out
         The name of the output uv data set. No default.

Keyword: options
         This gives extra processing options. Ten options given below can be 
         used, one at a time. No multiple options are allowed:
            ch0     Means taking the first channel (ch0) data for continuum.
            asic    Means all the 48 spectral chunk data produced from the 
                    legacy ASIC correlator including two IF chunks.
            if1     Means the first IF in the sideband--the first 24 spectral 
                    chunk data (S1,S2,...S24) produced from the legacy ASIC 
                    correlator.
            if2     Means the second IF in the sideband--the rest 24 spectral 
                    chunk data (S25,S26,...S48) produced from the legacy ASIC 
                    correlator.
            swarm   Means all SWARM spectral chunks (S49,S50,S51,S52).
            sw1     the first  SWARM chunk (S49).
            sw2     the second SWARM chunk (S50).
            sw3     the third  SWARM chunk (S51).
            sw4     the fourth SWARM chunk (S52).
                    Default is the ASIC N (48 or less) spectral chunks data and
                    the four SWARM chunks, excluding the ch0.

Keyword: line
         The normal uv linetype in the form:
                 line,nchan,start,width,step
         The default is all channels. 
         To reduce down spectral resolution for swarm data, 
         one may set the keyword - line as:
             line = channel,8192,1,2
             for optiions = individual SWARM chunks, i.e.,
                          = sw1          or
                          = sw2          or
                          = sw3          or
                          = sw4          or
             line = channel,16384,1,4
             for optiions = swarm.