- Timestamp:
- Aug 3, 2011, 10:30:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/psphot/src/psphotSersicModelClass.c
r31966 r31990 505 505 } 506 506 507 void psphotWriteGuess(pmModel *model, float dKronMag, float PSFratio, float ASPratio); 507 # define TIMING false 508 508 509 509 bool psphotSersicModelClassGuessPCM (pmPCMdata *pcm, pmSource *source) { 510 511 float t1, t2, t4, t5; 512 if (TIMING) { psTimerStart ("SersicGuess"); } 510 513 511 514 psF32 *PAR = pcm->modelConv->params->data.F32; … … 549 552 550 553 // find the containing model class: 554 555 if (TIMING) { t1 = psTimerMark ("SersicGuess"); } 551 556 552 557 psphotSersicModelClass *class = NULL; … … 561 566 } 562 567 568 if (TIMING) { t2 = psTimerMark ("SersicGuess"); } 569 563 570 psAssert (class, "PSFratio and ASPratio must be in range"); 564 571 … … 610 617 PAR[PM_PAR_I0] = 1.0; 611 618 619 if (TIMING) { t4 = psTimerMark ("SersicGuess"); } 620 612 621 // set the normalization by linear fit between model and data 613 622 psphotSersicModelNorm (pcm, source); 623 624 if (TIMING) { t5 = psTimerMark ("SersicGuess"); } 625 626 if (TIMING) { 627 fprintf (stderr, "guess, t1: %6.4f, t2: %6.4f, t4: %6.4f, t5: %6.4f\n", t1, t2, t4, t5); 628 } 614 629 615 630 // float flux = pcm->modelConv->modelFlux(pcm->modelConv->params); … … 617 632 // float Io = pow(10.0, -0.4*(totalMag - normMag)); 618 633 // PAR[PM_PAR_I0] = Io; 619 620 psphotWriteGuess(pcm->modelConv, dKronMag, PSFratio, ASPratio);621 634 622 635 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
