IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2011, 1:12:39 PM (15 years ago)
Author:
eugene
Message:

use the smoothed image for footprint culling; use a more stringent culling for saturated stars; more tweaks to get sat stars to be fitted; various updates to psphotStack; unify psphotImageLoop varients; be a bit careful about number of stars in a PSF clump

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotChoosePSF.c

    r30624 r31154  
    7070
    7171    // examine PSF sources in S/N order (brightest first)
    72     sources = psArraySort (sources, pmSourceSortBySN);
     72    sources = psArraySort (sources, pmSourceSortByFlux);
    7373
    7474    // structure to store user options defining the psf
     
    160160    options->fitOptions->weight        = PS_SQR(SKY_SIG);
    161161    options->fitOptions->mode          = PM_SOURCE_FIT_PSF;
     162    options->fitOptions->covarFactor   = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix
     163
    162164   
    163165    psArray *stars = psArrayAllocEmpty (sources->n);
     
    178180    psphotCheckStarDistribution (stars, sources, options);
    179181
    180     psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n);
     182    psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected %ld candidate PSF objects\n", stars->n);
    181183
    182184    if (stars->n < 50) {
     
    336338    }
    337339
     340    // XXX does this work here?
     341    psphotVisualShowPSFStars (recipe, try->psf, try->sources);
     342
    338343    // build the flux-to-magnitude conversion information
    339344    if (!psphotMakeFluxScale (readout->image, recipe, try->psf)) {
     
    443448            }
    444449            psFree (modelPSF);
     450
     451            // float fwhmtest = pmPSFtoFWHM(psf, xc, yc);
     452            // fprintf (stderr, "fwhm: %f, %f : %f\n", FWHM_MAJOR, FWHM_MINOR, fwhmtest);
    445453        }
    446454    }
Note: See TracChangeset for help on using the changeset viewer.