IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 13, 2012, 6:31:39 AM (14 years ago)
Author:
eugene
Message:

add special fit case for trails; update guess for trails; update cmf output to include trails and errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psModules/src/objects/models/pmModel_TRAIL.c

    r34141 r34144  
    5959
    6060// Lax parameter limits
    61 static float paramsMinLax[] = { -1.0e3, 1.0e-2, -1.0e2, -1.0e2,  0.5, -0.1, -1.0 };
    62 static float paramsMaxLax[] = {  1.0e5, 1.0e+8, +1.0e4, +1.0e4, 50.0, +3.3 , 1.0 };
     61static float paramsMinLax[] = { -1.0e3, 1.0e-2, -1.0e2, -1.0e2,  0.5, -3.3, -0.5 };
     62static float paramsMaxLax[] = {  1.0e5, 1.0e+8, +1.0e4, +1.0e4, 50.0, +3.3 , 5.0 };
    6363
    6464// Moderate parameter limits
     
    255255    if (!isfinite(axes.theta)) return false;
    256256
    257     PAR[PM_PAR_LENGTH] = axes.major; // XXX major or 2*major?
    258     PAR[PM_PAR_THETA] = axes.theta; // XXX theta or theta * RAD_DEG?
    259     PAR[PM_PAR_SIGMA] = psfAxes.major; // XXX major or 0.5*major?
     257    // axes.major is a sigma in the major direction; scale to
     258    PAR[PM_PAR_LENGTH] = 1.5*2.35*axes.major; // a tophat of length L has L = 1.5 * 2.35 * sigma
     259    PAR[PM_PAR_THETA] = axes.theta; // theta in radians
     260    PAR[PM_PAR_SIGMA] = psfAxes.major; // psf major axes (sigma of the psf)
    260261
    261262    // set the model normalization
     
    285286    psF32 *PAR = params->data.F32;
    286287
    287     return (0.5*PAR[PM_PAR_LENGTH]);
     288    // PAR_LENGTH is the unconvolved length.  add a bit for safety
     289    return (0.5*PAR[PM_PAR_LENGTH] + 2);
    288290}
    289291
Note: See TracChangeset for help on using the changeset viewer.