IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34070


Ignore:
Timestamp:
Jun 25, 2012, 3:05:25 PM (14 years ago)
Author:
eugene
Message:

change of averaging rules. PASS 2: use stack mags if present; PASS 3 accept bad *and* outlier values

Location:
branches/eam_branches/ipp-20120601/Ohana/src/relphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/Ohana/src/relphot/src/StarOps.c

    r33999 r34070  
    354354      int Next = 0;
    355355      int haveSynth = FALSE;
     356      int haveStack = FALSE;
    356357
    357358      int forceSynth = FALSE;
     
    413414            }
    414415          }
     416          // gpc1 stack data
     417          if ((catalog[Nc].measure[m].photcode >= 11000) && (catalog[Nc].measure[m].photcode <= 11400)) {
     418            if (pass < 2) continue;
     419            haveStack = TRUE;
     420          }
     421
    415422          // count extended detections for 2MASS (XXX NOTE hardwired photcodes 2011, 2012, 2013)
    416423          if ((catalog[Nc].measure[m].photcode >= 2011) && (catalog[Nc].measure[m].photcode <= 2013)) {
     
    494501      int Nminmeas = isSetMrelFinal ? 1 : STAR_TOOFEW + 1;
    495502
     503      if (haveStack && (N > 1)) {
     504        fprintf (stderr, "multiple stack values for %10.6f %10.6f\n", catalog[Nc].averageT[j].R, catalog[Nc].averageT[j].D);
     505      }
     506
    496507      // when performing the grid analysis, STAR_TOOFEW should be set to 1;
    497508      if (N < Nminmeas) { /* too few measurements */
  • branches/eam_branches/ipp-20120601/Ohana/src/relphot/src/setMrelFinal.c

    r33963 r34070  
    166166
    167167  /* allow measures from images marked POOR and FEW */
    168   if (pass >= 2) IMAGE_BAD = ID_IMAGE_PHOTOM_NOCAL;
     168  if (pass >= 3) IMAGE_BAD = ID_IMAGE_PHOTOM_NOCAL;
    169169 
    170170  /* allow measures marked as outliers (POOR) and off image region (AREA) */
    171   if (pass >= 2) {
     171  if (pass >= 3) {
    172172    MEAS_BAD = ID_MEAS_NOCAL | ID_MEAS_SKIP_PHOTOM;
    173173  } else {
     
    233233        }
    234234
    235         // PASS 3 : accept bad measurements (eg, SAT, CR)
     235        // PASS 3 : accept bad measurements (eg, SAT, CR), internal outliers
    236236        if (pass < 3) {
    237237          if (catalog[0].measure[m].photFlags & code->photomBadMask) goto skip;
     
    241241        }
    242242       
    243         // PASS 2 : internal outliers accepted
     243        // PASS 2 : accept stack measurements
    244244
    245245        // PASS 1 : accept poor measurements as well (eg, POOR FIT, etc)
Note: See TracChangeset for help on using the changeset viewer.