IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2006, 4:31:17 PM (20 years ago)
Author:
eugene
Message:

substantial work on the pmFPAfile,view concepts

File:
1 edited

Legend:

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

    r6571 r6715  
    4444        // skip non-astronomical objects (very likely defects)
    4545        // XXX EAM : should we try these anyway?
    46         if (inSource->type == PM_SOURCE_DEFECT) continue;
    47         if (inSource->type == PM_SOURCE_SATURATED) continue;
     46        if (inSource->type == PM_SOURCE_TYPE_DEFECT) continue;
     47        if (inSource->type == PM_SOURCE_TYPE_SATURATED) continue;
    4848        if (final) {
    49             if (inSource->mode &  PM_SOURCE_SUBTRACTED) continue;
     49            if (inSource->mode &  PM_SOURCE_MODE_SUBTRACTED) continue;
    5050        } else {
    51             if (inSource->mode &  PM_SOURCE_BLEND) continue;
     51            if (inSource->mode &  PM_SOURCE_MODE_BLEND) continue;
    5252        }
    5353
     
    6161        // really saturated stars should be re-measured for a better centroid
    6262        // XXX EAM : move this to a 'clear satstar function'
    63         if (inSource->mode &  PM_SOURCE_SATSTAR) {
     63        if (inSource->mode &  PM_SOURCE_MODE_SATSTAR) {
    6464            status = pmSourceMoments (inSource, INNER_RADIUS);
    6565        }
     
    6868        // use the source moments, etc to guess basic model parameters
    6969        pmModel *modelEXT = pmSourceModelGuess (inSource, psf->type);
    70         if (inSource->mode &  PM_SOURCE_SATSTAR) {
     70        if (inSource->mode &  PM_SOURCE_MODE_SATSTAR) {
    7171            modelEXT->params->data.F32[2] = inSource->moments->x;
    7272            modelEXT->params->data.F32[3] = inSource->moments->y;
     
    118118        // fill in the model pixel values
    119119        psImageInit (flux, 0.0);
    120         psImageKeepCircle (mask, x, y, model->radius, "OR", PSPHOT_MASK_MARKED);
    121         pmSourceAddModel (flux, mask, model, false, false);
     120        psImageKeepCircle (mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED);
     121        pmModelAdd (flux, mask, model, false, false);
    122122
    123123        // calculate nDOF (nPix - 1)
    124         // int Nmaskpix = psImageCountPixelMask (mask, allArray, PSPHOT_MASK_SATURATED);
     124        // int Nmaskpix = psImageCountPixelMask (mask, allArray, PM_SOURCE_MASK_SATURATED);
    125125        // model->nDOF  = mask->numCols*mask->numRows - Nmaskpix - 1;
    126126
     
    195195
    196196        // subtract object
    197         pmSourceSubModel (Fi->pixels, Fi->mask, Fi->modelPSF, false, false);
    198         Fi->mode |= PM_SOURCE_SUBTRACTED;
    199         if (!final) Fi->mode |= PM_SOURCE_TEMPSUB;
     197        pmModelSub (Fi->pixels, Fi->mask, Fi->modelPSF, false, false);
     198        Fi->mode |= PM_SOURCE_MODE_SUBTRACTED;
     199        if (!final) Fi->mode |= PM_SOURCE_MODE_TEMPSUB;
    200200    }
    201201
     
    209209        y = model->params->data.F32[3];
    210210
    211         psImageKeepCircle (Fi->mask, x, y, model->radius, "OR", PSPHOT_MASK_MARKED);
     211        psImageKeepCircle (Fi->mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED);
    212212        pmSourceChisq (model, Fi->pixels, Fi->mask, Fi->weight);
    213         psImageKeepCircle (Fi->mask, x, y, model->radius, "AND", ~PSPHOT_MASK_MARKED);
     213        psImageKeepCircle (Fi->mask, x, y, model->radius, "AND", ~PM_SOURCE_MASK_MARKED);
    214214    }
    215215
Note: See TracChangeset for help on using the changeset viewer.