.ec _
.ll 76
.ad b
.in 4
.\"====================================================================
.ti -4
1 Language
.ce
MRTHOLO_\ Command Language Summary

.nf
TOCLIC: Convert an IMBFITS file to a CLIC file
.fi
.\"====================================================================
.ti -4
1 TOCLIC
.ti +4
[MRTHOLO_\]TOCLIC Filename.fits [/NORMALIZE NONE|Power]

Read one imbfits file and write it to the currently opened Clic
file. A typical session can be:

.nf
  MRTHOLO> C\FILE OUT test.ipb NEW
  MRTHOLO> TOCLIC test-imb.fits
  MRTHOLO> C\FILE IN test.ipb
  MRTHOLO> C\FIND
.fi
.\"--------------------------------------------------------------------
.ti -4
2 /NORMALIZE
.ti +4
[MRTHOLO_\]TOCLIC Filename.fits /NORMALIZE NONE | P1 [P2]

Override the default normalization power when data is written into
Clic:

.bf
  sumreal = 0.0
  sumimag = 0.0
  sumpower = 0.0
  do i=1, nchan
    refpower = (read from IMB-FITS)
    xreal = (read from IMB-FITS)
    ximag = (read from IMB-FITS)
    sumpower = sumpower + refpower
    sumreal = sumreal + xreal * refpower**P1
    sumimag = sumimag + ximag * refpower**P1
  enddo
  sumreal = sumreal / sumpower**P2
  sumimag = sumimag / sumpower**P2
.fi

The keyword NONE disables all normalization (P1 = P2 = 0), i.e. only
the sum of real and imaginary parts are written. If absent, P2
defaults to P1. Default is NONE.
.\"====================================================================
.ti -4
1 ENDOFHELP
