IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35783


Ignore:
Timestamp:
Jul 9, 2013, 1:54:40 PM (13 years ago)
Author:
eugene
Message:

include any funny object in the mix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/delstar/src/delete_fix_LAP_edges.c

    r35758 r35783  
    209209  // XXX should deal with pole, but not yet...
    210210  for (i = 0; i < catalog[0].Naverage; i++) {
     211    // keep all objects which are near the boundary
    211212    if (catalog[0].average[i].R < Rgapmin) goto save_measures;
    212213    if (catalog[0].average[i].R > Rgapmax) goto save_measures;
    213214    if (catalog[0].average[i].D < Dgapmin) goto save_measures;
    214215    if (catalog[0].average[i].D > Dgapmax) goto save_measures;
     216
     217    // keep all objects for which the ra or dec range is too large (> 2 arcsec)
     218    float maxOff = 0.0;
     219    m = catalog[0].average[i].measureOffset;
     220    for (j = 0; j < catalog[0].average[i].Nmeasure; j++) {
     221      float dRoff = catalog[0].measure[m+j].dR * cos(RAD_DEG * 0.5 * (Dmin + Dmax));
     222      float dDoff = catalog[0].measure[m+j].dD;
     223      float dOff = hypot (dRoff, dDoff);
     224      maxOff = MAX (maxOff, dOff);
     225    }
     226    if (maxOff > 3.0) goto save_measures;
     227
    215228    continue;
    216229   
Note: See TracChangeset for help on using the changeset viewer.