IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2012, 4:16:36 PM (14 years ago)
Author:
eugene
Message:

adding SATSTAR profile code (but keeping it disabled for now); adding PS1_SV2 and PS1_DV3, finalizing PS1_V4; PLTSCALE now includes a sign for the image sky parity

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/objects/pmSource.c

    r34318 r34403  
    4040#include "pmSourceDiffStats.h"
    4141#include "pmSourcePhotometry.h"
     42#include "pmSourceSatstar.h"
    4243#include "pmSource.h"
    4344
     
    6162    psFree(tmp->modelFits);
    6263    psFree(tmp->extFitPars);
     64    psFree(tmp->blends);
     65    psFree(tmp->satstar);
    6366    psFree(tmp->extpars);
    64     psFree(tmp->moments);
    6567    psFree(tmp->diffStats);
    6668    psFree(tmp->radialAper);
    67     psFree(tmp->blends);
    6869    psTrace("psModules.objects", 10, "---- end ----\n");
    6970}
     
    160161    source->region = psRegionSet(NAN, NAN, NAN, NAN);
    161162    source->blends = NULL;
     163    source->satstar = NULL;
    162164    source->extpars = NULL;
    163165    source->diffStats = NULL;
     
    650652        if (source->peak->y >= region->y1) continue;
    651653
     654# define DEBUG 0
     655# define TEST_X 2792
     656# define TEST_Y 1741
     657# if (DEBUG)
     658        if ((fabs(source->peak->x - TEST_X) < 5) && (fabs(source->peak->y - TEST_Y) < 5)) {
     659          fprintf (stderr, "test peak\n");
     660        }
     661# endif
     662
    652663        // should be set by pmSourceAlloc
    653664        psAssert (source->type == PM_SOURCE_TYPE_UNKNOWN, "source type was not init-ed?");
     
    665676
    666677        // XXX EAM : can we use the value of SATURATE if mask is NULL?
     678        // XXX a 5x5 box centered on the peak is a rather small region to check for
    667679        inner = psRegionForSquare (source->peak->x, source->peak->y, 2);
    668680        inner = psRegionForImage (source->maskView, inner);
Note: See TracChangeset for help on using the changeset viewer.