IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2011, 9:02:13 AM (15 years ago)
Author:
eugene
Message:

major re-work of psphotStackReadout to be more consistent with psphotReadout; psphotRadialApertures now assumes the 0 element is the unconvolved version; for the convolved versions, the vector of target psfs is saved as STACK.PSF.FWHM.VALUES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src/psphot.h

    r32299 r32322  
    377377    bool convolve;                      // Convolve images?
    378378    psphotStackConvolveSource convolveSource;
    379     // psArray *convImages, *convMasks, *convVariances; // Filenames for the temporary convolved images
    380 
    381     // bool matchZPs;                      // Adjust relative fluxes based on transparency analysis?
    382     // bool photometry;                    // Perform photometry?
    383     // psMetadata *stats;                  // Statistics for output
    384     // FILE *statsFile;                    // File to which to write statistics
    385     // psArray *origImages, *origMasks, *origVariances; // Filenames of the original images
    386     // psArray *origCovars;                // Original covariances matrices
    387     // int quality;                        // Bad data quality flag
    388379
    389380    // Prepare
     
    392383    psVector *inputMask;                // Mask for inputs
    393384
    394     float targetSeeing;                 // Target seeing FWHM
     385    psVector *targetSeeing;             // Target seeing FWHMs
    395386    psArray *sourceLists;               // Individual lists of sources for matching
    396387    psVector *norm;                     // Normalisation for each image
    397388    psArray *psfs;
    398 
    399     // psVector *exposures;                // Exposure times
    400     // float sumExposure;                  // Sum of exposure times
    401     // float zp;                           // Zero point for output
    402     // psVector *inputMask;                // Mask for inputs
    403     // psArray *sources;                   // Matched sources
    404389
    405390    // Convolve
     
    407392    psArray *regions;                   // PSF-matching regions --- required in the stacking
    408393    psVector *matchChi2;                // chi^2 for stamps from matching
    409     psVector *weightings;               // Combination weightings for images (1/noise^2)
    410     // psArray *cells;                     // Cells for convolved images --- a handle for reading again
    411     // int numCols, numRows;               // Size of image
    412     // psArray *convCovars;                // Convolved covariance matrices
    413 
    414     // Combine initial
    415     // pmReadout *outRO;                   // Output readout
    416     // pmReadout *expRO;                   // Exposure readout
    417     // psArray *inspect;                   // Array of arrays of pixels to inspect
    418 
    419     // Rejection
    420     // psArray *rejected;                  // Rejected pixels
    421394} psphotStackOptions;
    422395
     
    425398bool psphotStackMatchPSFsReadout (pmConfig *config, const pmFPAview *view, psphotStackOptions *options, int index);
    426399bool psphotStackMatchPSFsPrepare (pmConfig *config, const pmFPAview *view, psphotStackOptions *options, int index);
    427 bool psphotStackMatchPSFsNext (bool *smoothAgain, pmConfig *config, const pmFPAview *view, const char *filerule, int lastSize);
    428 bool psphotStackMatchPSFsNextReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, psVector *fwhmValues, int lastSize);
     400
     401bool psphotStackMatchPSFsNext (pmConfig *config, const pmFPAview *view, const char *filerule, int lastSize);
     402bool psphotStackMatchPSFsNextReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, int lastSize);
     403int psphotStackMatchPSFsEntries (pmConfig *config, const pmFPAview *view, const char *filerule);
    429404
    430405// psphotStackMatchPSFsUtils
    431 psVector *SetOptWidths (bool *optimum, psMetadata *recipe);
    432 pmReadout *makeFakeReadout(pmConfig *config, pmReadout *raw, psArray *sources, pmPSF *psf, psImageMaskType maskVal, int fullSize);
    433 bool rescaleData(pmReadout *readout, pmConfig *config, psphotStackOptions *options, int index);
    434 bool renormKernel(pmReadout *readout, psphotStackOptions *options, int index);
     406// psVector *SetOptWidths (bool *optimum, psMetadata *recipe);
     407// pmReadout *makeFakeReadout(pmConfig *config, pmReadout *raw, psArray *sources, pmPSF *psf, psImageMaskType maskVal, int fullSize);
     408// bool rescaleData(pmReadout *readout, pmConfig *config, psphotStackOptions *options, int index);
     409// bool renormKernel(pmReadout *readout, psphotStackOptions *options, int index);
    435410bool saveMatchData (pmReadout *readout, psphotStackOptions *options, int index);
    436411bool matchKernel(pmConfig *config, pmReadout *cnv, pmReadout *raw, psphotStackOptions *options, int index);
    437 bool dumpImageDiff(pmReadout *readoutConv, pmReadout *readoutFake, pmReadout *readoutRef, int index, char *rootname);
    438 bool dumpImage(pmReadout *readoutOut, pmReadout *readoutRef, int index, char *rootname);
    439 bool loadKernel (pmConfig *config, pmReadout *readoutCnv, psphotStackOptions *options, int index);
    440 
    441 pmPSF *psphotStackPSF(const pmConfig *config, int numCols, int numRows, const psArray *psfs, const psVector *inputMask);
     412// bool dumpImageDiff(pmReadout *readoutConv, pmReadout *readoutFake, pmReadout *readoutRef, int index, char *rootname);
     413// bool dumpImage(pmReadout *readoutOut, pmReadout *readoutRef, int index, char *rootname);
     414// bool loadKernel (pmConfig *config, pmReadout *readoutCnv, psphotStackOptions *options, int index);
     415
     416bool psphotStackRenormaliseVariance(const pmConfig *config, pmReadout *readout);
     417
     418bool psphotStackPSF(const pmConfig *config, psphotStackOptions *options);
    442419
    443420psphotStackOptions *psphotStackOptionsAlloc (int num);
     
    448425bool psphotCopySourcesReadout (pmConfig *config, const pmFPAview *view, const char *ruleOut, const char *ruleSrc, int index);
    449426
    450 bool psphotRadialApertures (pmConfig *config, const pmFPAview *view, const char *filerule);
    451 bool psphotRadialAperturesReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
     427bool psphotRadialApertures (pmConfig *config, const pmFPAview *view, const char *filerule, int entry);
     428bool psphotRadialAperturesReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, int entry);
    452429bool psphotRadialApertures_Threaded (psThreadJob *job);
    453430bool psphotRadialApertureSource (pmSource *source, psMetadata *recipe, psImageMaskType maskVal, const psVector *radMax, int entry);
     
    489466bool psphotKronIterate_Threaded (psThreadJob *job);
    490467
     468bool psphotStackObjectsSelectForAnalysis (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects);
     469
    491470#endif
Note: See TracChangeset for help on using the changeset viewer.