1
! @(#)irsdemo.prg 19.1 (ES0-DMD) 02/25/03 14:23:29
2
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
!.COPYRIGHT (C) 1992 European Southern Observatory
6
!.AUTHOR E. Oliva, Firenze, Arcetri
7
!.KEYWORDS Spectroscopy, IRSPEC
8
!.PURPOSE Quick demonstration and test of all IRSPEC commands.
9
!.VERSION 1.0 Creation 28.09.1992 E. Oliva
11
!-------------------------------------------------------
13
DEFINE/PARAM P1 NOAUTO ? "AUTO/NOAUTO"
15
IF P1(1:4) .NE. "AUTO" THEN
17
write/out "This is a quick demonstration of all the IRSPEC commands which"
18
write/out "is mainly used as a test for the installation of MIDAS."
19
write/out "You are kindly invited to look at the help of the single commands"
20
write/out "(typing HELP you will get a list of them)."
21
write/out "Note that after the demonstration all the files named : "
22
write/out "-- irstut*.* -- "
23
write/out "will be destroyed. So, if you have files called this way you are"
24
write/out "still in time to stop the procedure."
25
write/out "Be also aware that the name of the on-line flat and dark will be"
26
write/out "overwritten."
27
inqu/keyw i "Enter 1 to stop here, return to continue : "
36
! 0003 = original halo to make the flat
37
! 0004 = OBJ-DEMO for SKYSUB
38
! 0005 = SKY-DEMO for SKYSUB
39
! 0006 = SUBTR-STAR-DEMO for RESPONSE
40
! 0007 = LINE-DEMO for SUBTRACT
41
! 0008-0012 = DEMO for CONNECT
45
! 0001 = table for skysub_demo
46
! 0002 = table (originally bs779) demo for RESPONSE
52
WRITE/OUT "Copying demo files......'
54
intape/fits 1 toto MID_TEST:irstut{i}.fits NOC
55
-rename toto0001.bdf irstut{i}.bdf
58
intape/fits 1 toto MID_TEST:irstut{i}.tfits NOC
59
-rename toto0001.tbl irstut{i}.tbl
61
-copy MID_TEST:irstut0001.dat irstut.flux
66
write/out "DEFINE/IRSPEC"
67
DEFINE/IRSPEC irstut0002 irstuttab1 l=1
69
write/out "BADPIX/IRSPEC"
71
BADPIX/IRSPEC irstut0005 irstutima0 l=1
73
write/out "FLAT/IRSPEC"
74
FLAT/IRSPEC irstut0003 0 irstutimas l=1
76
write/out "SKYSUB/IRSPEC"
77
SET/IRSPEC flat=irstut0001 dark=irstut0002
78
SKYS/IRSP irstut0004 irstut0005 irstutima1 0 s=irstut0001 c=-30,30 f=1
80
write/out "RECTIFY/IRSPEC"
81
RECTIFY/IRSPEC irstutima0 irstutimas l=1
82
RECTIFY/IRSPEC irstutima1 irstutima2 l=0
84
write/out "CALIBRATE/IRSPEC"
87
write/out "STANDARD/IRSPEC with black-body"
88
STANDARD/IRSPEC irstut.flux irstuttab2 bb
89
write/out "STANDARD/IRSPEC with polynomial fit in log-log"
90
STANDARD/IRSPEC irstut.flux irstuttab2 poly 3
93
write/out "RESPONSE/IRSPEC"
94
RESPONSE/IRSPEC irstut0006 irstuttab2 irstutima3 y=25,31,38,44
97
write/out "FLUX/IRSPEC"
98
FLUX/IRSPEC irstutima2 irstutima3 irstutima4
100
write/out "SUBTRACT/IRSPEC"
101
SUBTRACT/IRSPEC irstut0007 irstutima5 2 excl=[2.121,22:2.131,44]
103
write/out "MERGE/IRSPEC"
104
MERGE/IRSPEC irstut 8,12 irstuttab3 f=i4 e=4
105
SET/GRAPH xaxis=auto yaxis=auto
108
write/out "Removing irstut* files...."
109
if aux_mode .lt. 2 then
115
write/out "End of test/demonstration"