1
! @(#)xcorr.prg 19.1 (ESO-DMD) 02/25/03 13:20:21
2
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure xcorr.prg
6
! Correlate 2 1D frames in pixel coordinates (as in IHAP).
8
! use as XCORRELATE/IMAGE temp spec result shift
11
! result = result frame
12
! shift = max shif in pixels
14
! M. Rosa ST-ECF 870601
15
! K. Banse ESO - Garching 890508, 950120, 020108
17
!----------------------------------------------------------------------
19
define/param p1 ? I "Enter name of template frame: "
20
define/param p2 ? I "Enter name of spectral frame: "
21
define/param p3 xcorr I "Enter name of output frame: "
22
define/param p4 10 N "Enter 1/2 bandwith = shift of frames: "
24
"Enter YES or NO for pixelwise normalization of output frame:"
30
write/keyw inputi/i/1/1 {p4}
31
write/keyw action/c/1/2 C{p5} !indicate correlation
33
write/keyw history "XCORRELATE/IMAGE "