Main Page | Class List | Directories | File List | Class Members | File Members

ObitOTFCalUtil.c File Reference

ObitOTF class calibration utility function definitions. More...

#include <time.h>
#include "ObitOTFCalUtil.h"
#include "ObitOTFGetSoln.h"
#include "ObitTableOTFIndex.h"
#include "ObitTableOTFTargetUtil.h"
#include "ObitTableOTFFlag.h"
#include "ObitPlot.h"
#include "gsl/gsl_blas.h"
#include "gsl/gsl_vector.h"
#include "gsl/gsl_multifit_nlin.h"

Classes

struct  fitData

Defines

#define MAXSAMPLE   5000
#define MAXTIP   10000
#define ATEMP   290.0

Functions

void ObitOTFCalUtilFitCal (ObitOTF *inOTF, gint detect, ObitErr *err)
 Public: Fit calibrator scans.
void ObitOTFCalUtilFitOnOff (ObitOTF *inOTF, gint detect, ObitErr *err)
 Public: Fit calibrator on/off scans.
void ObitOTFCalUtilFitNod (ObitOTF *inOTF, gint detect, ObitErr *err)
 Public: Fit calibrator nod scan.
void ObitOTFCalUtilFitTip (ObitOTF *inOTF, ObitErr *err)
 Public: Fit tipping scan.
ObitIOCode ObitOTFCalUtilFlag (ObitOTF *inOTF, ObitErr *err)
 Public: Add flagging entry to flag table.


Detailed Description

ObitOTF class calibration utility function definitions.


Define Documentation

#define ATEMP   290.0
 

#define MAXSAMPLE   5000
 

#define MAXTIP   10000
 


Function Documentation

void ObitOTFCalUtilFitCal ObitOTF inOTF,
gint  detect,
ObitErr *  err
 

Public: Fit calibrator scans.

This routines presumes that the selected detector(s) is scanned linearly through the expected position of the calibrator . Gets calibrator information from the Target table (position, flux density) Input values on inOTF

  • "Scan" OBIT_Int (?,1,1) Scan numbers to process
  • "TAU0" OBIT_float (1,1,1) Zenith opacity in nepers [def 0].
  • "ATEMP" OBIT_float (*,1,1) Effective atmospheric temperature in cal units. i.e. the additional offset per airmass due to the atmosphere. per detector in units of the cal. [def 0]
  • "doPlot" OBIT_Bool (1,1,1) If present and true, plot data and models [def FALSE] Output values on inOTF
  • "TRX" OBIT_float (*,1,1) Receiver temperature per detector in units of the cal -1 => not determined
  • "CALJY" OBIT_float (*,1,1) Noise cal value in Jy, per detector -1 => not determined
  • "RAoff" OBIT_float (*,1,1) Offset in deg to add to RA, Not implemented as the correction applied by M&C
  • "Decoff" OBIT_float (*,1,1) Offset in deg to add to Dec Not implemented as the correction applied by M&C
  • "Timeoff" OBIT_float (*,1,1) Offset in time (day) (actual-expected peak)
    Parameters:
    inOTF Input OTF data. Maximum MAXSAMPLE integrations per scan.
    detect detector number (0-rel), -1 => all
    err Error stack, returns if not empty.

void ObitOTFCalUtilFitNod ObitOTF inOTF,
gint  detect,
ObitErr *  err
 

Public: Fit calibrator nod scan.

Gets calibrator flux density information either from info item

  • "calFlux" OBIT_float (1,1,1) Calibrator flux density or from the Target table Input values on inOTF
  • "Scan" OBIT_int (1,1,1) Scan number to process Output values on inOTF
  • "TRX" OBIT_float (*,1,1) Receiver temperature per detector in units of the cal average "off" in units of the cal.
  • "CALJY" OBIT_float (*,1,1) Noise cal value in Jy, per detector
    Parameters:
    inOTF Input OTF data. Maximum MAXSAMPLE integrations per scan.
    detect detector number (0-rel), -1 => all
    err Error stack, returns if not empty.

void ObitOTFCalUtilFitOnOff ObitOTF inOTF,
gint  detect,
ObitErr *  err
 

Public: Fit calibrator on/off scans.

Gets calibrator information from the Target table (flux density) Input values on inOTF

  • "Scan" OBIT_Int (2,1,1) Scan numbers to process Output values on inOTF
  • "TRX" OBIT_float (*,1,1) Receiver temperature per detector in units of the cal average "off" in units of the cal.
  • "CALJY" OBIT_float (*,1,1) Noise cal value in Jy, per detector
    Parameters:
    inOTF Input OTF data. Maximum MAXSAMPLE integrations per scan.
    detect detector number (0-rel), -1 => all
    err Error stack, returns if not empty.

void ObitOTFCalUtilFitTip ObitOTF inOTF,
ObitErr *  err
 

Public: Fit tipping scan.

Input values on inOTF

  • "Scan" OBIT_Int (1,1,1) Scan number to process
  • "TCAL" OBIT_float (*,1,1) Noise cal value in K, per detector
  • "MINEL" OBIT_float (1,1,1) Minimum elevation allowed (deg)
  • "TSKY" OBIT_float (1,1,1) Physical temperature of the sky (K) [def 290]
  • "doPlot" OBIT_Bool (1,1,1) If present and true, plot data and models [def FALSE] Output values on inOTF
  • "TAU0" OBIT_float (1,1,1) Zenith opacity in nepers i.e. the additional offset per airmass due to the atmosphere. per detector in units of the cal.
  • "ATEMP" OBIT_float (*,1,1) Effective atmospheric temperature in cal units.
  • "TRX" OBIT_float (*,1,1) Receiver temperature per detector in units of the cal
  • "TIPRMS" OBIT_float (*,1,1) RMS residual (K) per detector
    Parameters:
    inOTF Input OTF data. Maximum of MAXTIP samples used.
    err Error stack, returns if not empty.

ObitIOCode ObitOTFCalUtilFlag ObitOTF inOTF,
ObitErr *  err
 

Public: Add flagging entry to flag table.

Stokes order 'R', 'L', 'RL' or 'X', 'Y', 'XY'

  • "REASON" OBIT_string (?,1,1) reason string for flagging (max. 24 char).
    Parameters:
    inOTF Input OTF data
    err Error stack, returns if not empty.
    Returns:
    IO return code, OBIT_IO_OK = OK


Generated on Mon Sep 3 20:43:54 2007 by  doxygen 1.3.9.1