Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | synthesis | |
Module | componentmodels | |
Tool | componentlist |
The type argument defines what the sort of new spectrum to use. This
can be either 'constant'or 'spectral index'. The parsing of this
string is case insensitive.
If the spectrum type is 'constant' then the remaining arguments in
this function are ignored. There are no other parameters needed to
specify a constant spectrum.
But if the spectrum is 'spectral index', the index argument is
needed to fully specify the spectrum. The index argument is a
4-element vector that contains the spectral index of the
I, Q, U, & V polarizations. You should ensure that the reference
frequency is set to the value you desire, using the
setfreq
function if you change to the spectral index shape.
Change the spectrum of the component
Synopsis
setspectrum(which, type, index, log)
Description
The setspectrum function changes the spectrum of the specified components
to the user specified spectrum.
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
type
The new spectrum type
Allowed:
A string that is either
'constant or 'spectral index'
Default:
Constant
index
The spectral indices
Allowed:
A 4-element vector or real numbers
Default:
[1,0,0,0]
log
Send a message to the logger
Allowed:
Boolean
Default:
T
Returns
nothing
Example
include 'componentlist.g'
cl := componentlist('centarusA.cl');
cl.setspectrum(2:10, 'spectral index', [-0.5, 0, 0, 0]);
print cl.getshape(2).index;
This example revises the model for Centaurus-A changing the
spectral index of all the components in the left lobe. The output
from the print statement is [-0.5 0 0 0]
Next: componentlist.getfreq - Function
Up: componentlist - Tool
Previous: componentlist.getspectrum - 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