2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure prepare.prg
5
! O.Stahl, A.Kaufer, S.Tubbesing 990125
8
! initialize catalogues for FF, ThAr, Dark and Objects
16
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18
define/local tmpname/c/1/40 " " all
19
define/local infile/c/1/40 " " all
20
define/local catal/i/1/1 0
21
define/local ind/i/1/1 0
22
define/local i/i/1/1 0
23
define/local mm/i/1/1 0
26
$ln -s ../ThAr50000.tbl
28
$ln -s ../darks/DARK.bdf
30
write/out "Resetting catalogues for Flats, ThArs, Darks, and Objects"
35
crea/icat Objects null
39
crea/icat Feros fero????.mt
42
store/frame infile Feros.cat 1 done
44
if "{{infile},EXPTYPE}" .eq. "CALIBRATION" then
45
add/icat ThAr {infile}
46
elseif "{{infile},EXPTYPE}" .eq. "FLATFIELD" then
48
elseif "{{infile},EXPTYPE}" .eq. "SCIENCE" then
50
if "{{infile},SHSTAT}" .eq. "CLOSED" then
51
write/descr {infile} EXPTYPE/C/1/7 "DARK "
52
add/icat Dark.cat {infile}
53
elseif "{{infile},SHSTAT}" .eq. "OPEN" then
55
add/icat Objects {infile}
60
write/out "--------------------------------------------"
61
write/out "{infile}: Exposure type {{infile},EXPTYPE} "
62
write/out "--------------------------------------------"