Changeset 39234
- Timestamp:
- Dec 7, 2015, 7:52:13 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/fitplx.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/fitplx.c
r39227 r39234 54 54 gprint (GP_ERR, " -outlier-tests Nsamples dPsigMax : run Nsample bootstrap-resamples to define the path deviations and reject based on dPsigMax\n"); 55 55 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"); 56 57 return (FALSE); 57 58 } … … 102 103 PlxFit fit; memset (&fit, 0, sizeof(PlxFit)); 103 104 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) 105 106 if (Noutlier) { 106 107 int clipRetry = TRUE; 107 108 for (i = 0; clipRetry && (i < 3); i++) { 109 // XXX NOTE This will segfault is mask is not supplied: 108 110 clipRetry = !PlxOutlierClip (&fitdata, mask, Noutlier, dPsigMax, dPvec, VERBOSE); 109 111 … … 117 119 for (i = 0; (VERBOSE == 2) && (i < fitdata.Npts); i++) { 118 120 int n = fitdata.index[i]; 119 int maskValue = mask ? mask[n] : 0;121 int maskValue = mask ? mask[n] : 1; 120 122 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]); 121 123 }
Note:
See TracChangeset
for help on using the changeset viewer.
