IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:40:44 PM (19 years ago)
Author:
Paul Price
Message:

Extensive changes to APIs to allow use of a nominated value to mask
against (the maskVal). Previously, the mask values were either
hard-coded (e.g., PM_MASK_SAT) or taken as anything non-zero. The
code is tested with psModules (which has similar changes) and does not
crash, but neither is it successful in marking all bad pixels. For
this reason, I have left the "gutter" pixels (cell gaps) set to 0
instead of NAN in pmFPAMosaic.

File:
1 edited

Legend:

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

    r13035 r13900  
    22
    33// This is not used in main psphot code (only in psphotModelTest.c)
    4 bool psphotFitSet (pmSource *source, pmModel *oneModel, char *fitset, pmSourceFitMode mode) {
     4bool psphotFitSet (pmSource *source, pmModel *oneModel, char *fitset, pmSourceFitMode mode, psMaskType maskVal) {
    55
    66    double x, y, Io;
     
    2525
    2626    // XXX pmSourceFitSet must cache the modelFlux?
    27     pmSourceFitSet (source, modelSet, mode);
     27    pmSourceFitSet (source, modelSet, mode, maskVal);
    2828
    2929    // write out positive object
     
    3333    for (int i = 0; i < modelSet->n; i++) {
    3434        pmModel *model = modelSet->data[i];
    35         pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL);
     35        pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL, maskVal);
    3636
    3737        fprintf (stderr, "output parameters (obj %d):\n", i);
Note: See TracChangeset for help on using the changeset viewer.