nraonrao
 
NRAO Home > CASA > CasaRef
componentlist.setlabel - Function

1.4.2 Set the label of the specified components
Description

The setlabel function is used to reassign the label (an arbitrary text string) of the specified components to a new value.

Arguments





Inputs

which

A vector of indices specifying the components to modify. A vector with indices between 1 and the list length

allowed:

int

Default:

no default

value

The label for the specified components

allowed:

string

Default:

log

Send a message to the logger

allowed:

bool

Default:

true

Returns
bool

Example

      include ’componentlist.g’  
      cl := componentlist(’centarusA.cl’);  
      cl.setlabel(1, ’Core’)  
      cl.setlabel(2:10, ’Left Lobe’)  
      cl.setlabel(11:23, ’Right Lobe’)  
    

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.