IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2008, 8:36:06 AM (18 years ago)
Author:
eugene
Message:

merging from eam_branch_20080324 : psphot work on extended source fitting and related I/O functions

File:
1 edited

Legend:

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

    r15834 r17396  
    1919
    2020   note that a standard sersic model uses exp(-K*(z^(1/n) - 1).  the additional elements (K,
    21    the -1 offset) are absorbed in this model by the normalization, the exponenet, and the
     21   the -1 offset) are absorbed in this model by the normalization, the exponent, and the
    2222   radial scale.  We fit the elements in this form, then re-normalize them on output.
    2323   *****************************************************************************/
     
    157157            break;
    158158        case PM_PAR_SXX:
    159             params_min =   0.25;
     159            params_min =   0.05;
    160160            break;
    161161        case PM_PAR_SYY:
    162             params_min =   0.25;
     162            params_min =   0.05;
    163163            break;
    164164        case PM_PAR_SXY:
     
    166166            break;
    167167        case PM_PAR_7:
    168             params_min =   0.1;
     168            params_min =   0.05;
    169169            break;
    170170        default:
     
    247247    if (!isfinite(shape.sxy)) return false;
    248248
    249     PAR[PM_PAR_SKY]  = moments->Sky;
    250     PAR[PM_PAR_I0]   = moments->Peak - moments->Sky;
     249    // XXX PAR[PM_PAR_SKY]  = moments->Sky;
     250    PAR[PM_PAR_SKY]  = 0.0;
     251    PAR[PM_PAR_I0]   = moments->Peak;
    251252    PAR[PM_PAR_XPOS] = peak->x;
    252253    PAR[PM_PAR_YPOS] = peak->y;
     
    442443
    443444    status = true;
    444     status &= (dP < 0.5);
     445//    status &= (dP < 0.5);
    445446    status &= (PAR[PM_PAR_I0] > 0);
    446447    status &= ((dPAR[PM_PAR_I0]/PAR[PM_PAR_I0]) < 0.5);
     448
     449    fprintf (stderr, "SERSIC status pars: dP: %f, I0: %f, S/N: %f\n",
     450             dP, PAR[PM_PAR_I0], (dPAR[PM_PAR_I0]/PAR[PM_PAR_I0]));
    447451
    448452    return status;
Note: See TracChangeset for help on using the changeset viewer.