Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: bimacalibrater.solve - Function Up: bimacalibrater - Tool Previous: bimacalibrater.setdata - Function


bimacalibrater.setsolve - Function



Package bima
Module bimacalibrater
Tool bimacalibrater


Set up what calibration component is to be solved for and how the solution should be determined.


Synopsis
setsolve(sources, type, t, preavg, phaseonly, refant, table, append)


Description

The setsolve function is a wrapper around the calibrater tool's setsolve function. It allows the user to specify what calibration component is to be solved for as well as how the solution should be determined.

If the default value for the solution is specified, the following algorithm is used. The table is given the name <solution type>cal (e.g. gcal for G solutions). If this table already exists, then a number is appended (e.g., gcal.2). The table name is stored internally in the tool for use with other functions.



Arguments

sources   Nicknames of sources on which to run calibrater.setsolve()
    Allowed: Vector of strings (nicknames or roles of sources)
    Default: 'phcals'
type   Component type
    Allowed: "G","T","B","D"
    Default: ''
t   Solution interval (in sec)
    Allowed: Float
    Default: 0.0
preavg   Pre-averaging interval (in sec)
    Allowed: Float
    Default: 0.0
phaseonly   Phase only solution ?
    Allowed: Bool
    Default: False
refant   Reference antenna
    Allowed: Int
    Default: -1
table   Output calibration table
    Allowed: Table name
    Default: '' (see above for default naming scheme)
append   Append flag (set to T if you have multiple calibraters and want solutions in a single table)
    Allowed: Bool
    Default: False


Returns
Bool or fail


Example
# a single calibrater
- bc := bimacalibrater(['sgrb2.ms','sgra.ms'],
+ '1733-130.ms',targetnames=['sgrb','sgra'],phcalnames='1733'); 
- bc.setjy(fluxdensity=[5,0,0,0]);
T
- bc.setdata('1733',mode='channel');
T
- bc.setsolve('1733','G',60,refant=4,table='gcal');
T

# for two calibraters, putting all solutions in a single table
- bc := bimacalibrater('g34.3.ms',['1751+096.ms','2148+069.ms'],
  targetnames='src',phcalnames=['cal1','cal2']);
T
- bc.setjy(fluxdensity=[5,0,0,0]);
T
# solutions for both calibraters will go in table gcal2
- bc.setsolve(type='G',refant=4,table='gcal2',t=600,append=T);
T





next up previous contents index
Next: bimacalibrater.solve - Function Up: bimacalibrater - Tool Previous: bimacalibrater.setdata - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01