IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

File:
1 edited

Legend:

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

    r33963 r34088  
    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)) {
     
    477484        // up-weight the ubercal values (or convergence can take a long time...)
    478485        if (catalog[Nc].measureT[m].dbFlags & ID_MEAS_PHOTOM_UBERCAL) {
     486          haveUbercal = TRUE;
    479487          wlist[N] = 10.0;
    480488        }
     
    492500
    493501      int Nminmeas = isSetMrelFinal ? 1 : STAR_TOOFEW + 1;
     502
     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      }
    494506
    495507      // when performing the grid analysis, STAR_TOOFEW should be set to 1;
     
    11061118  off_t j, N;
    11071119  double *xlist, *ylist;
    1108   double Xmin, Ymin, Xmax, Ymax;
     1120  // double Xmin, Ymin, Xmax, Ymax;
    11091121  Graphdata graphdata;
    11101122
     
    11171129
    11181130  N = 0;
    1119   Xmin = Ymin = +360.0;
    1120   Xmax = Ymax = -360.0;
     1131  // Xmin = Ymin = +360.0;
     1132  // Xmax = Ymax = -360.0;
    11211133  for (i = 0; i < Ncatalog; i++) {
    11221134    for (j = 0; j < catalog[i].Naverage; j++) {
Note: See TracChangeset for help on using the changeset viewer.