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.setdata - Function Up: bimacalibrater - Tool Previous: bimacalibrater.getsourcenames - Function


bimacalibrater.setjy - Function



Package bima
Module bimacalibrater
Tool bimacalibrater


Set the flux density of the specified sources


Synopsis
setjy(sources, fieldid, spwid, fluxdensity)


Description

The setjy function is a wrapper around the imager tool's setjy function. It sets the flux density (by modifying the MODEL column) of the specified measurement sets. A list of nicknames (as well the the special groupings allowed in getsourcenames) can be given. If the specified flux density is <0, this function will attempt to find the calibrator in the BIMA calibrator flux density table and if successful, will use the flux density nearest in time (no attempt to adjust the flux density for frequency is currently made, nor is any interpolation in time attempted). In this case, there can only be a single source per measurement set. In the case where the user sets the flux density explicitly by passing a > 0 value to this function, only single model can be specified (it will be used for all the specified sources). Thus, you must run this function multiple times if you have calibrators of different flux densities when running in this mode.



Arguments

sources   Nicknames of sources to which to set the flux densities
    Allowed: Vector of strings (nicknames or roles of sources)
    Default: 'phcals'
fieldid   Field Id (1-relative)
    Allowed: Int
    Default: -1 (all)
spwid   Spectral Window Id. (1-relative)
    Allowed: Int
    Default: -1 (all)
fluxdensity   Specified flux density (I,Q,U,V) in Jy, if < 0, attempt to look up flux density in BIMA calibrator flux density table
    Allowed: Vector of Doubles
    Default: -1


Returns
T or fail


Example
- bc := bimacalibrater(['sgrb2.ms','sgra.ms'],
+ '1733-130.ms',targetnames=['sgrb','sgra'],phcalnames='1733'); 
- # all of these are equivalent for setting the I flux density to 5 Jy.
- bc.setjy(fluxdensity=[5,0,0,0]);
T
- bc.setjy('1733',fluxdensity=[5,0,0,0]);
T
- bc.setjy('phcals',fluxdensity=[5,0,0,0]);
T
- bc.setjy(spwid=-1,fluxdensity=[5,0,0,0]);
T
# here we allow a lookup in the BIMA calibrator flux density table
- bc.setjy();
NORMAL: Using 2.79999995 Jy at 86.1999969 GHz measured on 1998/01/04/00:00:00.000





next up previous contents index
Next: bimacalibrater.setdata - Function Up: bimacalibrater - Tool Previous: bimacalibrater.getsourcenames - 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