IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35718


Ignore:
Timestamp:
Jun 28, 2013, 1:50:39 PM (13 years ago)
Author:
eugene
Message:

count the number of gpc1 grizy exposure measures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/relphot/src/setMrelCatalog.c

    r35104 r35718  
    110110    if (!isSetMrelFinal && (secfilt[Nsec].flags & STAR_BAD)) continue;
    111111
     112    int NexpPS1 = 0;
    112113    int Ncode = 0;
    113114    int Next = 0;
     
    132133      if (code->equiv != thisCode) { continue; }
    133134      Ncode ++;
     135
     136      // are we a PS1 exposure photcode?
     137      if ((measure[k].photcode >= 10000) && (measure[k].photcode <= 10500)) {
     138        NexpPS1 ++;
     139      }
    134140
    135141      if (measureT[k].dbFlags & MEAS_BAD) SKIP_THIS_MEAS(Nbad);
     
    272278    int Nminmeas = isSetMrelFinal ? 1 : STAR_TOOFEW + 1;
    273279
     280    // XXX : ugh : another hard-wired photcode entry...
     281    if (isSetMrelFinal && (pass == 0)) {
     282      if ((thisCode < 6) || (thisCode == 9)) {
     283        secfilt[Nsec].Ncode = NexpPS1;
     284      } else {
     285        secfilt[Nsec].Ncode = Ncode; // 2MASS data if it exists
     286      }
     287    }
     288
    274289    // when performing the grid analysis, STAR_TOOFEW should be set to 1;
    275290    if (N < Nminmeas) { /* too few measurements */
Note: See TracChangeset for help on using the changeset viewer.