IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 11, 2013, 9:33:18 AM (13 years ago)
Author:
eugene
Message:

replace code which converts the PAR[SXX,SXY,SYY] values to shape and then axes with calls to pmModelParamsToAxes; disable TEST1 and STRAIL models (never really finished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psphot/src/psphotOutput.c

    r34796 r35651  
    379379        psF32 *outPar = source->modelEXT->params->data.F32;
    380380
    381         psEllipseShape shape;
    382 
    383         shape.sx  = outPar[PM_PAR_SXX] / M_SQRT2;
    384         shape.sy  = outPar[PM_PAR_SYY] / M_SQRT2;
    385         shape.sxy = outPar[PM_PAR_SXY];
    386 
    387         psEllipsePol pol = pmPSF_ModelToFit (outPar);
     381        bool useReff = pmModelUseReff (source->modelEXT->type);
     382
     383        psEllipseAxes axes1;
     384        pmModelParamsToAxes (&axes1, outPar[PM_PAR_SXX], outPar[PM_PAR_SXY], outPar[PM_PAR_SYY], useReff);
     385
     386        psEllipsePol pol = pmPSF_ModelToFit (outPar, useReff);
    388387        inPar[PM_PAR_E0] = pol.e0;
    389388        inPar[PM_PAR_E1] = pol.e1;
    390389        inPar[PM_PAR_E2] = pol.e2;
    391         pmPSF_FitToModel (inPar, 0.1);
    392 
    393         psEllipseAxes axes1 = psEllipseShapeToAxes (shape, 20.0);
     390        pmPSF_FitToModel (inPar, 0.1, useReff);
     391
    394392        psEllipseAxes axes2 = psEllipsePolToAxes(pol, 0.1);
    395393
Note: See TracChangeset for help on using the changeset viewer.