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

1.4.2 Change (convert) the flux units of the specified components
Description

The convertfluxunit function is used to convert the flux to another unit. The units must have the same dimensions as the Jansky.

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:

unit

The units of the flux. Any string with the same dimensions as the Jansky

allowed:

string

Default:

Jy

Returns
bool

Example

      include ’componentlist.g’  
      cl := componentlist(’crux.cl’);  
      print cl.getfluxvalue(1);  
      cl.convertflux(cl.indices(), ’WU’);  
      print cl.getfluxvalue(1);  
    

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.