Changeset 25260
- Timestamp:
- Sep 2, 2009, 3:58:03 PM (17 years ago)
- Location:
- branches/pap/psphot/src
- Files:
-
- 4 edited
-
psphot.h (modified) (3 diffs)
-
psphotAddNoise.c (modified) (3 diffs)
-
psphotFake.c (modified) (2 diffs)
-
psphotReplaceUnfit.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/psphot/src/psphot.h
r25246 r25260 53 53 54 54 bool psphotReplaceAllSources (psArray *sources, psMetadata *recipe); 55 bool psphotRemoveAllSources ( psArray *sources,psMetadata *recipe);55 bool psphotRemoveAllSources (const psArray *sources, const psMetadata *recipe); 56 56 57 57 bool psphotBlendFit (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf); … … 76 76 bool psphotExtendedSourceAnalysis (pmReadout *readout, psArray *sources, psMetadata *recipe); 77 77 bool psphotExtendedSourceFits (pmReadout *readout, psArray *sources, psMetadata *recipe); 78 bool psphotFake(pmReadout *readout, const pmPSF *psf, constpsMetadata *recipe, const psArray *realSources);78 bool psphotFake(pmReadout *readout, const pmPSF *psf, psMetadata *recipe, const psArray *realSources); 79 79 80 80 // thread-related: … … 148 148 pmPSF *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe); 149 149 bool psphotSetHeaderNstars (psMetadata *recipe, psArray *sources); 150 bool psphotAddNoise (pmReadout *readout, psArray *sources,psMetadata *recipe);151 bool psphotSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe);152 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe, bool add);150 bool psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe); 151 bool psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe); 152 bool psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add); 153 153 bool psphotRadialPlot (int *kapa, const char *filename, pmSource *source); 154 154 bool psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe); -
branches/pap/psphot/src/psphotAddNoise.c
r21519 r25260 1 1 # include "psphotInternal.h" 2 2 3 bool psphotAddNoise (pmReadout *readout, psArray *sources,psMetadata *recipe) {3 bool psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) { 4 4 return psphotAddOrSubNoise (readout, sources, recipe, true); 5 5 } 6 6 7 bool psphotSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe) {7 bool psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) { 8 8 return psphotAddOrSubNoise (readout, sources, recipe, false); 9 9 } 10 10 11 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe, bool add) {11 bool psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add) { 12 12 13 13 bool status = false; … … 42 42 PS_ASSERT (status, false); 43 43 if (isfinite(GAIN)) { 44 FACTOR /= GAIN;44 FACTOR /= GAIN; 45 45 } 46 46 … … 70 70 oldshape.sxy = PAR[PM_PAR_SXY]; 71 71 72 // XXX can this be done more intelligently?73 if (oldI0 == 0.0) continue;74 if (!isfinite(oldI0)) continue;72 // XXX can this be done more intelligently? 73 if (oldI0 == 0.0) continue; 74 if (!isfinite(oldI0)) continue; 75 75 76 76 // increase size and height of source -
branches/pap/psphot/src/psphotFake.c
r25246 r25260 98 98 99 99 pmReadout *fakeRO = pmReadoutAlloc(NULL); // Fake readout 100 if (!pmReadoutFakeFromVectors(fakeRO, xAll, yAll, magAll, NULL, NULL, psf, minFlux, NAN, false, false)) { 100 if (!pmReadoutFakeFromVectors(fakeRO, numCols, numRows, xAll, yAll, magAll, 101 NULL, NULL, psf, minFlux, 0, false, false)) { 101 102 psError(PS_ERR_UNKNOWN, false, "Unable to generate fake image"); 102 103 psFree(fakeRO); … … 118 119 119 120 // *** in this section, perform the photometry for fake sources *** 120 bool psphotFake(pmReadout *readout, const pmPSF *psf, constpsMetadata *recipe, const psArray *realSources)121 bool psphotFake(pmReadout *readout, const pmPSF *psf, psMetadata *recipe, const psArray *realSources) 121 122 { 122 123 PM_ASSERT_READOUT_NON_NULL(readout, false); -
branches/pap/psphot/src/psphotReplaceUnfit.c
r21519 r25260 47 47 } 48 48 49 bool psphotRemoveAllSources ( psArray *sources,psMetadata *recipe) {49 bool psphotRemoveAllSources (const psArray *sources, const psMetadata *recipe) { 50 50 51 51 bool status;
Note:
See TracChangeset
for help on using the changeset viewer.
