IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2008, 3:10:25 PM (18 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20080229: better flag definitions, cleanup footprint code (move into psphotFindDetections), push mask selection into called functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r15936 r16820  
    99
    1010#include "psphotErrorCodes.h"
     11#include "pmFootprint.h"
     12
    1113#define PSPHOT_RECIPE "PSPHOT" // Name of the recipe to use
    1214
     
    1618psString        psphotVersionLong(void);
    1719
    18 bool            psphotModelTest (pmConfig *config, const pmFPAview *view, psMetadata *recipe, psMaskType maskVal, psMaskType mark);
     20bool            psphotModelTest (pmConfig *config, const pmFPAview *view, psMetadata *recipe);
    1921bool            psphotReadout (pmConfig *config, const pmFPAview *view);
    20 bool            psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmPSF *psf, psArray *sources);
     22bool            psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmDetections *detections, pmPSF *psf, psArray *sources);
    2123bool            psphotDefineFiles (pmConfig *config, pmFPAfile *input);
    22 
    2324
    2425// XXX test functions
     
    2627
    2728// psphotReadout functions
    28 bool            psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename, psMaskType maskVal);
    29 bool            psphotSubtractBackground (pmConfig *config, const pmFPAview *view, const char *filename, psMaskType maskVal) ;
    30 psArray        *psphotFindPeaks (pmReadout *readout, psMetadata *recipe,
    31                                  const bool returnFootprints, const int pass, psMaskType maskVal);
    32 #include "pmFootprint.h"
    33 psErrorCode     psphotCullPeaks(const psImage *img, const psImage *weight,
    34                                 const psMetadata *recipe, psArray *footprints);
    35 psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *allpeaks, psMaskType maskVal, psMaskType mark);
    36 bool            psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump, psMaskType maskSat);
     29bool            psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename);
     30bool            psphotSubtractBackground (pmConfig *config, const pmFPAview *view, const char *filename) ;
     31pmDetections   *psphotFindDetections (pmDetections *detections, pmReadout *readout, psMetadata *recipe);
     32
     33psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, pmDetections *detections);
     34bool            psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump);
    3735bool            psphotBasicDeblend (psArray *sources, psMetadata *recipe);
    38 pmPSF          *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe, psMaskType maskVal, psMaskType mark);
     36pmPSF          *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe);
    3937bool            psphotPSFstats (pmReadout *readout, psMetadata *recipe, pmPSF *psf);
    4038bool            psphotMomentsStats (pmReadout *readout, psMetadata *recipe, psArray *sources);
    41 #if NOT_IN_LIBPSPHOT
    42 bool            psphotEnsemblePSF (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final);
    43 #endif
    44 bool            psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final, psMaskType maskVal);
    45 bool            psphotGuessModels (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal);
    46 bool            psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal);
     39bool            psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final);
     40bool            psphotGuessModels (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
     41bool            psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
    4742bool            psphotReplaceUnfit (psArray *sources, psMaskType maskVal);
    48 bool            psphotReplaceAll (psArray *sources, psMaskType maskVal);
    49 bool            psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal, psMaskType mark);
     43bool            psphotReplaceAll (psArray *sources, psMetadata *recipe);
     44bool            psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
     45bool            psphotMagnitudes (psArray *sources, psMetadata *recipe, pmPSF *psf, pmReadout *background);
     46bool            psphotSkyReplace (pmConfig *config, const pmFPAview *view);
     47bool            psphotExtendedSources (pmReadout *readout, psArray *sources, psMetadata *recipe);
     48
     49// used by psphotFindDetections
     50psArray        *psphotFindPeaks (pmReadout *readout, psMetadata *recipe, const bool returnFootprints, const int pass, psMaskType maskVal);
     51psErrorCode     psphotCullPeaks(const psImage *img, const psImage *weight, const psMetadata *recipe, psArray *footprints);
     52
     53// used by ApResid
    5054bool            psphotMagErrorScale (float *errorScale, float *errorFloor, psVector *dMag, psVector *dap, psVector *mask, int nGroup);
    5155bool            psphotApResidTrend (pmReadout *readout, pmPSF *psf, int Npsf, int scale, float *errorScale, float *errorFloor, psVector *mask, psVector *xPos, psVector *yPos, psVector *apResid, psVector *dMag);
    52 bool            psphotMagnitudes (psArray *sources, psMetadata *recipe, pmPSF *psf, pmReadout *background, psMaskType maskVal, psMaskType mark);
    53 bool            psphotSkyReplace (pmConfig *config, const pmFPAview *view);
    5456
    5557// basic support functions
    5658void            psphotModelClassInit (void);
    5759bool            psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal);
    58 bool            psphotMaskReadout (pmReadout *readout, psMetadata *recipe, psMaskType maskVal);
     60bool            psphotSetMaskAndWeight (pmConfig *config, pmReadout *readout, psMetadata *recipe);
    5961void            psphotSourceFreePixels (psArray *sources);
    6062
     
    100102pmPSF          *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe);
    101103bool            psphotSetHeaderNstars (psMetadata *recipe, psArray *sources);
    102 bool            psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add, psMaskType maskVal);
     104bool            psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);
     105bool            psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);
     106bool            psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add);
    103107bool            psphotRadialPlot (int *kapa, const char *filename, pmSource *source);
    104 bool            psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe, psMaskType maskVal);
     108bool            psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe);
    105109bool            psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY);
    106110
     
    109113bool            psphotSetState (pmSource *source, bool curState, psMaskType maskVal);
    110114bool            psphotDeblendSatstars (psArray *sources, psMetadata *recipe);
    111 bool            psphotSourceSize (pmReadout *readout, psArray *sources, psMetadata *recipe);
     115bool            psphotSourceSize (pmReadout *readout, psArray *sources, psMetadata *recipe, long first);
    112116
    113117bool            psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal);
    114118
    115 bool            psphotExtendedSources (pmReadout *readout, psArray *sources, psMetadata *recipe, psMaskType maskVal);
    116119bool            psphotPSFConvModel (pmSource *source, psMetadata *recipe, psMaskType maskVal);
    117120psKernel       *psphotKernelFromPSF (pmSource *source, int nPix);
Note: See TracChangeset for help on using the changeset viewer.