IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2009, 11:15:20 AM (17 years ago)
Author:
Paul Price
Message:

Nigel Metcalfe points out that we shouldn't use extended sources as stamps when convolving to a target PSF. To avoid this, I'm throwing out extended sources when I create the fake image. This requires an API change to pmReadoutFake(). I think I've caught all instances that use that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r25256 r25313  
    1414#define FAKE_SIZE 1                     // Size of fake convolution kernel
    1515#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_SATURATED | \
    16                      PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
     16                     PM_SOURCE_MODE_CR_LIMIT | PM_SOURCE_MODE_EXT_LIMIT) // Mask to apply to input sources
    1717#define FAINT_SOURCE_FRAC 1.0e-4         // Set minimum flux to this fraction of faintest source flux
    1818#define COVAR_FRAC 0.01                 // Truncation fraction for covariance matrix
     
    288288
    289289            if (!pmReadoutFakeFromSources(fake, readout->image->numCols, readout->image->numRows,
    290                                           stampSources, NULL, NULL, options->psf, NAN, footprint + size,
    291                                           false, true)) {
     290                                          stampSources, SOURCE_MASK, NULL, NULL, options->psf,
     291                                          NAN, footprint + size, false, true)) {
    292292                psError(PS_ERR_UNKNOWN, false, "Unable to generate fake image with target PSF.");
    293293                psFree(fake);
Note: See TracChangeset for help on using the changeset viewer.