IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2006, 10:32:57 AM (20 years ago)
Author:
eugene
Message:

this is an important change. I have changed the way in which the psf
elliptical contour parameters are defined and fitted. SXX,SYY ->
1/SXX,1/SYY (ie, they are now ~ sigma, not ~1/sigma). SXY is now
fitted with the form SXY/(1/SXX2 + 1/SYY2)2

also added some additional tests and checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotChoosePSF.c

    r9734 r9771  
    163163
    164164    // make a model with unit central intensity at the image center
    165     modelEXT->params->data.F32[0] = 0;
    166     modelEXT->params->data.F32[1] = 1;
    167     modelEXT->params->data.F32[2] = 0.5*image->numCols;
    168     modelEXT->params->data.F32[3] = 0.5*image->numRows;
     165    modelEXT->params->data.F32[PM_PAR_SKY] = 0;
     166    modelEXT->params->data.F32[PM_PAR_I0] = 1;
     167    modelEXT->params->data.F32[PM_PAR_XPOS] = 0.5*image->numCols;
     168    modelEXT->params->data.F32[PM_PAR_YPOS] = 0.5*image->numRows;
    169169
    170170    // construct a PSF model at this coordinate
     
    178178    psF64 FWHM_X = 2*modelRadiusFunc (modelPSF->params, 0.5);
    179179
    180     shape.sx  = modelPSF->params->data.F32[4];
    181     shape.sy  = modelPSF->params->data.F32[5];
    182     shape.sxy = modelPSF->params->data.F32[6];
     180    // XXX make sure this is consistent with the re-definition of PM_PAR_SXX
     181    shape.sx  = modelPSF->params->data.F32[PM_PAR_SXX];
     182    shape.sy  = modelPSF->params->data.F32[PM_PAR_SYY];
     183    shape.sxy = modelPSF->params->data.F32[PM_PAR_SXY];
    183184    axes = psEllipseShapeToAxes (shape);
    184185
     
    195196}
    196197
     198// XXX fix this wrt re-definition of PM_PAR_SXX
    197199bool psphotMomentsStats (pmReadout *readout, psMetadata *recipe, psArray *sources) {
    198200
Note: See TracChangeset for help on using the changeset viewer.