## Single-pointing observations

For the sake of a cookbook recipe, here is an example of a MIRA session.

`file in "/ncsServer/mrt/ncs/data/2005-04-06"` | opens the input directory for reading
`file out spectra.30m new` | opens output file for calibrated data
| (CLASS format by default)
`find /observed 2005-09-06 /scan 5 15` | only puts scans 5 to 15 from September 6
| into the index list.

... and yields the following list (with column 1 - scan number, column 2 - object, column 3 - observing procedure, column 4 switch mode, column 5 - backend name, column 6 - date of observation, column 7 - observation number) :

       5 VENUS      calibrat      beamSwitching      CONTI   2005-09-06     1
       6 VENUS      pointing      beamSwitching      CONTI   2005-09-06     2
       9 VENUS      focus         beamSwitching      CONTI   2005-09-06     3
      12 IRC+10216  calibrat      beamSwitching      4MHZ    2005-09-06     4
      13 IRC+10216  onOff         beamSwitching      4MHZ    2005-09-06     5
      14 IRC+10216  calibrat      beamSwitching      4MHZ    2005-09-06     6
      15 IRC+10216  onTheFly      totalPower         4MHZ    2005-09-06     7

The same list can be displayed with MIRA command LIST, which also allows to write it to an output file and not to the screen (option /OUTPUT), and to issue information on the frontends connected and spectral lines observed (option /LONG).
A typical data reduction session looks like this:

`scan 5` | loads scan 5 (calibration), computes the calibration paramters,
| and issues the following information:

    FeBe Number              Frontend                   Backend

         1                     A100                      CONTI
         2                     B100                      CONTI
         3                     A230                      CONTI
         4                     B230                      CONTI

    idFe THotLoad TColdLoad idBe  Pix  recTemp sysTemp calTemp tauZenith pwv
         ---- [Kelvin] ----            ------ [Kelvin] -------  [Neper]  [mm]
    -------------------------------------------------------------------------
    A100  295.199    86.000 CONTI  1     78.60  480.33  228.15    7.29   10.1
    B100  295.199    88.000 CONTI  1     39.91  404.02  216.94    7.31   11.9
    A230  295.199    86.000 CONTI  1    289.67 1515.64  350.22    0.39    5.6
    B230  295.199    86.000 CONTI  1     91.00  800.64  305.18    0.43    6.2

`scan 6` | loads scan 6 (a pointing on Venus)

`cal all` | corrects all observations in the current scan for gains,
| applies the Ta* scale and subtracts off signals.
| N.B. CAL is NOT a prerequisite for solving pointings or foci.
`solve 4` | solves the pointing measurement, using the receiver B230, plots
| the results (Fig.1, 2), and writes an XML file for the control system.

`scan 9` | loads scan 9
`solve 1` | solve and plot the focus for receiver B230 (Fig.3), and writes an XML
| file for the control system.
`scan 12` | loads scan 12 (a calibration for the 4MHz filterbank), and issues

    FeBe Number              Frontend                   Backend

         1                     A230                      4MHZ
         2                     B230                      4MHZ

    idFe THotLoad TColdLoad idBe  Pix  recTemp sysTemp calTemp tauZenith pwv
         ---- [Kelvin] ----            ------ [Kelvin] -------  [Neper]  [mm]
    -------------------------------------------------------------------------
    A230  295.199    86.000 4MHZ   1    362.19 3018.86  240.79    0.40    5.8
    B230  295.199    86.000 4MHZ   1    127.34 1658.64  213.17    0.42    6.0

`scan 13` | loads scan 13 (an on-off on IRC+10216)
`view [1 /phases ON]` | plots the uncalibrated spectrum of the A230 receiver.
| The text in brackets is the default for `\view` (uncalibrated data).
`view 1 /phases OFF` | You may want to look e.g. at the off-phase, too.
`cal all` | calibrates the spectra of both the A230 and B230 receivers.
`view [1 /signal]` | plots the calibrated spectrum for the A230 receiver (Fig.4).
| The text in brackets is the default for `\view` (calibrated data).
`write /febe ALL` | writes the calibrated spectra into the output file for CLASS
| (starting with observing number 1)

MIRA offers possibilities to plot calibration counts, gainarrays of spectrometers, raw data (individual phases of the switch cycle), calibrated data (as spectra or pseudo-maps for OTF). For details, please have a look at section 4.

Figure 1: Example for a pointing solution (first step).
Figure 2: Example for a pointing solution (subscans coadded).

Figure 3: Example for a focus solution.
Figure 4: Example of a calibrated spectrum.