1
! @(#)create_cats.prg 19.1 (ESO-IPG) 02/25/03 14:21:44
3
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5
! MIDAS procedure create_cats.prg
8
! extract FF, ThAr and object files from catalog
9
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11
define/par p1 ? C "Enter catalog.cat : "
13
define/local tmpname/c/1/40 " " all
14
define/local infile/c/1/40 " " all
15
define/local catal/i/1/1 0
16
define/local ind/i/1/1 0
17
define/local i/i/1/1 0
18
define/local mm/i/1/1 0
22
crea/icat Objects null
25
store/frame infile {p1} 1 finish
27
! now the operation on the catalog
31
write/out "{infile} {{infile},EXPTYPE} "
33
if "{{infile},EXPTYPE}" .eq. "CALIBRATION" then
34
add/icat ThAr {infile}
36
elseif "{{infile},EXPTYPE}" .eq. "FLATFIELD" then
39
add/icat Objects {infile}