|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
msmetadata.spwfordatadesc - Function
1.3.2 Get the spectral window ID associated with the specified data description
ID.
Description
Get the spectral window ID associated with the specified data description ID.
If the specified data description ID is negative, an array of spectral window
IDs is returned. The indices of that array represent data description IDs.
Arguments
Inputs |
| ||
ddid |
| Zero-based data description ID. A negative number will
cause all the spectral window IDs to be returned.
| |
| allowed: | int |
|
| Default: | -1 |
|
variant
Example
msmd.open("my.ms")
# get the spectral window ID associated with data description ID 3
spw = msmd.spwfordatadesc(3)
# get the array of spectral window IDs in the order they appear in the DATA_DESCRIPTION table
spws = msmd.spwfordatadesc(-1)
msmd.done()
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search