Changeset 41414 for branches/eam_branches/gDiff.20200202/src/gDiffLoop.c
- Timestamp:
- Sep 17, 2020, 12:19:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/gDiff.20200202/src/gDiffLoop.c
r41413 r41414 26 26 psAssert(config, "Require configuration."); 27 27 28 HDUCHECK ("0a: start gDiffLoop");29 30 28 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, GDIFF_RECIPE); // Recipe for ppSim 31 29 psAssert(recipe, "We checked this earlier, so it should be here."); … … 49 47 psTimerStart("GDIFF_MATCH"); 50 48 51 HDUCHECK ("0b: gDiffSetMasks");52 53 49 if (!gDiffSetMasks(config)) { 54 50 psError(psErrorCodeLast(), false, "Unable to set masks."); … … 56 52 } 57 53 58 HDUCHECK ("0b.1: gDiffInputDetections");59 54 if (data->forcedPhot1) { 60 55 bool foundDetections = false; … … 70 65 } 71 66 } 72 HDUCHECK ("0b.2: gDiffInputDetections"); 67 73 68 if (data->forcedPhot2) { 74 69 // XXX why is this only done for Phot2 and not Phot1 ?? … … 110 105 **** This is the core of the PSF-matched image subtraction code. ****/ 111 106 112 HDUCHECK ("1: before gDiffMatchPSFs");113 114 107 if (!gDiffMatchPSFs(data)) { 115 108 psError(psErrorCodeLast(), false, "Unable to match PSFs."); … … 152 145 } 153 146 154 HDUCHECK ("2: after gDiffLowThreshold");155 156 147 // Set up subtraction files 157 148 if (!gDiffFilesIterateDown(config, GDIFF_FILES_SUB)) { … … 166 157 goto ESCAPE; 167 158 } 168 169 HDUCHECK ("2a: gDiffMakePSF");170 159 171 160 // the functions in this block are not critical for initial testing, so block them out for now … … 186 175 } 187 176 188 HDUCHECK ("3: before gDiffReadoutSubtract");189 190 177 if (!gDiffReadoutSubtract(config)) { 191 178 psError(psErrorCodeLast(), false, "Unable to subtract images."); … … 208 195 } 209 196 210 HDUCHECK ("4: before gDiffBackground");211 212 197 // Higher order background subtraction using psphot 213 198 if (!gDiffBackground(config)) { … … 218 203 // dumpout(config, "diff.2b.fits"); 219 204 220 HDUCHECK ("5: before gDiffVarianceRescale");221 222 205 // Perform Variance correction (rescale within a modest range) 223 206 if (!gDiffVarianceRescale(config, data)) { … … 240 223 } 241 224 242 HDUCHECK ("6: before gDiffReadoutPhotometry");243 244 225 if (!data->quality && !gDiffReadoutPhotometry("GDIFF.OUTPUT", data)) { 245 226 psError(psErrorCodeLast(), false, "Unable to perform photometry."); … … 248 229 } 249 230 // dumpout(config, "diff.3.fits"); 250 251 HDUCHECK ("7: before gDiffReadoutForcedPhot (1)");252 231 253 232 // forced photometry for positive image 1
Note:
See TracChangeset
for help on using the changeset viewer.
