IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2005, 8:44:00 PM (21 years ago)
Author:
eugene
Message:

adding pmObjects stuff

File:
1 edited

Legend:

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

    r4946 r4949  
    3131
    3232    // this function specifies the radius at this the model hits the given flux
    33     psModelRadius modelRadius = psModelRadius_GetFunction (psf->type);
     33    pmModelRadius modelRadius = pmModelRadius_GetFunction (psf->type);
    3434
    3535    for (int i = 0; i < sources->n; i++) {
    3636
    37         psSource *source = sources->data[i];
     37        pmSource *source = sources->data[i];
    3838
    3939        // skip non-astronomical objects (very likely defects)
     
    4343
    4444        // use the source moments, etc to guess basic model parameters
    45         psModel *modelFLT = pmSourceModelGuess (source, psf->type);
     45        pmModel *modelFLT = pmSourceModelGuess (source, psf->type);
    4646
    4747        // set PSF parameters for this model
    48         psModel *model = psModelFromPSF (modelFLT, psf);
     48        pmModel *model = pmModelFromPSF (modelFLT, psf);
    4949        x = model->params->data.F32[2];
    5050        y = model->params->data.F32[3];
     
    6666
    6767        // fit PSF model (set/unset the pixel mask)
    68         psImageKeepCircle (source->mask, x, y, model->radius, OR, PSPHOT_MASK_KEEP);
     68        psImageKeepCircle (source->mask, x, y, model->radius, "or", PSPHOT_MASK_KEEP);
    6969        status = pmSourceFitModel (source, model, true);
    70         psImageKeepCircle (source->mask, x, y, model->radius, AND, ~PSPHOT_MASK_KEEP);
     70        psImageKeepCircle (source->mask, x, y, model->radius, "and", ~PSPHOT_MASK_KEEP);
    7171        if (!status || (model->params->data.F32[1] < 0)) {
    7272          psLogMsg ("psphot", 3, "PSF fit failed for %f, %f (%d iterations)\n", x, y, model->nIter);
Note: See TracChangeset for help on using the changeset viewer.