Changeset 2825
- Timestamp:
- Dec 24, 2004, 6:21:27 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/imrough.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/imrough.c
r2598 r2825 5 5 enum {V_NONE, V_EXPTIME, V_CCDN, V_SKY, V_BIAS, V_FILTER, V_FWHM, V_AIRM, V_TIME, V_TEMP0, V_TEMP1, V_TEMP2, V_TEMP3, V_TELFOCUS, V_XPROBE, V_YPROBE, V_ZPROBE, V_RA, V_DEC, V_DETTEMP, V_ROTANGLE, V_REGTIME}; 6 6 static char valuename[NVALUE][32] = {"none", "exptime", "ccd", "sky", "bias", "filter", "fwhm", "airmass", "time", "temp0", "temp1", "temp2", "temp3", "telfocus", "xprobe", "yprobe", "zprobe", "ra", "dec", "dettemp", "rotangle", "regtime"}; 7 8 # define NTYPE 99 enum {T_NONE, T_OBJECT, T_DARK, T_BIAS, T_FLAT, T_MASK, T_FRINGE, T_SCATTER, T_MODES};10 static char typename[NTYPE][32] = {"none", "object", "dark", "bias", "flat", "mask", "fringe", "scatter", "modes"};11 12 # define NMODE 613 enum {M_NONE, M_MEG, M_SPLIT, M_SINGLE, M_CUBE, M_SLICE};14 static char modename[NMODE][32] = {"none", "MEF", "SPLIT", "SINGLE", "CUBE", "SLICE"};15 7 16 8 imrough (int argc, char **argv) { … … 67 59 } 68 60 69 type = T_ NONE;61 type = T_UNDEF; 70 62 TypeSelect = FALSE; 71 63 if (N = get_argument (argc, argv, "-type")) { 72 64 TypeSelect = TRUE; 73 65 remove_argument (N, &argc, argv); 74 for (i = 0; (i < NTYPE) && (type == T_NONE); i++) { 75 if (!strncasecmp (argv[N], typename[i], strlen(argv[N]))) type = i; 76 } 77 if (type == T_NONE) { 66 type = get_image_type (argv[N]); 67 if (type == T_UNDEF) { 78 68 fprintf (stderr, "ERROR: invalid image type %s\n", argv[N]); 79 69 return (FALSE); … … 87 77 ModeSelect = TRUE; 88 78 remove_argument (N, &argc, argv); 89 for (i = 0; (i < NMODE) && (mode == M_NONE); i++) { 90 if (!strncasecmp (argv[N], modename[i], strlen(argv[N]))) mode = i; 91 } 92 if (mode == M_NONE) { 79 mode = get_image_mode (argv[N]); 80 if (mode == M_UNDEF) { 93 81 fprintf (stderr, "ERROR: invalid image mode %s\n", argv[N]); 94 82 return (FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.
