| 1 |
! @(#)ccdcopy.prg 19.1 (ES0-DMD) 02/25/03 14:15:59 |
| 2 |
! @(#)ccdcopy.prg 19.1 (ESO-DAG) 02/25/03 14:15:59 |
| 3 |
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 4 |
!.COPYRIGHT (C) 1992 European Southern Observatory |
| 5 |
!.IDENT ccdcopy.prg |
| 6 |
!.AUTHOR Rein H. Warmels, ESO-Garching |
| 7 |
!.KEYWORDS Direct imaging, CCD package |
| 8 |
!.PURPOSE Copy telescope/detector/instrument specification table and |
| 9 |
! ccd descriptor procedure. |
| 10 |
!.USE @s ccdcopy |
| 11 |
!.VERSION 940113 RHW Creation |
| 12 |
!------------------------------------------------------- |
| 13 |
DEFINE/LOCAL SPECS/C/1/20 "eso_specs" |
| 14 |
DEFINE/LOCAL DESCR/C/1/20 "eso_descr" |
| 15 |
define/local ccddir/c/1/60 " " all |
| 16 |
define/local protec/c/1/60 " " ALL |
| 17 |
! |
| 18 |
! *** copy the linking procedure |
| 19 |
IF M$EXIST("{DESCR}.prg") .EQ. 0 THEN ! no |
| 20 |
IF AUX_MODE(1) .LE. 1 THEN ! VMS |
| 21 |
write/keyw ccddir/c/1/60 - |
| 22 |
"MID_DISK:[&MIDASHOME.&MIDVERS.STDRED.CCDRED.PROC]" |
| 23 |
write/keyw protec/c/1/60 "SET PROT=(O:RWED)" |
| 24 |
ELSE ! UNIX |
| 25 |
write/keyw ccddir/c/1/60 - |
| 26 |
"$MIDASHOME/$MIDVERS/stdred/ccdred/proc/" |
| 27 |
write/keyw protec/c/1/60 "chmod 644" |
| 28 |
ENDIF |
| 29 |
-COPY {ccddir}{DESCR}.prg {DESCR}.prg ! procedure |
| 30 |
ENDIF |
| 31 |
|
| 32 |
! *** check if ccd specification file exists |
| 33 |
IF M$EXIST("{SPECS}.tbl") .EQ. 0 THEN ! no |
| 34 |
IF AUX_MODE(1) .LE. 1 THEN ! VMS |
| 35 |
write/keyw ccddir/c/1/60 - |
| 36 |
"MID_DISK:[&MIDASHOME.&MIDVERS.STDRED.CCDRED.INCL]" |
| 37 |
write/keyw protec/c/1/60 "SET PROT=(O:RWED)" |
| 38 |
ELSE ! UNIX |
| 39 |
write/keyw ccddir/c/1/60 - |
| 40 |
"$MIDASHOME/$MIDVERS/stdred/ccdred/incl/" |
| 41 |
write/keyw protec/c/1/60 "chmod 644" |
| 42 |
ENDIF |
| 43 |
-COPY {ccddir}{SPECS}.fmt {SPECS}.fmt ! format file |
| 44 |
-COPY {ccddir}{SPECS}.dat {SPECS}.dat ! data file |
| 45 |
$ {protec} {SPECS}.dat |
| 46 |
$ {protec} {SPECS}.fmt |
| 47 |
CREATE/TABLE {SPECS} * * {SPECS} {SPECS} ! create table |
| 48 |
ENDIF |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|