IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36210


Ignore:
Timestamp:
Oct 13, 2013, 1:32:54 PM (13 years ago)
Author:
eugene
Message:

some error handling, fixed error messages, call psphotInitRadiusEXT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotGalaxyShape.c

    r36161 r36210  
    66
    77    fprintf (stdout, "\n");
    8     psLogMsg ("psphot", PS_LOG_INFO, "--- psphot Kron Fluxes ---");
     8    psLogMsg ("psphot", PS_LOG_INFO, "--- psphot Galaxy Shapes ---");
    99
    1010    // select the appropriate recipe information
     
    5858
    5959    if (!sources->n) {
    60         psLogMsg ("psphot", PS_LOG_INFO, "no sources, skipping kron fluxes");
     60        psLogMsg ("psphot", PS_LOG_INFO, "no sources, skipping galaxy shapes");
    6161        return true;
    6262    }
    6363
    6464    psTimerStart ("psphot.galaxy");
     65
     66    psphotInitRadiusEXT (recipe, readout);
    6567
    6668    // determine the number of allowed threads
     
    218220    // we are using fitOptions->mode : be sure this makes sense
    219221    pmPCMdata *pcm = pmPCMinit (source, fitOptions, model, maskVal, psfSize);
     222    if (!pcm) return false;
    220223
    221224    // we are fitting only PM_PAR_I0; the shape elements are generated from a grid
     
    302305    float Chisq = YY - 2 * Io * YM + Io * Io * MM;
    303306
    304     fprintf (stderr, "Io: %f, Chisq: %f\n", Io, Chisq);
     307    // fprintf (stderr, "Io: %f, Chisq: %f\n", Io, Chisq);
    305308
    306309    psVectorAppend (source->galaxyFits->Io, Io);
Note: See TracChangeset for help on using the changeset viewer.