IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39234


Ignore:
Timestamp:
Dec 7, 2015, 7:52:13 PM (11 years ago)
Author:
eugene
Message:

add some comments for clarification

File:
1 edited

Legend:

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

    r39227 r39234  
    5454    gprint (GP_ERR, "  -outlier-tests Nsamples dPsigMax : run Nsample bootstrap-resamples to define the path deviations and reject based on dPsigMax\n");
    5555    gprint (GP_ERR, "  -dPsig vec : save path deviations in vec\n");
     56    gprint (GP_ERR, "  -mask mask : excluded points are marked with a 0 mask value\n");
    5657    return (FALSE);
    5758  }
     
    102103  PlxFit fit; memset (&fit, 0, sizeof(PlxFit));
    103104
    104   // determine dPsig for detections based on Noutlier attempts
     105  // determine dPsig for detections based on Noutlier attempts (mask is updated to mark the bad stars, mask == 0)
    105106  if (Noutlier) {
    106107    int clipRetry = TRUE;
    107108    for (i = 0; clipRetry && (i < 3); i++) {
     109      // XXX NOTE This will segfault is mask is not supplied:
    108110      clipRetry = !PlxOutlierClip (&fitdata, mask, Noutlier, dPsigMax, dPvec, VERBOSE);
    109111
     
    117119  for (i = 0; (VERBOSE == 2) && (i < fitdata.Npts); i++) {
    118120    int n = fitdata.index[i];
    119     int maskValue = mask ? mask[n] : 0;
     121    int maskValue = mask ? mask[n] : 1;
    120122    fprintf (stderr, "%f %f : %f %d : %f %f %f\n", R[n], D[n], T[n], maskValue, fitdata.t[i], fitdata.X[i], fitdata.Y[i]);
    121123  }
Note: See TracChangeset for help on using the changeset viewer.