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

1.2.1 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

An index specifying the component to modify. An integer between 0 and one less than the list length, inclusively

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

 
 
      cl.open(’centarusA.cl’)  
      cl.setlabel(1, ’Core’)  
 

__________________________________________________________________


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