IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2015, 1:04:07 PM (11 years ago)
Author:
eugene
Message:

add zero point keyword option for diffs; add flag for best object; set best object flag in relphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r38986 r39041  
    674674  } // Nsecfilt loop
    675675
     676  // in PSPS, there will be a stackObject row with the primary values.  if all filter primary values which
     677  // exist are also best values, then this row will be the best entry
     678
     679  // the secfilt[Ns] entries are defined to be the Best values, so
     680
     681  // conversely, if any secfilt[Ns] values are not PRIMARY, then the PRIMARY row is not the BEST row
     682
     683  int PrimaryIsBest = TRUE;
     684  for (Ns = 0; Ns < Nphotcodes; Ns++) {
     685    if (!(secfilt[Ns].flags & ID_SECF_HAS_PS1_STACK)) continue; // no stack detection in PS1, nothing is best
     686    if (secfilt[Ns].flags & ID_SECF_STACK_PRIMARY) continue;    // primary stack detection is best
     687    PrimaryIsBest = FALSE;
     688  }
     689
     690  if (PrimaryIsBest) {
     691    average[0].flags |= ID_OBJ_BEST_STACK;
     692  }
     693
    676694  if (NstackGood >= 2) {
    677695    average[0].flags |= ID_OBJ_GOOD_STACK;
Note: See TracChangeset for help on using the changeset viewer.