NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Main > TWikiUsers > JimBraatz > GBTIDLCalibrationSpecs
   Users | Groups | Offices | Changes | Index | Contents | Notify | Search | Jump to Topic:

Specifications for GBTIDL Calibration File

Jim Braatz


Overview

This document describes the specifications for a calibration database to be used with GBTIDL. The database is part of the infrastructure and implementation of an improved flux density calibration scheme in GBTIDL. (See the GBTIDL Calibration Design document.) The database will enable calibration using vector Tsys as opposed to scalar Tsys, the current mode. The database will also enable users to store user-determined opacity and aperture efficiency values, and apply them in GBTIDL calibration.


Calibration Database Specifications

Database Contents

Usage Requirements

SDFITS Enhancements

SDFITS (the program) should create the calibration database file and fill it with default values. All modifications should be internal, and no user interface enhancements to the sdfits program are necessary.

GBTIDL Enhancements

GBTIDL will require procedures to read and write to the database, as follows:

  1. set_cal, tau=tau, ap_eff=ap_eff, tcal=tcal, /default

     This procedure writes new values into the calibration database.  The parameters tau, ap_eff, and tcal
     are used to enter new calibration information.  Each of these parameters is optional, but at least one 
     must be supplied unless the /default switch is set.  Each parameter can accept either a scalar 
     value, in which case the value is applied to all frequencies, times, and elevations, or it can accept
     a structure, defined as follows:

     tau    : tau.time, tau.freq[], tau.value[freq]

            tau.time is the starting time for which the specified tau values will be applied.
            tau.freq is an array of frequencies for which zenith opacity is specified in tau.value.
            tau.value is the array of opacity values, one for each frequency.  Opacity values used
                      in calibration will be interpolated from this curve by the calibration procedures.

     ap_eff : ap_eff.elv[], ap_eff.freq[], ap_eff.value[freq, elv]

            ap_eff.elv is an array of elevations for which the ap_eff is specified.
            ap_eff.freq is an array of frequencies for which the ap_eff is specified.
            ap_eff.value is the 2-d array of aperture efficiencies, one for each frequency
                       and elevation.

     tcal   : tcal.freq[], tcal.value[n_feed, n_pol, freq]

            tcal.freq is an array of frequencies for which the tcal is specified.
            tcal.value is the array of calibration temperatures, one for each frequency, feed, 
                       and polarization.


  2. get_cal(scan=scan, time=time, /tau, /ap_eff, /tcal)

     This function returns calibration values from the database.  Exactly one of the switches 
     (tau, ap_eff, or tcal) should be set.  If the user requests tau values and there are tau values
     in the database for more than one time, then the user can also specify either a time or a scan 
     number to the get_cal function.  If time or scan number are not specified, the entire tau array
     is returned.  The function returns a structure with the appropriate fields to be fed directly 
     back into set_cal.

-- JimBraatz - 29 Nov 2007

Topic GBTIDLCalibrationSpecs . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 14 Dec 2007 - 02:54 GMT - PaulMarganian
Parents: TWikiUsers > JimBraatz
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.