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

1.2.1 Convert the reference frequency to a new unit


Description

The convertfrequnit function changes the specified components to use a new unit for the reference frequency. Using this function will change the frequency value also so that the overall reference frequency is not changed. It will affect the values and units obtained with setfreqvalue function.

Any unit can be used that has the same dimensions as the ’Hz’.

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:

unit

The new frequency unit. Any string with the same dimensions as the ’Hz’

allowed:

string

Default:

’GHz’

Returns
bool

Example

 
 
      cl.open(’centarusA.cl’);  
      cl.convertfrequnit(1, ’kHz’);  
 
 

__________________________________________________________________


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