IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17343


Ignore:
Timestamp:
Apr 6, 2008, 10:16:12 AM (18 years ago)
Author:
eugene
Message:

test with delta psf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotPSFConvModel.c

    r17316 r17343  
    1 # include "psphot.h"
     1# include "psphotInternal.h"
    22
    33// save as static values so they may be set externally
     
    1010pmModel *psphotPSFConvModel (pmReadout *readout, pmSource *source, pmModelType modelType, psMaskType maskVal, int psfSize) {
    1111   
    12     bool status;
    13 
    1412    // make sure we save a cached copy of the psf flux
    1513    pmSourceCachePSF (source, maskVal);
     
    3230    }
    3331
    34 # define USE_DELTA_PSF 0
     32# define USE_DELTA_PSF 1
    3533# if (USE_DELTA_PSF)
    3634    // XXX sanity check: convolve with delta function should behave like unconvolved version
     
    4038        }
    4139    }
    42     psf->image->data.F32[2][2] = 1.0;
     40    psf->image->data.F32[(int)(0.5*psf->image->numRows)][(int)(0.5*psf->image->numCols)] = 1.0;
    4341# endif
    4442
     
    120118    source->mode |= PM_SOURCE_MODE_FITTED; // XXX is this needed?
    121119
     120    psFree(psf);
    122121    psFree(myMin);
    123122    psFree(covar);
Note: See TracChangeset for help on using the changeset viewer.