1
! @(#)ferosxcorr.prg 19.1 (ESO-IPG) 02/25/03 14:22:03
2
! @(#)ferosxcorr.prg 1.1 (ESO-IPG) 02/25/99 16:55:20
4
! This is part of the FEROS data reduction software
5
! convert IDTAB by cross-correlating with reference frame and
6
! converting :x-axis of reference IDTAB
8
! Otmar Stahl, Nov. 9, 1998
11
define/param P1 ? I "line by line spectrum: "
12
define/param P2 20 N "order to plot: "
14
define/local i/i/1/1 0
18
cop/tab IDTAB_REF IDTAB
28
EXTRAC/IMAG xx1 = THAR_REF[<,@{i}:>,@{i}]
29
EXTRAC/IMAG xx2 = {p1}[<,@{i}:>,@{i}]
31
XCORRE/IMAG xx2 xx1 xcorr 30
37
xcorr,:xcorr,@{i} = {outputr(5)}
43
REGRES/POLY xcorr :xcorr :row 1
44
COMPUT/TABL IDTAB :x = :x+({outputd(1)}+{outputd(2)}*:y)
47
sele/tab IDTAB :y.eq.{p2}
49
!OVERPL/IDEN IDTAB :x :ident
51
OVERPL/IDEN IDTAB :x :ident