- Timestamp:
- Aug 22, 2007, 2:55:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmPSFtry.c
r14544 r14612 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.43.6. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-08- 17 21:01:59 $7 * @version $Revision: 1.43.6.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-08-23 00:55:49 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 23 23 #include "pmMoments.h" 24 24 #include "pmResiduals.h" 25 #include "pmGrowthCurve.h" 26 #include "pmPSF.h" 25 27 #include "pmModel.h" 26 28 #include "pmSource.h" 27 29 #include "pmSourceUtils.h" 28 #include "pmGrowthCurve.h"29 #include "pmPSF.h"30 30 #include "pmPSFtry.h" 31 31 #include "pmModelClass.h" 32 #include "pmModelUtils.h" 32 33 #include "pmSourceFitModel.h" 33 34 #include "pmSourcePhotometry.h" … … 413 414 // This way, the parameters masked by one of the fits will be applied to the others 414 415 for (int i = 0; i < stats->clipIter; i++) { 415 psVectorClipFitPolynomial2D (psf->params _NEW->data[PM_PAR_E0], stats, psfTry->mask, 0xff, e0, dz, x, y);416 psVectorClipFitPolynomial2D (psf->params->data[PM_PAR_E0], stats, psfTry->mask, 0xff, e0, dz, x, y); 416 417 psTrace ("psModules.pmPSFtry", 4, "clipped E0 : keeping %ld of %ld\n", stats->clippedNvalues, e0->n); 417 psVectorClipFitPolynomial2D (psf->params _NEW->data[PM_PAR_E1], stats, psfTry->mask, 0xff, e1, dz, x, y);418 psVectorClipFitPolynomial2D (psf->params->data[PM_PAR_E1], stats, psfTry->mask, 0xff, e1, dz, x, y); 418 419 psTrace ("psModules.pmPSFtry", 4, "clipped E1 : keeping %ld of %ld\n", stats->clippedNvalues, e1->n); 419 psVectorClipFitPolynomial2D (psf->params _NEW->data[PM_PAR_E2], stats, psfTry->mask, 0xff, e2, dz, x, y);420 psVectorClipFitPolynomial2D (psf->params->data[PM_PAR_E2], stats, psfTry->mask, 0xff, e2, dz, x, y); 420 421 psTrace ("psModules.pmPSFtry", 4, "clipped E2 : keeping %ld of %ld\n", stats->clippedNvalues, e2->n); 421 422 } … … 437 438 438 439 // skip the unfitted parameters (X, Y, Io, Sky) and the shape parameters (SXX, SYY, SXY) 439 for (int i = 0; i < psf->params _NEW->n; i++) {440 for (int i = 0; i < psf->params->n; i++) { 440 441 switch (i) { 441 442 case PM_PAR_SKY: … … 462 463 // the mask is carried from previous steps and updated with this operation 463 464 // the weight is either the flux error or NULL, depending on 'applyWeights' 464 if (!psVectorClipFitPolynomial2D(psf->params _NEW->data[i], stats, psfTry->mask, 0xff, z, NULL, x, y)) {465 if (!psVectorClipFitPolynomial2D(psf->params->data[i], stats, psfTry->mask, 0xff, z, NULL, x, y)) { 465 466 psError(PS_ERR_UNKNOWN, false, "failed to build psf model for parameter %d", i); 466 467 psFree(stats); … … 490 491 fprintf (f, "%f %f : ", model->params->data.F32[PM_PAR_XPOS], model->params->data.F32[PM_PAR_YPOS]); 491 492 492 for (int i = 0; i < psf->params _NEW->n; i++) {493 if (psf->params _NEW->data[i] == NULL)493 for (int i = 0; i < psf->params->n; i++) { 494 if (psf->params->data[i] == NULL) 494 495 continue; 495 496 fprintf (f, "%f %f : ", model->params->data.F32[i], modelPSF->params->data.F32[i]);
Note:
See TracChangeset
for help on using the changeset viewer.
