IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2007, 9:59:02 AM (19 years ago)
Author:
eugene
Message:

various fixes to support Mac OS X

Location:
trunk/Ohana/src/addstar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/include/addstar.h

    r12749 r12840  
    8282int     ACCEPT_ASTROM;  // accept even bad astrometry solutions (NASTRO == 0)
    8383int     ACCEPT_MOTION;  // accept reference proper motion measurements
     84int     ACCEPT_TIME;    // accept time stamp (or 0)
     85int     NO_STARS;       // ignore the stars
    8486int     TEXTMODE;       // force input file to be loaded as RAW
    8587int     SUBPIX;         // apply a subpix correction
  • trunk/Ohana/src/addstar/src/ReadImageHeader.c

    r12732 r12840  
    2424  image[0].NY = Ny;
    2525
    26   if (!gfits_scan (header, "TZERO",   "%d",  1, &image[0].tzero)) {
     26  if (!gfits_scan (header, "TZERO",   "%d",  1, &image[0].tzero) && !ACCEPT_TIME) {
    2727    image[0].tzero = parse_time (header);
    2828  }
     
    155155
    156156  /* 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) {
    158158    fprintf (stderr, "can't get NSTARS from header\n");
    159159    return (FALSE);
  • trunk/Ohana/src/addstar/src/SetSignals.c

    r3376 r12840  
    3030  for (i = 0; i < 36; i++) {
    3131    switch (i) {
    32       /* can't redirect this signals */
    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) */
    3535      /* 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
    4246      break;
    4347     
  • trunk/Ohana/src/addstar/src/args.c

    r10937 r12840  
    242242  if ((N = get_argument (argc, argv, "-accept-motion"))) {
    243243    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;
    244256    remove_argument (N, &argc, argv);
    245257  }
Note: See TracChangeset for help on using the changeset viewer.