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/psphot.h

    r30624 r31154  
    1212
    1313#define PSPHOT_RECIPE_PSF_FAKE_ALLOW "PSF.FAKE.ALLOW" // Name for recipe component permitting fake PSFs
     14
     15# define READOUT_OR_INTERNAL(VIEW,FILE)((FILE)->mode == PM_FPA_MODE_INTERNAL) ? (FILE)->readout : pmFPAviewThisReadout((VIEW), (FILE)->fpa)
     16
     17typedef enum {
     18    PSPHOT_SINGLE,
     19    PSPHOT_FORCED,
     20    PSPHOT_MAKE_PSF,
     21} psphotImageLoopMode;
    1422
    1523// top-level psphot functions
     
    2230void            psphotVersionPrint(void);
    2331
     32bool            psphotImageLoop (pmConfig *config, psphotImageLoopMode mode);
     33
    2434bool            psphotModelTest (pmConfig *config, const pmFPAview *view, psMetadata *recipe);
    2535bool            psphotInit (void);
     
    5363bool            psphotModelBackgroundReadoutFileIndex (pmConfig *config, const pmFPAview *view, const char *filerule, int index);
    5464
     65bool            psphotMaskBackground (pmConfig *config, const pmFPAview *view, const char *filerule);
     66bool            psphotMaskBackgroundReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
     67
    5568bool            psphotSubtractBackground (pmConfig *config, const pmFPAview *view, const char *filerule);
    5669bool            psphotSubtractBackgroundReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
     
    168181
    169182// used by psphotFindDetections
    170 psImage        *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal);
    171 psArray        *psphotFindPeaks (psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax);
    172 bool            psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal);
    173 psErrorCode     psphotCullPeaks(const pmReadout *readout, const psMetadata *recipe, psArray *footprints);
     183pmReadout      *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal);
     184psArray        *psphotFindPeaks (pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax);
     185bool            psphotFindFootprints (pmDetections *detections, pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal);
     186psErrorCode     psphotCullPeaks(const pmReadout *readout, const pmReadout *signifRO, const psMetadata *recipe, psArray *footprints);
    174187
    175188// in psphotApResid.c:
     
    248261bool            psphotVisualShowLogSignificance (psImage *image, float min, float max);
    249262bool            psphotVisualShowPeaks (pmDetections *detections);
     263bool            psphotVisualShowSources (psArray *sources);
    250264bool            psphotVisualShowFootprints (pmDetections *detections);
    251265bool            psphotVisualShowMoments (psArray *sources);
     
    305319
    306320pmConfig *psphotForcedArguments(int argc, char **argv);
    307 bool psphotForcedImageLoop (pmConfig *config);
    308321bool psphotForcedReadout(pmConfig *config, const pmFPAview *view, const char *filerule);
    309322
    310323pmConfig *psphotMakePSFArguments(int argc, char **argv);
    311 bool psphotMakePSFImageLoop (pmConfig *config);
    312324bool psphotMakePSFReadout(pmConfig *config, const pmFPAview *view, const char *filerule);
    313325
     
    430442bool psphotRadialApertures (pmConfig *config, const pmFPAview *view, const char *filerule);
    431443bool psphotRadialAperturesReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
    432 bool psphotRadialApertureSource (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal, const psVector *radMax, int entry);
     444bool psphotRadialApertureSource (pmSource *source, psMetadata *recipe, psImageMaskType maskVal, const psVector *radMax, int entry);
    433445
    434446bool psphotExtendedSourceAnalysisByObject (pmConfig *config, psArray *objects, const pmFPAview *view, const char *filerule);
Note: See TracChangeset for help on using the changeset viewer.