IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2007, 12:14:08 PM (19 years ago)
Author:
magnier
Message:

converting the PSF model fits to the polariation terms (replacing Sx,Sy,Sxy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r11687 r13064  
    238238    psF32 *PAR = params->data.F32;
    239239
    240     shape.sx  = PAR[PM_PAR_SXX] / sqrt(2.0);
    241     shape.sy  = PAR[PM_PAR_SYY] / sqrt(2.0);
     240    shape.sx  = PAR[PM_PAR_SXX] / M_SQRT2;
     241    shape.sy  = PAR[PM_PAR_SYY] / M_SQRT2;
    242242    shape.sxy = PAR[PM_PAR_SXY];
    243243
     
    284284        return (1.0);
    285285
    286     shape.sx  = PAR[PM_PAR_SXX] / sqrt(2.0);
    287     shape.sy  = PAR[PM_PAR_SYY] / sqrt(2.0);
     286    shape.sx  = PAR[PM_PAR_SXX] / M_SQRT2;
     287    shape.sy  = PAR[PM_PAR_SYY] / M_SQRT2;
    288288    shape.sxy = PAR[PM_PAR_SXY];
    289289
     
    345345    }
    346346
    347     // the 2D model for SXY actually fits SXY / (SXX^-2 + SYY^-2); correct here
    348     out[PM_PAR_SXY] = pmPSF_SXYtoModel (out);
     347    // the OLD 2D model for SXY actually fitted SXY / (SXX^-2 + SYY^-2); correct here
     348    // out[PM_PAR_SXY] = pmPSF_SXYtoModel (out);
     349
     350    // the 2D PSF model fits polarization terms (E0,E1,E2)
     351    // convert to shape terms (SXX,SYY,SXY)
     352    pmPSF_FitToModel (out, 0.1);
    349353
    350354    // apply the model limits here: this truncates excessive extrapolation
     355    // XXX do we need to do this still?  should we put in asserts to test?
    351356    for (int i = 0; i < psf->params_NEW->n; i++) {
    352357        // apply the limits to all components or just the psf-model parameters?
Note: See TracChangeset for help on using the changeset viewer.