Debian Codegraph @

prim/proc/check.telescope

raw
1 ! @(#)check.telescope 19.1 (ESO-IPG) 02/25/03 14:08:45
2 ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 !
4 ! procedure `check.telescope' to check Midas (devices)
5 ! at a telescope in La Silla
6 ! K. Banse ESO - IPG, Garching
7 ! 950405
8 !
9 ! execute via @ check.telescope
10 !
11 ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 !
13 assign/defaults
14 !
15 ! check tapedrive
16 !
17 define/local tpdat/i/1/1 0
18 define/local tapedev/c/1/8 "tapedat "
19 define/local ic/i/1/2 0,0
20 open/file MID_MONIT:devices.sh read ic
21 !
22 read_loop:
23 write/keyw inputc/c/1/80 " " all
24 read/file {ic(1)} inputc
25 if ic(2) .ne. -1 then
26 if inputc(1:7) .eq. "tapedat" then
27 tpdat(1) = 1
28 if inputc(8:8) .eq. "0" then
29 tapedev(8:8) = "0"
30 goto close_it
31 elseif inputc(8:8) .eq. "1" then
32 tapedev(8:8) = "1"
33 goto close_it
34 endif
35 endif
36 goto read_loop
37 endif
38 !
39 close_it:
40 close/file {ic(1)}
41 !
42 if tpdat(1) .eq. 0 then !no DAT tape
43 write/out "no DAT tape drive, so we create" artificial image `veri0001.bdf'
44 create/image veri0001 2,512,512 ? gauss 256,256,256,256
45 else
46 write/out "we use DAT drive: {tapedev}," please, -
47 "enter a tape containing a 2-dim file in FITS format"
48 write/out "and hit RETURN, when you're ready"
49 inquire/keyw inputc "or type NO, if you do not want the tape input"
50 if inputc(1:2) .eq. "NO" then
51 write/out "O.K. we create" artificial image `veri0001.bdf'
52 create/image veri0001 2,512,512 ? gauss 256,256,256,256
53 else
54 intape/fits 1 veri {tapedev}
55 endif
56 endif
57 read/descr veri0001 *
58 !
59 ! check printer + PRINT commands
60 !
61 write/out
62 write/out "we check ASCII printing via the" "command: print/image veri0001"
63 write/out
64 print/image veri0001
65 !
66 ! check Postscript jobs
67 !
68 write/out
69 write/out "we display the image + check Postscript printing "
70 write/out "via the" "command: copy/display"
71 write/out
72 create/display
73 load/image veri0001
74 copy/display LASER
75 !
76 write/out
77 write/out "we plot the 1. row of the image + send graph to printer "
78 write/out "via the" "command: copy/graphics"
79 write/out
80 create/graphics
81 plot/row veri0001
82 copy/graph LASER
83 !
84 delete/image veri0001 no