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.setjy - Function Up: bimacalibrater - Tool Previous: bimacalibrater - Constructor


bimacalibrater.getsourcenames - Function



Package bima
Module bimacalibrater
Tool bimacalibrater


get a list of source nicknames


Synopsis
getsourcenames(roles)


Description

The getsourcenames function returns a list of source nicknames associated with the specified roles. The roles parameter should be a vector of strings, recognized values being 'all', 'targets', 'phcals', 'pbcals', 'fcals' for all sources, target sources, phase calibrators, passband calibrators, and flux density calibrators, respectively. This function is meant to help users remember how they have named their sources (it is also used internally by other functions of bimacalibrater).



Arguments

roles   Return nicknames of sources of these roles
    Allowed: Vector of strings. Recognized values are 'all' (all nicknames), 'targets' (target source nicknames), 'phcals' (phase calibrators), 'pbcals' (passband calibrators), and 'fcals' (flux density calibrators)
    Default: none


Returns
array of corresponding nicknames or fail


Example
- bc := bimacalibrater(['sgrb2.ms','sgra.ms'],
+ '1733-130.ms',targetnames=['sgrb','sgra'],phcalnames='1733'); 
- bc.getsourcenames('all')
sgrb sgra 1733
- bc.getsourcenames(['phcals','targets'])
1733 sgrb sgra
- bc.getsourcenames('targets')
sgrb sgra
- bc.getsourcenames('phcals')
1733





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