IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40418 for trunk


Ignore:
Timestamp:
May 3, 2018, 9:51:55 AM (8 years ago)
Author:
eugene
Message:

fix threshold to be consistent with masking rule: keep a point only if BOTH ra and dec are good

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/fitplx_irls.c

    r40406 r40418  
    555555
    556556    double wx,wy;
     557    double lim_Wx = outlier_limit * Sum_Wx / (1.0 * Npts);
     558    double lim_Wy = outlier_limit * Sum_Wy / (1.0 * Npts);
    557559    for (i = 0; i < Npts; i++) {
    558       if ((Wx[i] > outlier_limit * Sum_Wx / (1.0 * Npts))||
    559           (Wy[i] > outlier_limit * Sum_Wy / (1.0 * Npts))) {
    560        
     560      int skip = (Wx[i] < lim_Wx) || (Wy[i] < lim_Wy);
     561      if (!skip) {
    561562        Xf = fit[0].Ro + fit[0].uR*T[i] + fit[0].p*pR[i];
    562563        Yf = fit[0].Do + fit[0].uD*T[i] + fit[0].p*pD[i];
Note: See TracChangeset for help on using the changeset viewer.