IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2005, 3:26:57 PM (21 years ago)
Author:
eugene
Message:

various tests and changes

File:
1 edited

Legend:

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

    r4574 r4630  
    77{
    88  float sky;
     9  psModel *model;
     10  psImage *pixels;
    911
    10   // non-stellar sources are ignored
    11   if (source->type == PS_SOURCE_OTHER) return (false);
    12   if (source->type == PS_SOURCE_GALAXY) return (false);
    13   if (source->type == PS_SOURCE_DEFECT) return (false);
    14   if (source->type == PS_SOURCE_SATURATED) return (false);
     12  // only subtract successful fits
     13  if (source->type == PS_SOURCE_SATSTAR) goto valid;
     14  if (source->type == PS_SOURCE_PSFSTAR) goto valid;
     15  if (source->type == PS_SOURCE_GOODSTAR) goto valid;
     16  return (false);
    1517
    16   psModel *model = source->modelPSF;
     18valid:
     19  model = source->modelPSF;
    1720  if (model == NULL) {
    1821    psLogMsg ("psphot.subtract_psf_source", 2, "missing model for %f, %f\n", source->moments->x, source->moments->y);
     
    2023  }         
    2124
    22   psImage *pixels = source->pixels;
     25  pixels = source->pixels;
    2326
    2427  // subtract object, leave local sky
Note: See TracChangeset for help on using the changeset viewer.