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

1.2.1 Set the reference frequency


Description

The setfreq function sets the reference frequency of the specified components to a new value. The frequency is defined by separately specifying the value and its units. Use the setfreqframe function to set the frequency reference frame

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 new frequency value. A number

allowed:

double

Default:

unit

The units of the frequency. Any string with the same dimensions as the ’Hz’

allowed:

string

Default:

’GHz’

log

Send a message to the logger

allowed:

bool

Default:

true

Returns
bool

Example

 
 
      cl.open(’centarusA.cl’)  
      cl.setfreq(1, 1.415, ’GHz’)  
 

__________________________________________________________________


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