Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: componentlist.convertfluxpol - Function Up: componentlist - Tool Previous: componentlist.setflux - Function


componentlist.convertfluxunit - Function



Package synthesis
Module componentmodels
Tool componentlist


Change (convert) the flux units of the specified components


Synopsis
convertfluxunit(which, unit)


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


Arguments

which A vector of indices specifying the components to modify
Allowed: A vector with indices between 1 and the list length
Default: no default
unit The units of the flux
Allowed: Any string with the same dimensions as the Jansky
Default: Jy


Returns
nothing


Example
      include 'componentlist.g'
      cl := componentlist('crux.cl');
      print cl.getfluxvalue(1);
      cl.convertflux(cl.indices(), 'WU');
      print cl.getfluxvalue(1);
This example converts the flux of all components to ``Westerbork Units''. Assuming the units were originally Jansky's then the numbers printed before and after the call to the convertfluxunit function will differ by a factor of 200.



next up previous contents index
Next: componentlist.convertfluxpol - Function Up: componentlist - Tool Previous: componentlist.setflux - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15