- Timestamp:
- May 5, 2011, 10:08:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/ppSub/src/ppSubLoop.c
r30619 r31441 107 107 108 108 // XXX if it exists, use the POS1, POS2 successs for the FWHMs 109 if (!ppSubMatchPSFs(data)) { 109 psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PPSUB_RECIPE); 110 bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE"); // Do not use convolved images. 111 if (noConvolve) { 112 psWarning("not matching PSFs because NOCONVOLVE is TRUE\n"); 113 } else { 114 if (!ppSubMatchPSFs(data)) { 110 115 psError(psErrorCodeLast(), false, "Unable to match PSFs."); 111 116 success = false; 112 117 goto ESCAPE; 113 } 118 } 119 } 120 114 121 115 122 if (data->quality) { … … 132 139 133 140 // Close input files 141 if (!noConvolve) { 134 142 if (!ppSubFilesIterateUp(config, PPSUB_FILES_INPUT)) { 135 143 psError(PPSUB_ERR_IO, false, "Unable to close input files."); … … 137 145 goto ESCAPE; 138 146 } 139 147 } 140 148 if (!ppSubLowThreshold(data)) { 141 149 psError(psErrorCodeLast(), false, "Unable to threshold images."); … … 157 165 } 158 166 167 if (!noConvolve) { 159 168 if (!data->quality && !ppSubMakePSF(data)) { 160 169 psError(psErrorCodeLast(), false, "Unable to generate PSF."); … … 162 171 goto ESCAPE; 163 172 } 164 173 } 165 174 // Now we've got a PSF, blow away detections in case they're confused with real output detections 166 175 { … … 187 196 } 188 197 // dumpout(config, "diff.2a.fits"); 189 198 if (noConvolve) { 199 if (!ppSubFilesIterateUp(config, PPSUB_FILES_INPUT)) { 200 psError(PPSUB_ERR_IO, false, "Unable to close input files."); 201 success = false; 202 goto ESCAPE; 203 } 204 } 205 190 206 // Higher order background subtraction using psphot 191 207 if (!ppSubBackground(config)) {
Note:
See TracChangeset
for help on using the changeset viewer.
