1
! @(#)necplspec.prg 19.1 (ES0-DMD) 02/25/03 14:19:40
2
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
!.COPYRIGHT (C) 1994 European Southern Observatory
5
!.AUTHOR Pascal Ballester, ESO - Garching
6
!.KEYWORDS Spectroscopy, Echelle, Sky definition
8
!.PURPOSE Plots an echelle spectrum in wavelength
11
!.VERSION 1.0 Creation 26.08.94 PB-ESO/DMD
12
!-------------------------------------------------------
14
define/param P1 ? IMA "Rebinned image:"
15
!define/param P2 ? NUMB "Start,End wavelength"
17
verify/echelle {P1} REBIN
19
define/local over/I/1/1 0
20
define/local PL/I/1/1 0
21
define/local WST/D/1/4 0.,0.,0.,0.
22
define/local NP/I/1/3 0,0,0
23
define/local STEP/D/1/1 0.
25
set/graph pmode=1 font=1
27
copy/dk {P1} npix/I/1/2 NP/I/2/2
28
copy/dk {P1} step/D/1/1 step
29
copy/dk {P1} WSTART STARTW
31
if P2(1:1) .NE. "?" then
32
write/key WST/D/1/2 {P2}
33
set/graph xaxis={wst(1)},{wst(2)}
43
WST(4) = WST(3) + (NP(2)-1.)*STEP
46
IF WST(1) .LE. WST(4) .AND. WST(2) .GE. WST(3) over = 1
49
average/row &a = {P1} @{NP},@{NP}
50
copy/kd wst/D/3/1 &a start
65
if wst(3) .gt. wst(2) return