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/psphotFitGalaxies.c

    r6379 r6715  
    2323
    2424        // only fit suspected extended sources
    25         if (source->type != PM_SOURCE_EXTENDED) continue;
    26         if (source->mode  & PM_SOURCE_BLEND) continue;
     25        if (source->type != PM_SOURCE_TYPE_EXTENDED) continue;
     26        if (source->mode  & PM_SOURCE_MODE_BLEND) continue;
    2727
    2828        // skip possible extended sources below fit threshold
     
    3232        status = pmSourceMoments (source, EXT_MOMENTS_RAD);
    3333        if (!status) {
    34           source->mode |= PM_SOURCE_FAIL;  // better choice?
     34          source->mode |= PM_SOURCE_MODE_FAIL;  // better choice?
    3535          continue;
    3636        }
     
    4646
    4747        // fit EXT (not PSF) model (set/unset the pixel mask)
    48         psImageKeepCircle (source->mask, x, y, model->radius, "OR", PSPHOT_MASK_MARKED);
     48        psImageKeepCircle (source->mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED);
    4949        pmSourceFitModel (source, model, false);
    50         psImageKeepCircle (source->mask, x, y, model->radius, "AND", ~PSPHOT_MASK_MARKED);
     50        psImageKeepCircle (source->mask, x, y, model->radius, "AND", ~PM_SOURCE_MASK_MARKED);
    5151
    5252        Niter += model[0].nIter;
     
    5555        // check if model fit is acceptable
    5656        if (pmModelFitStatus (model)) {
    57             pmSourceSubModel (source->pixels, source->mask, model, false, false);
    58             source->mode |=  PM_SOURCE_SUBTRACTED;
    59             source->mode &= ~PM_SOURCE_TEMPSUB;
     57            pmModelSub (source->pixels, source->mask, model, false, false);
     58            source->mode |=  PM_SOURCE_MODE_SUBTRACTED;
     59            source->mode &= ~PM_SOURCE_MODE_TEMPSUB;
    6060            Nsub ++;
    6161        }
Note: See TracChangeset for help on using the changeset viewer.