Changeset 42187
- Timestamp:
- Apr 30, 2022, 4:31:42 PM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/psphot/src
- Files:
-
- 2 edited
-
psphotChoosePSF.c (modified) (1 diff)
-
psphotSkyReplace.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/psphot/src/psphotChoosePSF.c
r42087 r42187 594 594 psVector *psfExtra2 = psVectorAllocEmpty (100, PS_DATA_F32); 595 595 596 // count how many PSF stars are defined 597 int nPSFstars = 0; // count the number of PSF stars 596 598 for (int i = 0; i < sources->n; i++) { 597 598 599 pmSource *source = sources->data[i]; 599 600 600 if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue; 601 } 602 603 for (int i = 0; i < sources->n; i++) { 604 605 pmSource *source = sources->data[i]; 606 607 // If no sources are PSFSTARs, then let's just use all with S/N > 0.1. 608 // (This can happen if all are supplied) 609 if (nPSFstars) { 610 if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue; 611 } else { 612 if (source->psfMagErr > 0.1) continue; 613 } 601 614 602 615 float xc = source->peak->xf; -
branches/eam_branches/ipp-20220316/psphot/src/psphotSkyReplace.c
r34528 r42187 4 4 { 5 5 bool status = true; 6 7 fprintf (stdout, "\n"); 8 psLogMsg ("psphot", PS_LOG_INFO, "--- psphot Replace Sky ---"); 6 9 7 10 int num = psphotFileruleCount(config, filerule);
Note:
See TracChangeset
for help on using the changeset viewer.
