IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17129


Ignore:
Timestamp:
Mar 24, 2008, 6:22:41 PM (18 years ago)
Author:
eugene
Message:

allow Nm < 2, add photflag option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/bcatalog.c

    r16810 r17129  
    6060      if (DophotSelect && (catalog[0].measure[offset].dophot != DophotValue)) continue;
    6161
    62       /* select measurements by mag limit */
    63       mag = PhotCat (&catalog[0].measure[offset]);
    64       if (mag > MAG_LIM) continue;
     62      /* select measurements by quality */
     63      if (PhotFlagSelect && (catalog[0].measure[offset].photFlags & PhotFlagValue)) continue;
    6564
    6665      /* select measurements by measurement error */
     
    9190      }
    9291    }
    93     if (Nm < 2) { /* enough measurements in band? */
    94       Nmeasure -= Nm;
    95       continue;
    96     }
    9792    subcatalog[0].average[Naverage].Nmeasure = Nm;
    9893    Naverage ++;
     
    115110    fprintf (stderr, "%d: using %d stars (%d measures) for catalog\n", i,
    116111             subcatalog[0].Naverage, subcatalog[0].Nmeasure);
    117   }
     112   }
    118113  return (TRUE);
    119114}
Note: See TracChangeset for help on using the changeset viewer.