NRAO Home > CASA > CASA Toolkit Reference Manual
componentlist.getcomponent - Function

1.2.1 Extract a component from the list.


Description

The component function returns a record, showing the current state of the specified component in the list.

Modifying the record that is returned by this function does not modify the component in the list. To do this you must remove the component from the list, using the remove function, and add the modified component using the add function, or use the replace object function. This function will be removed in a future release of and you are urged to use the get functions to extract information about a component.

Arguments





Inputs

which

index of which component to extract. integers between 0 and one less than the length of the list, inclusively

allowed:

int

Default:

iknow

Suppress the warning message

allowed:

bool

Default:

false

Returns
record
__________________________________________________________________


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