IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2005, 3:23:24 AM (21 years ago)
Author:
eugene
Message:

mask/noise are working

File:
1 edited

Legend:

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

    r4216 r4251  
    4646}
    4747
    48 pmPSF_Test *pmPSF_TestModel (psArray *sources, char *modelName, float RADIUS) {
     48pmPSF_Test *pmPSF_TestModel (psArray *sources, char *modelName, float RADIUS)
     49{
    4950 
     51    float x;
     52    float y;
     53    bool status;
    5054    int Nflt = 0;
    5155    int Npsf = 0;
     
    102106        }
    103107        psModel  *modelPSF = psModelFromPSF (modelFLT, test->psf); // set shape for this model
    104 
    105         psImageKeepCircle (source->mask, RADIUS, OR, 0x80);
     108        x = source->peak->x;
     109        y = source->peak->y;
     110
     111        psImageKeepCircle (source->mask, x, y, RADIUS, OR, 0x80);
    106112        status = pmSourceFitModel (source, modelPSF, true);
    107         psImageKeepCircle (source->mask, RADIUS, AND, 0x7f);
     113        psImageKeepCircle (source->mask, x, y, RADIUS, AND, 0x7f);
    108114
    109115        // skip poor fits
Note: See TracChangeset for help on using the changeset viewer.