IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2006, 11:08:05 AM (20 years ago)
Author:
eugene
Message:

more cleanups, more work on files and views

File:
1 edited

Legend:

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

    r6715 r6727  
    11# include "psphot.h"
    2 # include "psEllipse.h"
    32static char DEFAULT_MODE[] = "EXT";
    43
    5 bool psphotModelTest (pmReadout *readout, recipe) {
     4bool psphotModelTest (pmReadout *readout, psMetadata *recipe) {
    65
    76    bool status;
     
    9796    fprintf (stderr, "sum: %f @ (%f, %f)\n", source->moments->Sum, source->moments->x, source->moments->y);
    9897
    99     EllipseMoments moments;
     98    psEllipseMoments moments;
    10099    moments.x2 = source->moments->Sx;
    101100    moments.y2 = source->moments->Sy;
    102101    moments.xy = source->moments->Sxy;
    103     EllipseAxes axes = EllipseMomentsToAxes (moments);
     102    psEllipseAxes axes = psEllipseMomentsToAxes (moments);
    104103
    105104    fprintf (stderr, "axes: %f @ (%f, %f)\n", axes.theta*180/M_PI, axes.major, axes.minor);
     
    137136
    138137    // list model input shape
    139     EllipseShape shape;
     138    psEllipseShape shape;
    140139    shape.sx  = 1.4 / model->params->data.F32[4];
    141140    shape.sy  = 1.4 / model->params->data.F32[5];
    142141    shape.sxy = model->params->data.F32[6];
    143     axes = EllipseShapeToAxes (shape);
     142    axes = psEllipseShapeToAxes (shape);
    144143
    145144    fprintf (stderr, "guess: %f @ (%f, %f)\n", axes.theta*180/M_PI, axes.major, axes.minor);
     
    152151
    153152    // define the pixels used for the fit
    154     psImageKeepCircle (source->mask, xObj, yObj, RADIUS, "OR", PSPHOT_MASK_MARKED);
     153    psImageKeepCircle (source->mask, xObj, yObj, RADIUS, "OR", PM_SOURCE_MASK_MARKED);
    155154
    156155    char *fitset = psMetadataLookupStr (&status, recipe, "TEST_FIT_SET");
     
    163162
    164163    // measure the source mags
    165     pmSourcePhotometry (&fitMag, &obsMag, model, source->pixels, source->mask);
     164    pmSourcePhotometryModel (&fitMag, model);
     165    pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->mask);
    166166    fprintf (stderr, "ap: %f, fit: %f, apmifit: %f\n", obsMag, fitMag, obsMag - fitMag);
    167167
Note: See TracChangeset for help on using the changeset viewer.