1
! @(#)necemmi.prg 19.1 (ES0-DMD) 02/25/03 14:19:37
2
! @(#)necorder.prg 1.1 (ESO) 3/2/95 11:31:45
3
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
5
!.COPYRIGHT (C) 1995 European Southern Observatory
7
!.AUTHOR Pascal Ballester, ESO - Garching
8
!.KEYWORDS Spectroscopy, Echelle,
9
!.PURPOSE Command INIT/EMMI
10
!.VERSION 1.0 Creation 24-JAN-1994 PB
12
!-------------------------------------------------------
15
define/param P8 * IMA "Displayed image:"
16
define/local image/C/1/80 " " all
17
define/local numb/I/1/1 1
19
if P1(1:1) .eq. "+" then
21
verify/echelle {image} IMA
26
define/param P1 ? NUMB "Grating number (9,10):" 9,10
27
define/param P2 ? NUMB "Grism number (3,4,5,6):" 3,6
29
define/param P1 ? CHAR "Image name:"
31
verify/echelle {image} IMA
35
define/local grating/I/1/1 0
36
define/local grism/I/1/1 0
37
define/local STRING1/C/1/10 " "
38
define/local STRING2/C/1/10 " "
39
DEFINE/LOCAL index/I/1/2 0,0
42
write/key string1 {{image},_EIG1_ID}
43
index = M$INDEX(string1,"#") + 1
44
index(2) = index(1) + 1
45
grating = {string1({index(1)}:{index(2)})}
46
write/key string2 {{image},_EIO9_ID}
47
index = M$INDEX(string2,"#") + 1
48
grism = {string2({index}:{index})}
52
write/key string1 #{grating}
53
write/key string2 #{grism}
57
write/out "Looking for Grating {grating}/Grism {grism} pre-calibrated solution"
58
init/echelle MID_EMMI:ech{grating}g{grism}
60
set/echelle instr=EMMI GRATING={string1} CROSS={string2}
61
write/descr {BAKTAB} BKSTEP/R/1/1 {BKGSTEP}
63
if numb .ne. 1 set/ech CCD="{{image},_ED_ID}"