IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25696


Ignore:
Timestamp:
Sep 30, 2009, 2:34:41 PM (17 years ago)
Author:
eugene
Message:

repair NANs in PAR_7 map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/pmPSFtryMakePSF.c

    r25673 r25696  
    103103        }
    104104
     105        pmTrend2D *trend = psf->params->data[i];
     106
    105107        // fit the collection of measured parameters to the PSF 2D model
    106108        // the mask is carried from previous steps and updated with this operation
    107109        // the weight is either the flux error or NULL, depending on 'psf->poissonErrorParams'
    108         if (!pmTrend2DFit (psf->params->data[i], srcMask, 0xff, x, y, z, NULL)) {
     110        if (!pmTrend2DFit (trend, srcMask, 0xff, x, y, z, NULL)) {
    109111            psError(PS_ERR_UNKNOWN, false, "failed to build psf model for parameter %d", i);
    110112            psFree(x);
     
    113115            return false;
    114116        }
     117        if (trend->mode == PM_TREND_MAP) {
     118            // p_psImagePrint (2, trend->map->map, "param N Before"); // XXX TEST:
     119            psImageMapRepair (trend->map->map);
     120            // p_psImagePrint (2, trend->map->map, "param N After"); // XXX TEST:
     121        }
    115122    }
    116123
Note: See TracChangeset for help on using the changeset viewer.