SMA Software Limits
for CASA via swarm2casa pipeline

Jun-Hui Zhao
CfA | Harvard & Smithsonian
(October, 2018)

 
NC         = 4                             (Number of SWARM chunks)
NCHANSPW   = 16384                         (Maximum channels per SWARM chunk)
NCHANSWM   = NC*NCHANSPW                   (Maximum SWARM channels per bl, sb, rx, pol)
           = 65,536                        (as NC=4)

NSB        = 2                             (Number of sideband)
MAXRX      = 2                             (Maximum number of rx per track)

MAXSPW     = 1+NC                          (C1 and NC SWARM spetrcal chunks per sb, rx 
                                            C1: A single channel data, a vector-averaged of the 
                                            spectral data, or continuum channel, or ch0)
           = 5                             (as NC=4)
NCHAN      = 1+NC*NCHANSPW                 (Maximum channels per bl, sb, rx, pol)
           = 65,537                        (as NC=4)
MAXCHANSWM = MAXRX*NSB*(NC*NCHANSPW+1)     (Maximum channels per bl, pol)
           = 262,148                       (as NC=4)

MAXANT     = 8                             (Maximum number of antennas for the standard SMA)
MAXPOL     = 4                             (Maximum polarization states per antenna pair in dual rx operation)
MAXBAS     = MAXPOL*NSB*MAXANT*(MAXANT-1)/2 (Maximum number of baselines) 
           = 224                               
MAXINT     = 18,000                        (Maximum number of integration scans of observing 
                                            duration 15h for 3s integration, or
                                            of observing duration 5h for 1s integration) 
MAXDATA    = (1+NC*NCHANSPW)*MAXBAS        (Maximum data points per integration)
           = 7,340,144                     (as NC=4)

NTSYS      = 1                             (Number of indpendent system temperature measurements per antenna per integration)

MAXSRC     = 200                           (Maximum number of sources per track,
                                            about 4.5 min integration per source in a 15h observing duration)
MAXLENSRC  = 16                            (Maximum number of characters for source name string, the last character
                                            is padded with "\0", the actual number of characters is 15.
                                            The limit of 16 characters is imposed by UVFITS that is the intermediate
                                            format converting SMA online storage/archive data format into measurementSet
                                            of CASA.)

SBCHUNK    = MAXPOL*NC                     (Maximum number of spectral windows per side band)
           = 16                            (as NC=4)
MAXCHUNK   = MAXPOL*NSB*NC                 (Maximum number of spectral windows per measurementSet for CASA)
           = 32                            (as NC=4 and not identical frequency configurations produced from each of the two receivers)
MAXDATAC   = NC*NCHANSPW*MAXBAS            (Maximum data points per integration per measurementSet for CASA)
           = 14,680,064                    (as NC=4)
MAXDATAT   = NC*NCHANSPW*MAXBAS*MAXINT     (Maximum data points per measurementSet for CASA)
           = 264,241,152,000               (as NC=4)
           = 2TB                           (Maximum byte size per measurementSet for CASA) 

________________________________
Updated by JHZ (2018-11-28)
Updated by JHZ (2018-11-21)
Updated by JHZ (2018-11-15)
Updated by JHZ (2018-11-08)