Changeset 17516 for trunk/psphot/src/psphotFitSourcesLinear.c
- Timestamp:
- May 4, 2008, 2:10:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFitSourcesLinear.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFitSourcesLinear.c
r16820 r17516 158 158 // set the sky, sky_x, sky_y components of border matrix 159 159 SetBorderMatrixElements (border, readout, fitSources, CONSTANT_PHOTOMETRIC_WEIGHTS, SKY_FIT_ORDER); 160 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "set border: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem); 160 161 161 162 psSparseConstraint constraint; … … 174 175 skyfit = NULL; 175 176 } 177 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "solve matrix: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem); 176 178 177 179 // adjust I0 for fitSources and subtract … … 192 194 source->mode |= PM_SOURCE_MODE_SUBTRACTED; 193 195 } 196 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "sub models: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem); 194 197 195 198 // measure chisq for each source … … 199 202 pmSourceChisq (model, source->pixels, source->maskObj, source->weight, maskVal); 200 203 } 204 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "get chisqs: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem); 201 205 202 206 // psFree (index); … … 212 216 } 213 217 218 // XXX do we need this? 219 214 220 // Calculate the weight terms for the sky fit component of the matrix. This function operates 215 221 // on the pixels which correspond to all of the sources of interest. These elements fill in … … 222 228 fullArray = psRegionForImage (readout->mask, fullArray); 223 229 psImageMaskRegion (readout->mask, fullArray, "OR", PM_MASK_MARK); 230 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 1: %f sec\n", psTimerMark ("psphot")); 224 231 225 232 // turn off MARK for all object pixels … … 232 239 psImageMaskCircle (source->maskView, x, y, model->radiusFit, "AND", PS_NOT_U8(PM_MASK_MARK)); 233 240 } 241 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 2: %f sec\n", psTimerMark ("psphot")); 234 242 235 243 // accumulate the image statistics from the masked regions … … 268 276 } 269 277 } 278 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 3: %f sec\n", psTimerMark ("psphot")); 270 279 271 280 // turn off MARK for all image pixels 272 281 psImageMaskRegion (readout->mask, fullArray, "AND", PS_NOT_U8(PM_MASK_MARK)); 282 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 4: %f sec\n", psTimerMark ("psphot")); 273 283 274 284 // set the Border T elements … … 287 297 psSparseBorderElementT (border, 2, 2, y2); 288 298 } 299 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 5: %f sec\n", psTimerMark ("psphot")); 300 289 301 return true; 290 302 }
Note:
See TracChangeset
for help on using the changeset viewer.
