IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42752


Ignore:
Timestamp:
Dec 6, 2024, 1:28:28 PM (20 months ago)
Author:
eugene
Message:

handle exposures with inconsistent header times

Location:
branches/eam_branches/ipp-20230313/Ohana
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/Ohana

  • branches/eam_branches/ipp-20230313/Ohana/src/addstar/include/addstar.h

    r42695 r42752  
    112112int     ACCEPT_MOTION;  // accept reference proper motion measurements
    113113int     ACCEPT_TIME;    // accept time stamp (or 0)
     114int     FORCE_SINGLE_TIME;    // use PHU time for all chips
    114115int     NO_STARS;       // ignore the stars
    115116int     NO_DUPLICATE_IMAGES; // allow / skip duplicate images
  • branches/eam_branches/ipp-20230313/Ohana/src/addstar/src/LoadData.c

    r39273 r42752  
    4646    }
    4747    images[0][Nvalid].imageID = Nvalid;
     48
     49    if (FORCE_SINGLE_TIME && (i > 0)) {
     50      if (images[0][Nvalid].tzero != images[0][0].tzero) {
     51        fprintf (stderr, "WARNING: mismatched header times, setting all to PHU value\n");
     52        images[0][0].tzero = images[0][Nvalid].tzero;
     53      }
     54    }
    4855
    4956    // XXX EAM : I seemed to have dropped the ability to support TEXT (old-style cmp format files).
  • branches/eam_branches/ipp-20230313/Ohana/src/addstar/src/args.c

    r42695 r42752  
    306306    remove_argument (N, &argc, argv);
    307307    SELECT_2MASS_QUALITY = strcreate (argv[N]);
     308    remove_argument (N, &argc, argv);
     309  }
     310  /* force using single time from PHU */
     311  FORCE_SINGLE_TIME = FALSE;
     312  if ((N = get_argument (argc, argv, "-force-single-time"))) {
     313    FORCE_SINGLE_TIME = TRUE;
    308314    remove_argument (N, &argc, argv);
    309315  }
  • branches/eam_branches/ipp-20230313/Ohana/src/libdvo/src/mosaic_astrom.c

    r39607 r42752  
    6060    j = getDISentry (images[i].tzero, images[i].tzero + (int) images[i].exptime, DIStzero, DISentry, Ndis);
    6161    if (j == -1) {
    62       if (NfailMatch < 100) fprintf (stderr, "WARNING: can't find matching mosaic \n");
     62      if (NfailMatch < 100) fprintf (stderr, "WARNING: can't find matching mosaic: ID %d, name: %s, Dateobs %s,  \n", images[i].name);
     63      // char *ohana_sec_to_date (time_t second) {
    6364      NfailMatch ++;
    6465      continue;
Note: See TracChangeset for help on using the changeset viewer.