IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25488


Ignore:
Timestamp:
Sep 22, 2009, 5:09:32 PM (17 years ago)
Author:
Paul Price
Message:

Print envelope PSF too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmPSFEnvelope.c

    r25487 r25488  
    370370    psFree(try);
    371371
     372    if (psTraceGetLevel("psModules.imcombine") >= 1) {
     373        psString string = NULL;     // String with values
     374        psStringAppend(&string, "Envelope PSF: ");
     375        float x = numCols / 2.0, y = numRows / 2.0; // Coordinates of interest
     376        for (int j = 4; j < psf->params->n; j++) {
     377            pmTrend2D *trend = psf->params->data[j]; // Trend of interest
     378            double val = pmTrend2DEval(trend, x, y);
     379            double err;
     380            switch (trend->mode) {
     381              case PM_TREND_POLY_ORD:
     382              case PM_TREND_POLY_CHEB:
     383                err = NAN;
     384                break;
     385              case PM_TREND_MAP:
     386                err = psImageUnbinPixel(x, y, trend->map->error, trend->map->binning);
     387                break;
     388              default:
     389                psAbort("Unsupported mode: %x", trend->mode);
     390            }
     391            psStringAppend(&string, "%lf %lf   ", val, err);
     392        }
     393        psTrace("psModules.imcombine", 1, "%s\n", string);
     394        psFree(string);
     395    }
     396
    372397#ifdef TESTING
    373398    {
Note: See TracChangeset for help on using the changeset viewer.