1
! @(#)horform.prg 19.1 (ES0-DMD) 02/25/03 13:29:00
2
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
!.IDENTIFICATION: HORFORM.PRG
4
!.PURPOSE: Help user set up horizon-limit forms
6
!.AUTHOR: Andrew T. Young
7
! ----------------------------------------------------------------------
9
! ********* DEFINE LOCAL KEYWORDS **********
11
DEFINE/LOCAL reply/C/1/10 "?" A
12
DEFINE/LOCAL obstbl/C/1/80 "esotel.tbl"
14
! ********* BEGIN EXECUTION **********
17
WRITE/OUT "The MAKE/HORFORM command will make horizon-limit forms for you."
21
INQUIRE/KEYW reply "Is the telescope in the esotel.tbl table?"
22
IF reply(:1) .eq. "y" THEN
24
! See if esotel.tbl is available locally...
26
IF M$EXIST("esotel.tbl") .eq. 0 THEN ! not available
27
IF AUX_MODE(1) .LE. 1 THEN ! VMS
28
define/local peplib/c/1/60 -
29
"MID_DISK:[&MID_PEPSYS] "
30
$ COPY {peplib}esotel.tbl []
31
$ SET PROT=(O:RWED) esotel.tbl
33
define/local peplib/c/1/60 "$MID_PEPSYS/"
34
$ cp {peplib}esotel.tbl `pwd`
35
$ chmod 644 esotel.tbl
39
ELSEIF reply(:1) .eq. "n" THEN ! Find name of obstbl
41
INQUIRE/KEYW obstbl "Enter the name of the observatory table file:"
42
IF M$EXIST(obstbl) .eq. 0 THEN
43
WRITE/OUT {obstbl} " is not available."
44
WRITE/OUT "Please copy it to this directory; then try again."
47
IF AUX_MODE .LE. 1 THEN ! VMS
48
$ COPY {obstbl} esotel.tbl
49
$ SET PROT=(O:RWED) esotel.tbl
51
$ cp {obstbl} esotel.tbl
52
$ chmod 644 esotel.tbl
57
WRITE/OUT "Please answer yes or no."
61
! esotel.tbl now available. Run program:
65
! Make sure it terminated normally:
67
IF APPLIC(1:1) .EQ. "X" THEN
72
WRITE/OUT "We will now try to print the FORM file for you:"
74
IF AUX_MODE .LE. 1 THEN ! VMS
77
$ cat FORM | ( fpr || asa ) 2>/dev/null | {SYSCOMS(1:16)}
80
WRITE/OUT "If that produced no error message, FORM will print."
81
WRITE/OUT "...otherwise, you will have to print it yourself."
83
WRITE/OUT "(note that it contains FORTRAN carriage control)"
85
WRITE/OUT " (HELP [PRINTERS] names local printers)"