IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9576


Ignore:
Timestamp:
Oct 13, 2006, 5:13:31 PM (20 years ago)
Author:
eugene
Message:

fixes to psTrace name spaces

Location:
trunk/psphot/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotArguments.c

    r9270 r9576  
    132132    psMetadataAddStr (config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "", argv[1]);
    133133
    134     psTrace(__func__, 1, "Done with psphotArguments...\n");
     134    psTrace("psphot", 1, "Done with psphotArguments...\n");
    135135    return (config);
    136136}
  • trunk/psphot/src/psphotBlendFit.c

    r9270 r9576  
    5252        // skip sources which are insignificant flux?
    5353        if (source->modelPSF->params->data.F32[1] < 0.1) {
    54             psTrace ("psphotBlendFit", 5, "skipping near-zero source: %f, %f : %f\n",
     54            psTrace ("psphot", 5, "skipping near-zero source: %f, %f : %f\n",
    5555                     source->modelPSF->params->data.F32[1],
    5656                     source->modelPSF->params->data.F32[2],
     
    6565        // try fitting PSFs, then try extended sources
    6666        if (psphotFitBlend (readout, source, psf)) {
    67             psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     67            psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
    6868            Npsf ++;
    6969            continue;
    7070        }
    7171        if (psphotFitBlob (readout, source, sources, psf)) {
    72             psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
     72            psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
    7373            Next ++;
    7474            continue;
    7575        }
    7676
    77         psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
     77        psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
    7878        Nfail ++;
    7979
     
    8484    }
    8585
    86     psLogMsg ("psphot", 3, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
     86    psLogMsg ("psphot.psphotBlendFit", 3, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
    8787    return (true);
    8888}
  • trunk/psphot/src/psphotEnsemblePSF.c

    r9529 r9576  
    8686            psPlane min = psImageBicubeMin (bicube);
    8787
    88             psTrace ("psphotEnsemblePSF", 5, "peak coord: %f %f -> %f %f\n",
     88            psTrace ("psphot", 5, "peak coord: %f %f -> %f %f\n",
    8989                     modelEXT->params->data.F32[PM_PAR_XPOS], modelEXT->params->data.F32[PM_PAR_YPOS], min.x + ix, min.y + iy);
    9090           
  • trunk/psphot/src/psphotParseCamera.c

    r9270 r9576  
    8383    psFree (chips);
    8484
    85     psTrace(__func__, 1, "Done with psphotParseCamera...\n");
     85    psTrace("psphot", 1, "Done with psphotParseCamera...\n");
    8686
    8787    psErrorClear();                     // some metadata lookup may have failed
  • trunk/psphot/src/psphotReadout.c

    r9565 r9576  
    2424    psphotModelTest (readout, recipe);
    2525
    26     if (psTraceGetLevel("psphot.images") > 5) {
     26    if (psTraceGetLevel("psphot") > 5) {
    2727        psphotSaveImage (NULL, readout->image,  "image.fits");
    2828        psphotSaveImage (NULL, readout->mask,   "mask.fits");
     
    9595    // measure aperture photometry corrections
    9696    if (!psphotApResid (readout, sources, recipe, psf)) {
    97         psTrace ("psphotReadout", 4, "failure on psphotApResid");
     97        psTrace ("psphot", 4, "failure on psphotApResid");
    9898        psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
    9999        return false;
  • trunk/psphot/src/psphotReplaceUnfit.c

    r9270 r9576  
    1313        if (source->modelPSF == NULL) continue;
    1414
    15         psTrace (__func__, 3, "replacing object at %f,%f\n",
     15        psTrace ("psphot", 3, "replacing object at %f,%f\n",
    1616                 source->modelPSF->params->data.F32[2], source->modelPSF->params->data.F32[3]);
    1717
  • trunk/psphot/src/psphotSourceFits.c

    r9270 r9576  
    1212        return status;
    1313    }
    14     psTrace ("psphot.blend", 5, "trying blend...\n");
     14    psTrace ("psphot", 5, "trying blend...\n");
    1515
    1616    // save the PSF model from the Ensemble fit
     
    7979        // if this one failed, skip it
    8080        if (!psphotEvalPSF (blend, model)) {
    81             psTrace ("psphot.blend", 5, "failed on blend %d of %ld\n", i, modelSet->n);
     81            psTrace ("psphot", 5, "failed on blend %d of %ld\n", i, modelSet->n);
    8282            continue;
    8383        }
     
    8686        psFree(blend->modelPSF);
    8787        blend->modelPSF = psMemIncrRefCounter (model);
    88         psTrace ("psphot.blend", 5, "fitted blend as PSF\n");
     88        psTrace ("psphot", 5, "fitted blend as PSF\n");
    8989        pmModelSub (source->pixels, source->mask, model, false, false);
    9090        blend->mode |=  PM_SOURCE_MODE_SUBTRACTED;
     
    9696    // evaluate the primary object
    9797    if (!psphotEvalPSF (source, PSF)) {
    98         psTrace ("psphot.blend", 5, "failed on blend 0 of %ld\n", modelSet->n);
     98        psTrace ("psphot", 5, "failed on blend 0 of %ld\n", modelSet->n);
    9999        psFree (PSF);
    100100        return false;
    101101    }
    102102
    103     psTrace ("psphot.blend", 5, "fitted primary as PSF\n");
     103    psTrace ("psphot", 5, "fitted primary as PSF\n");
    104104    pmModelSub (source->pixels, source->mask, PSF, false, false);
    105105    psFree (source->modelPSF);
     
    140140    }
    141141
    142     psTrace ("psphot.blend", 5, "fitted as PSF\n");
     142    psTrace ("psphot", 5, "fitted as PSF\n");
    143143    pmModelSub (source->pixels, source->mask, PSF, false, false);
    144144
     
    189189    if (!pmSourceMoments (source, EXT_MOMENTS_RAD)) return false;
    190190
    191     psTrace ("psphot.blend", 5, "trying blob...\n");
     191    psTrace ("psphot", 5, "trying blob...\n");
    192192
    193193    // this temporary source is used as a place-holder by the psphotEval functions below
     
    219219
    220220    if (okEXT && okDBL) {
    221         psTrace ("psphot.blend", 5, "blob chisq: %f vs %f\n", chiEXT, chiDBL);
     221        psTrace ("psphot", 5, "blob chisq: %f vs %f\n", chiEXT, chiDBL);
    222222        // XXX EAM : a bogus bias: need to examine this better
    223223        if (3*chiEXT > chiDBL) goto keepDBL;
     
    237237    psFree (DBL);
    238238    pmModelSub (source->pixels, source->mask, EXT, false, false);
    239     psTrace ("psphot.blend", 5, "blob as EXT: %f %f\n", EXT->params->data.F32[2], EXT->params->data.F32[3]);
     239    psTrace ("psphot", 5, "blob as EXT: %f %f\n", EXT->params->data.F32[2], EXT->params->data.F32[3]);
    240240
    241241    // save new model
     
    250250    pmModelSub (source->pixels, source->mask, (pmModel *) DBL->data[0], false, false);
    251251    pmModelSub (source->pixels, source->mask, (pmModel *) DBL->data[1], false, false);
    252     psTrace ("psphot.blend", 5, "blob as DBL: %f %f\n", ONE->params->data.F32[2], ONE->params->data.F32[3]);
     252    psTrace ("psphot", 5, "blob as DBL: %f %f\n", ONE->params->data.F32[2], ONE->params->data.F32[3]);
    253253
    254254    // drop old model, save new second model...
     
    339339
    340340    if ((source->moments->Sx < 1e-3) || (source->moments->Sx < 1e-3)) {
    341         psTrace ("psphotSourceFits", 5, "problem source: moments: %f %f\n", source->moments->Sx, source->moments->Sy);
     341        psTrace ("psphot", 5, "problem source: moments: %f %f\n", source->moments->Sx, source->moments->Sy);
    342342    }
    343343
Note: See TracChangeset for help on using the changeset viewer.