1
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
%.COPYRIGHT (c) 1990-2007 European Southern Observatory
5
%.KEYWORDS MIDAS, help files, SUBTRACT/TEMPLATE
6
%.PURPOSE On-line help file for the command: SUBTRACT/TEMPLATE
7
%.VERSION 1.0 29-JUN-2007 : Creation, KB (for DB, 20.2.1990)
8
%----------------------------------------------------------------
12
SUBTRACT/TEMPLATE 29-JUN-2007 DB
14
SUBTRACT/TEMPLATE in out template coords scale
15
subtract a properly shifted and resampled template pattern
19
Resample and shift a template pattern, scale it in intensity,
20
and subtract it from a given image.
26
SUBTRACT/TEMPLATE in out template coords scale
28
in = 2-dim input image
32
template = image with template pattern
34
coords = world coords (x,y) to which origin of coordinate
35
frame (0,0) of template pattern shall be shifted
37
scale = flux scaling factor applied to template before
41
OJO: Input and template mages must have "same" stepsize, i.e.
42
within 0.001 of a step.
43
The center of the template (peak) should be located at world
45
This command is useful for, e.g. the PSF subtraction of stars
46
or other point sources from 2-dim images.
47
If, in that example, a star is located at coord (x,y),
48
the point spread function must be located at (0,0) in the
56
SUBTRACT/TEMPLATE contam decontam psf -312.81,18.324 17.86
57
Shift and resample image `psf.bdf' such that coords (0,0)
58
become (-312.81,18.324), scale intensity by factor 17.86, and
59
subtract from input image `contam.bdf'.
60
Result will be in `decontam.bdf'.