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

1.2.1 Determine which components are selected


Description

The selected function is used to determine which components in a list are selected. It returns a vector with indices that indicate which components are selected. A zero length vector is returned if no components are selected.

Components are marked as selected using the select function. This function will be used in conjunction with the graphical user interface and other functions in the componentlist tool will behave no differently if a component is marked as “selected” or not.

Arguments





Returns
intArray

Example

 
 
      cl.open(’crux.cl’)  
      cl.select([1,3])  
      cl.deselect([2,3])  
      cl.selected()  
 

__________________________________________________________________


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