- Form: TEMPLATE dest source [PA=n] [PAM=n] [E=n] [FIT=n1,n2]
[SUB] [GAUSS] [EXP] [HUB] [DEV]
-
- dest
- (integer or $ construct) is an image which already
exists to which the template will be written,
- source
- (integer or $ construct) is the spectrum that
contains the profile used to generate the template,
- PA=n
- (re)sets the position angle of radial profile
extended object,
- PAM=n
- (re)sets the position angle of the major axis
of the original image,
- FIT=n1,n2
- requests the template be generated by fitting
the profile spectrum over pixels n1 through n2
with the appropriate surface brightness law,
- SUB
- requests that the template be subtracted from
image already in image buffer specified,
- GAUSS
- generates a Gaussian template (point source),
- EXP
- generates an exponential disk template (spiral),
- HUB
- generates a Hubble template (elliptical),
- DEV
- generates a deVaucouleurs template (elliptical).
TEMPLATE generates either a Gaussian (GAUSS), exponential disk (EXP),
Hubble (HUB), or deVaucouleurs (DEV) template from an input profile spectrum
originally calculated using the CUT or PROFILE command. The Eccentricity,
Position Angle of the brightness profile stored in the spectrum, and the
Position Angle of the Major axis are all stored in a common block and
generally need not be reloaded using the appropriate keywords. These
keywords permit the user to "fine tune" the fit in the event that the
loaded parameters are not ideal. The actual nonlinear least squares fit to
the appropriate brightness law is carried out for spectrum points n1
through n2 using the FIT= keyword. This permits, for example, fitting an
exponential disk to the outer portions of the brightness profile while
leaving the central (perhaps bulge) component alone. At this time only one
surface brightness law at a time can be fit.
N.B.The user must have an image with the same characteristics (size, etc.)
as the template already in the destination buffer. This image will of
course be overwritten by the generated template. The SUB keyword permits
the subtraction of the generated template from the image already in the
destination buffer.
Example:
- TEMPLATE 2 1 FIT=10,19 EXP
- Generates an exponential disk
template from the profile in spectrum 1 (fit to pixels 10 through
19) and writes the image to image buffer 2 (which already exists).
- TEMPLATE 2 1 FIT=10,19 DEV SUB
- same as above, but fits
deVaucouleurs profile and subtracts fit from image already in 2
See Also: CUT, DEVAUC