home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
SCIENCE
/
EPHEM421.ZIP
/
SEL_FLD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-13
|
25KB
|
637 lines
#include <stdio.h>
#include "screen.h"
/* define BANG if and only if your system supports the system() function.
*/
#define BANG
/* table of the fields, with flags indicating which menu(s) they are on and
* whether pickable for changing or plotting.
* N.B. type must be long enough to hold 16 bits.
*/
static int fields[] = {
rcfpack (R_ALTM, C_ALTM, F_MMNU|F_CHG),
rcfpack (R_DAWN, C_DAWN, F_MMNU|F_CHG),
rcfpack (R_DAWN, C_DAWNV, F_MMNU|F_PLT),
rcfpack (R_DUSK, C_DUSK, F_MMNU|F_CHG),
rcfpack (R_DUSK, C_DUSKV, F_MMNU|F_PLT),
rcfpack (R_EPOCH, C_EPOCHV, F_MMNU|F_CHG),
rcfpack (R_HEIGHT, C_HEIGHTV, F_MMNU|F_CHG|F_PLT),
rcfpack (R_JD, C_JDV, F_MMNU|F_CHG|F_PLT),
rcfpack (R_JUPITER, C_ALT, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_AZ, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_DEC, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_EDIST, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_ELONG, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_HLAT, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_HLONG, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_MAG, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_MARS, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_MERCURY, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_MOON, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_NEPTUNE, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_OBJ, F_MMNU|F_CHG),
rcfpack (R_JUPITER, C_OBJX, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_OBJY, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_PHASE, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_PLUTO, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_RA, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_RISEAZ, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_RISETM, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_SATURN, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_SDIST, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_SETAZ, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_SETTM, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_SIZE, F_MNU1|F_PLT),
rcfpack (R_JUPITER, C_SUN, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_TRANSALT, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_TRANSTM, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_TUP, F_MNU2|F_PLT),
rcfpack (R_JUPITER, C_URANUS, F_MNU3|F_PLT),
rcfpack (R_JUPITER, C_VENUS, F_MNU3|F_PLT),
rcfpack (R_LAT, C_LATV, F_MMNU|F_CHG|F_PLT),
rcfpack (R_LD, C_LD, F_MMNU|F_PLT|F_CHG),
rcfpack (R_LISTING, C_LISTING, F_MMNU|F_CHG),
rcfpack (R_LON, C_LON, F_MMNU|F_CHG),
rcfpack (R_LON, C_LONV, F_MMNU|F_PLT),
rcfpack (R_LONG, C_LONGV, F_MMNU|F_CHG|F_PLT),
rcfpack (R_LST, C_LSTV, F_MMNU|F_CHG|F_PLT),
rcfpack (R_LT, C_LT, F_MMNU|F_CHG|F_PLT),
rcfpack (R_MARS, C_ALT, F_MNU1|F_PLT),
rcfpack (R_MARS, C_AZ, F_MNU1|F_PLT),
rcfpack (R_MARS, C_DEC, F_MNU1|F_PLT),
rcfpack (R_MARS, C_EDIST, F_MNU1|F_PLT),
rcfpack (R_MARS, C_ELONG, F_MNU1|F_PLT),
rcfpack (R_MARS, C_HLAT, F_MNU1|F_PLT),
rcfpack (R_MARS, C_HLONG, F_MNU1|F_PLT),
rcfpack (R_MARS, C_JUPITER, F_MNU3|F_PLT),
rcfpack (R_MARS, C_MAG, F_MNU1|F_PLT),
rcfpack (R_MARS, C_MERCURY, F_MNU3|F_PLT),
rcfpack (R_MARS, C_MOON, F_MNU3|F_PLT),
rcfpack (R_MARS, C_NEPTUNE, F_MNU3|F_PLT),
rcfpack (R_MARS, C_OBJ, F_MMNU|F_CHG),
rcfpack (R_MARS, C_OBJX, F_MNU3|F_PLT),
rcfpack (R_MARS, C_OBJY, F_MNU3|F_PLT),
rcfpack (R_MARS, C_PHASE, F_MNU1|F_PLT),
rcfpack (R_MARS, C_PLUTO, F_MNU3|F_PLT),
rcfpack (R_MARS, C_RA, F_MNU1|F_PLT),
rcfpack (R_MARS, C_RISEAZ, F_MNU2|F_PLT),
rcfpack (R_MARS, C_RISETM, F_MNU2|F_PLT),
rcfpack (R_MARS, C_SATURN, F_MNU3|F_PLT),
rcfpack (R_MARS, C_SDIST, F_MNU1|F_PLT),
rcfpack (R_MARS, C_SETAZ, F_MNU2|F_PLT),
rcfpack (R_MARS, C_SETTM, F_MNU2|F_PLT),
rcfpack (R_MARS, C_SIZE, F_MNU1|F_PLT),
rcfpack (R_MARS, C_SUN, F_MNU3|F_PLT),
rcfpack (R_MARS, C_TRANSALT, F_MNU2|F_PLT),
rcfpack (R_MARS, C_TRANSTM, F_MNU2|F_PLT),
rcfpack (R_MARS, C_TUP, F_MNU2|F_PLT),
rcfpack (R_MARS, C_URANUS, F_MNU3|F_PLT),
rcfpack (R_MARS, C_VENUS, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_ALT, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_AZ, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_DEC, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_EDIST, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_ELONG, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_HLAT, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_HLONG, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_JUPITER, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_MAG, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_MARS, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_MOON, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_NEPTUNE, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_OBJ, F_MMNU|F_CHG),
rcfpack (R_MERCURY, C_OBJX, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_OBJY, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_PHASE, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_PLUTO, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_RA, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_RISEAZ, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_RISETM, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_SATURN, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_SDIST, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_SETAZ, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_SETTM, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_SIZE, F_MNU1|F_PLT),
rcfpack (R_MERCURY, C_SUN, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_TRANSALT, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_TRANSTM, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_TUP, F_MNU2|F_PLT),
rcfpack (R_MERCURY, C_URANUS, F_MNU3|F_PLT),
rcfpack (R_MERCURY, C_VENUS, F_MNU3|F_PLT),
rcfpack (R_MOON, C_ALT, F_MNU1|F_PLT),
rcfpack (R_MOON, C_AZ, F_MNU1|F_PLT),
rcfpack (R_MOON, C_DEC, F_MNU1|F_PLT),
rcfpack (R_MOON, C_EDIST, F_MNU1|F_PLT),
rcfpack (R_MOON, C_ELONG, F_MNU1|F_PLT),
rcfpack (R_MOON, C_HLAT, F_MNU1|F_PLT),
rcfpack (R_MOON, C_HLONG, F_MNU1|F_PLT),
rcfpack (R_MOON, C_JUPITER, F_MNU3|F_PLT),
rcfpack (R_MOON, C_MAG, F_MNU1|F_PLT),
rcfpack (R_MOON, C_MARS, F_MNU3|F_PLT),
rcfpack (R_MOON, C_MERCURY, F_MNU3|F_PLT),
rcfpack (R_MOON, C_NEPTUNE, F_MNU3|F_PLT),
rcfpack (R_MOON, C_OBJ, F_MMNU|F_CHG),
rcfpack (R_MOON, C_OBJX, F_MNU3|F_PLT),
rcfpack (R_MOON, C_OBJY, F_MNU3|F_PLT),
rcfpack (R_MOON, C_PHASE, F_MNU1|F_PLT),
rcfpack (R_MOON, C_PLUTO, F_MNU3|F_PLT),
rcfpack (R_MOON, C_RA, F_MNU1|F_PLT),
rcfpack (R_MOON, C_RISEAZ, F_MNU2|F_PLT),
rcfpack (R_MOON, C_RISETM, F_MNU2|F_PLT),
rcfpack (R_MOON, C_SATURN, F_MNU3|F_PLT),
rcfpack (R_MOON, C_SDIST, F_MNU1|F_PLT),
rcfpack (R_MOON, C_SETAZ, F_MNU2|F_PLT),
rcfpack (R_MOON, C_SETTM, F_MNU2|F_PLT),
rcfpack (R_MOON, C_SIZE, F_MNU1|F_PLT),
rcfpack (R_MOON, C_SUN, F_MNU3|F_PLT),
rcfpack (R_MOON, C_TRANSALT, F_MNU2|F_PLT),
rcfpack (R_MOON, C_TRANSTM, F_MNU2|F_PLT),
rcfpack (R_MOON, C_TUP, F_MNU2|F_PLT),
rcfpack (R_MOON, C_URANUS, F_MNU3|F_PLT),
rcfpack (R_MOON, C_VENUS, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_ALT, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_AZ, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_DEC, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_EDIST, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_ELONG, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_HLAT, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_HLONG, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_JUPITER, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_MAG, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_MARS, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_MERCURY, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_MOON, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_OBJ, F_MMNU|F_CHG),
rcfpack (R_NEPTUNE, C_OBJX, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_OBJY, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_PHASE, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_PLUTO, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_RA, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_RISEAZ, F_MNU2|F_PLT),
rcfpack (R_NEPTUNE, C_RISETM, F_MNU2|F_PLT),
rcfpack (R_NEPTUNE, C_SATURN, F_MNU3|F_PLT),
rcfpack (R_NEPTUNE, C_SDIST, F_MNU1|F_PLT),
rcfpack (R_NEPTUNE, C_SETAZ, F_MNU2|F_PLT),
rcfpack (R_NEPTUNE, C_SETTM, F_MNU2|F_P