Changeset 42821 for trunk/Ohana/src/relphot/src/ImageOps.c
- Timestamp:
- May 8, 2025, 4:29:52 PM (14 months ago)
- Location:
- trunk/Ohana
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/relphot (modified) (1 prop)
-
src/relphot/src/ImageOps.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/relphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20230313/Ohana/src/relphot merged: 42568,42696,42705,42708,42740,42761,42818
- Property svn:mergeinfo changed
-
trunk/Ohana/src/relphot/src/ImageOps.c
r41664 r42821 531 531 532 532 // until the analysis has converged a bit, do not use the IRLS analysis 533 // default is MaxIterations = 10 534 if (UseStandardOLS(ZPT_IMAGES)) { 533 // default is MaxIterations = 10. 534 535 // However, for stack and warp calibration, we are not iteratively solving for the 536 // zero points. In this case, use IRLS in a single pass 537 if (!CALIBRATE_STACKS_AND_WARPS && UseStandardOLS(ZPT_IMAGES)) { 535 538 brightStars.MaxIterations = 0; 536 539 kronStars.MaxIterations = 0; … … 672 675 673 676 if ((image[i].imageID == TEST_IMAGE1) || (image[i].imageID == TEST_IMAGE2)) { 674 fprintf (stderr, "%1d, %3d : %3d, %3d : %10.6f %10.6f : %6.3f %6.3f %6.3f %6.3f %6.3f : %6.3f\n", (int) i, (int) j, (int) c, (int) m, catalog[c].averageT[n].R, catalog[c].averageT[n].D, MsysKron, MrelKron, Mmos, Mgrid, Mflat, kronStars.alldata->yVector[Nkron]);677 fprintf (stderr, "%1d, %3d : %3d, %3d : %10.6f %10.6f : %6.3f %6.3f | %6.3f %6.3f | %6.3f %6.3f %6.3f %6.3f | %5.3f\n", (int) i, (int) j, (int) c, (int) m, catalog[c].averageT[n].R, catalog[c].averageT[n].D, MsysPSF, MrelPSF, MsysKron, MrelKron, Mmos, Mgrid, Mflat, Moff, psfStars.alldata->dyVector[Nref]); 675 678 } 676 679 … … 702 705 if (mark) continue; 703 706 704 // use liststats to find the 20-pct, median, 80-pct points 705 StatType stats; 706 liststats_setmode (&stats, "MEDIAN"); 707 liststats (psfStars.alldata->yVector, NULL, NULL, Nref, &stats); 708 double altSigma = (stats.Upper80 - stats.Lower20) / 1.6; // 20% to 80% encompasses 60% of the values, corresponds to the range (-0.85 sigma : +0.85 sigma) 709 710 // soften the individual errors with 10% of the scatter above 711 for (j = 0; j < Nref; j++) { 712 double newSigma = hypot(psfStars.alldata->dyVector[j], 0.1*altSigma); 713 psfStars.alldata->dyVector[j] = newSigma; 714 } 715 716 // soften the errors based on the scatter 707 // soften the errors based on the core scatter 717 708 FitDataSetSoften (&psfStars, Nref); 718 709
Note:
See TracChangeset
for help on using the changeset viewer.
