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


next up previous contents index
Next: bimams.ddids - Function Up: bimams - Tool Previous: bimams.chanwidths - Function


bimams.ddid - Function



Package bima
Module bimams
Tool bimams


get the DATA_DESCRIPTION ID (row number) associated with a specified spectral window id and a polarization or polarization id.


Synopsis
ddid(spwid, stokes, polid)


Description
Retrieve the (1-based) DATA_DESCRIPTION ID (row number) based on the SPECTRAL_WINDOW ID and stokes parameter or polarization id. Returns -1 if the specified description doesn't exist in the table.



Arguments

spwid   The 1-based id (row number) of the spectral window in the SPECTRAL_WINDOWS subtable
    Allowed: Integer
stokes   The stokes parameter associated with the data description. Not used if polid is specified
    Allowed: String representation of a valid stokes parameter.
    Default: YY
polid   The 1-based id (row number) of the desired polarization in the POLARIZATION subtable. If specified, stokes is ignored.
    Allowed: Integer > 0


Returns
Integer (-1 if requested id does not exist)


Example
# get a data description id based on a spectral window id and a stokes
# parameter
# construct a bimams tool and assign it to a Glish variable named bms
bms := bimams('neptune.ms');
#  get the data description id associated with spectral window id 10
# a stokes parameter of YY
bms.ddid(spwid=10,stokes='YY');
The result is 10.


next up previous contents index
Next: bimams.ddids - Function Up: bimams - Tool Previous: bimams.chanwidths - 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