Changeset 12840 for trunk/Ohana/src/addstar
- Timestamp:
- Apr 17, 2007, 9:59:02 AM (19 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 4 edited
-
include/addstar.h (modified) (1 diff)
-
src/ReadImageHeader.c (modified) (2 diffs)
-
src/SetSignals.c (modified) (1 diff)
-
src/args.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r12749 r12840 82 82 int ACCEPT_ASTROM; // accept even bad astrometry solutions (NASTRO == 0) 83 83 int ACCEPT_MOTION; // accept reference proper motion measurements 84 int ACCEPT_TIME; // accept time stamp (or 0) 85 int NO_STARS; // ignore the stars 84 86 int TEXTMODE; // force input file to be loaded as RAW 85 87 int SUBPIX; // apply a subpix correction -
trunk/Ohana/src/addstar/src/ReadImageHeader.c
r12732 r12840 24 24 image[0].NY = Ny; 25 25 26 if (!gfits_scan (header, "TZERO", "%d", 1, &image[0].tzero) ) {26 if (!gfits_scan (header, "TZERO", "%d", 1, &image[0].tzero) && !ACCEPT_TIME) { 27 27 image[0].tzero = parse_time (header); 28 28 } … … 155 155 156 156 /* find expected number of stars */ 157 if (!gfits_scan (header, "NSTARS", "%d", 1, &image[0].nstar) ) {157 if (!gfits_scan (header, "NSTARS", "%d", 1, &image[0].nstar) && !NO_STARS) { 158 158 fprintf (stderr, "can't get NSTARS from header\n"); 159 159 return (FALSE); -
trunk/Ohana/src/addstar/src/SetSignals.c
r3376 r12840 30 30 for (i = 0; i < 36; i++) { 31 31 switch (i) { 32 /* can't redirect th issignals */33 case SIGKILL: /* kill -9: cannot be caught or ignored */34 case SIGSTOP: /* SIGSTOP: cannot be caught or ignored */32 /* can't redirect these signals */ 33 case SIGKILL: /* kill -9: cannot be caught or ignored (POSIX.1-1990) */ 34 case SIGSTOP: /* SIGSTOP: cannot be caught or ignored (POSIX.1-1990) */ 35 35 /* ignore these signals */ 36 case SIGCHLD: /* child halted: ignore */ 37 case SIGPWR: /* power failure - why ignore this? */ 38 case SIGWINCH: /* window resized */ 39 case SIGCONT: /* continue - maintain this action */ 40 case SIGTSTP: /* stop signal sent from tty - why ignore? */ 41 case SIGURG: /* socket signal, ignore this */ 36 case SIGCHLD: /* child halted: ignore (POSIX.1-1990) */ 37 case SIGCONT: /* continue - maintain this action (POSIX.1-1990) */ 38 case SIGTSTP: /* stop signal sent from tty - why ignore? (POSIX.1-1990) */ 39 case SIGURG: /* socket signal, ignore this (POSIX.1-2001) */ 40 # ifdef (SIGPWR) 41 case SIGPWR: /* power failure - why ignore this? (Sys V) */ 42 # endif 43 # ifdef (SIGWINCH) 44 case SIGWINCH: /* window resized (4.3BSD) */ 45 # endif 42 46 break; 43 47 -
trunk/Ohana/src/addstar/src/args.c
r10937 r12840 242 242 if ((N = get_argument (argc, argv, "-accept-motion"))) { 243 243 ACCEPT_MOTION = TRUE; 244 remove_argument (N, &argc, argv); 245 } 246 /* accept bad header astrometry */ 247 ACCEPT_TIME = FALSE; 248 if ((N = get_argument (argc, argv, "-accept-time"))) { 249 ACCEPT_TIME = TRUE; 250 remove_argument (N, &argc, argv); 251 } 252 /* skip the stars */ 253 NO_STARS = FALSE; 254 if ((N = get_argument (argc, argv, "-no-stars"))) { 255 NO_STARS = TRUE; 244 256 remove_argument (N, &argc, argv); 245 257 }
Note:
See TracChangeset
for help on using the changeset viewer.
