Produced by IDL 7.1.1
User Documentation

./contrib
avkanods.pro

Last modification date:
Wed Sep 28 13:27:15 2016

avkanods

procedure avkanods, scans, ifnum, [tau=float], [ap_eff=float], [trk_beam=integer], [tcal=float], [scal=float], [q=integer], [calfile=string], [sref=integer], [noav=integer]

avkanods calibrates and averages a series of "nod" pairs for the KA-band receiver.

type avkanods with no parameters to get the help message.

This works only for beamswitched nod pairs with the KA-band receiver, and only one polarization channel per beam.

The first parameters "scans" is an array with a series of scan numbers; each scan number is the first of a nod pair.
For example: avkanods,[16,18,20,22],0

It assumes you have just used a single cal 'R' or 'L' The trk_beam parameter is the on-source beam number for the first scan. Note: there is no "pol" parameter because of the cross-pol switching. in effect, the two polarizations are averaged.

scal : this is the flux density of a continuum calibrator. If the scal parameter is present, the output spectrum is the noise cal spectrum in flux density units.

calfile : if you give a calfile name and scal is set, then the "scal" spectrum is written to the named file.

After writing a spectrum for the calibrator using scal and calfile, then if you run on a program source with calfile set to the same file that the calibrator spectrum was saved to (but with no scal given), then the calfile is used to scale the spectrum of the program object to flux density units.

If you do not set the /noav flag, it averages data from the two samplers and puts the result in container zero. but if /noav is set, then the results from the two samplers are kept separate and are put into containers 0 and 1.

If the /sref flag is set, then the calibration is (Sig-Ref)/Ref, otherwise its (Sig-Ref)/Cal.

Uses
getkanod

Contributed By: Frank Ghigo, NRAO-GB

Version
$Id$

Parameters
scans
in, required
integer
scan number
ifnum
in, required
integer
IF number: 0,1,2,etc, (def:0)

Keywords
tau
in, optional
float
Zenith absorption coefficient (def:0.05)
ap_eff
in, optional
float
Aperture efficiency in % (def:50)
trk_beam
in, optional
integer
Tracking beam number (def: 1)
tcal
in, optional
float
Average cal temperature (def: 1)
scal
in, optional
float
Calibrator flux density.
q
in, optional
integer
Flag first integration.
calfile
in, optional
string
File for storing SCALs.
sref
in, optional
integer
If =1, normalize by ref.
noav
in, optional
integer
If =1, do not average pols.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:47 2016