Description
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.
Arguments
which |
|
An index specifying which component |
|
|
Allowed: |
An integer between 1 and the list length |
|
|
Default: |
no default |
Returns
A record with fields that contain the parameters of the
spectral type.