1 Language
              DSB2SSB\ Language Summary

    INITIALIZE
    DECONVOLVE
1 INITIALIZE
        DSB2SSB\INITIALIZE [Continuum_Offset]

    Builds the data array for deconvolution from all spectra in the index. A
    continuum offset can be provided.

    This instruction MUST be called before your first call to DECONVOLVE.
1 DECONVOLVE
        DSB2SSB\DECONVOLVE Tolerance  Itmax  [Lambda1  [Lambda2  [Lambda3]]]
    [/GAIN [First_Guess]] [/KEEP]

    Deconvolves  DSB dataset loaded with INITIALIZE into SSB spectrum. Mini-
    mizes the function:
            Chi^2 - lambda1 F1 - lambda2 F2
    until either the difference in Chi^2 between the iterations is less than
    the  Tolerance,  or  the  maximum  number  of  iterations Itmax has been
    reached.

    Here:
      Chi^2 = Sum (dsb - ssb_lsb*gain_lsb - ssb_usb*gain_usb)^2
              /(weight * nu)

      F1 : entropy of the channels.
      F1 = - Sum ssb/SSB * log ssb/SSB

      F2 : entropy of the gains.
      F2 = - Sum gain_ssb/e * log gain_ssb/e
    and
      dsb          - double sideband data
      ssb          - single sideband data
      gain         - gain of single sideband data
      weight       - T_sys^2/(integrationime * bandwidth)
      nu           - number of free parameters:
      dsb_channels - ssb_channels - sideband_gains
      SSB          - Sum ssb

    If Lambda1 or Lambda2 or Lambda3 are not specified, they are  set  to  0
    and the algorithm does NOT try to maximize the entropy term.

    By  default  the  deconvolution makes no attempt at fitting the sideband
    gains, unless the option /GAIN is specified.
2 /GAIN
        DSB2SSB\DECONVOLVE /GAIN [First_Guess]

    When this option is present, the deconvolution will try  to  adjust  the
    sideband  gains,  fitting  one  constant value per sideband for every LO
    setting.

    --> make sure you have run the deconvolution without gain fitting first!
    Here's a typical sequence of commands to turn on the gain fitting during
    the deconvolution:

      > initialize
      > deconvolve 1e-5 100 /keep
      > deconvolve 1e-5 100 /gain

    First_Guess can be set to 1 or 0.

    By default, First_Guess = 1 (the initial  guess  for  signal  and  image
    sideband gains is that they are equal to 1 for every LO setting).

    Should  any information on the sideband ratio be available in the header
    variable GAINI, the user can enforce this as initial guess for the  gain
    fitting by setting First_Guess = 0.
2 /KEEP
        DSB2SSB\DECONVOLVE /KEEP

    Keeps  the outcome of the deconvolution in memory and uses it as initial
    guess for the next (if any) run. The initial guess is reset to 0 whenev-
    er the command INITIALIZE is used.
1 ENDOFHELP
























































