|NRAO Home > CASA > CASA Toolkit Reference Manual||
componentlist.getspectrum - Function
1.2.1 Return the spectral parameters the component
The getspectrum function returns the spectral parameters of a component in a record. As different spectral shapes can have a differing number and type of parameters the spectral parameters are returned in a record with fields that correspond to parameters relevant to the current spectral shape.
For a constant spectrum there are only two fields; type and frequency. These are the spectral type, and the reference frequency. These values are also returned by the spectrumtype and getfreq functions.
For the spectral index spectral shape there is also an index field. This contains a vector with four numbers, these are the spectral indicies for the I,~Q,~U,~&~V components of the flux.
An index specifying which component. An integer between 0 and one less than the list length, inclusively
See the examples for the
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