IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34187


Ignore:
Timestamp:
Jul 20, 2012, 3:39:24 PM (14 years ago)
Author:
eugene
Message:

allow trail fits to 150 pixels long; make model length guess based on 1st radial moment

File:
1 edited

Legend:

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

    r34144 r34187  
    5959
    6060// Lax parameter limits
    61 static float paramsMinLax[] = { -1.0e3, 1.0e-2, -1.0e2, -1.0e2,  0.5, -3.3, -0.5 };
    62 static float paramsMaxLax[] = {  1.0e5, 1.0e+8, +1.0e4, +1.0e4, 50.0, +3.3 , 5.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, 150.0, +3.3 , 5.0 };
    6363
    6464// Moderate parameter limits
     
    255255    if (!isfinite(axes.theta)) return false;
    256256
     257    float size = (axes.major > source->moments->Mrf) ? axes.major : source->moments->Mrf;
     258
    257259    // 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
     260    PAR[PM_PAR_LENGTH] = 1.5*2.35*size; // a tophat of length L has L = 1.5 * 2.35 * sigma
    259261    PAR[PM_PAR_THETA] = axes.theta; // theta in radians
    260262    PAR[PM_PAR_SIGMA] = psfAxes.major; // psf major axes (sigma of the psf)
     
    267269    // set the model position
    268270    if (!pmModelSetPosition(&PAR[PM_PAR_XPOS], &PAR[PM_PAR_YPOS], source)) {
    269       return false;
     271       return false;
    270272    }
    271273
Note: See TracChangeset for help on using the changeset viewer.