IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 13, 2006, 8:24:10 PM (21 years ago)
Author:
eugene
Message:

substantial work on the aperture residuals

File:
1 edited

Legend:

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

    r5828 r5980  
    3131    }
    3232
    33     // check if we need to redefine the pixels
    34     // XXX EAM : a better test would examine the source pixels
     33# if (1)
     34    bool status = psphotRedefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius);
     35    return status;
     36
     37# else
     38
    3539    if (model->radius > PSF_OUTER_RADIUS) {
    3640        // (re)-allocate image, weight, mask arrays for each peak (square of radius OUTER)
    3741        psphotDefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius);
    3842        return true;
     43    } else {
     44        fprintf (stderr, "skipping %f,%f\n", model->params->data.F32[2], model->params->data.F32[3]);
    3945    }
    40 
    4146    return false;
     47# endif
    4248}
    4349
     
    6874    if (isnan(model->radius)) psAbort ("fit_galaxies", "error in radius");
    6975
     76# if (1)
     77    // redefine the pixels if needed
     78    bool status = psphotRedefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius);
     79    return status;
     80
     81# else
     82
    7083    // check if we need to redefine the pixels
    7184    if (model->radius > GAL_OUTER_RADIUS) {
     
    7689    }
    7790    return false;
     91# endif
    7892}
Note: See TracChangeset for help on using the changeset viewer.