IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2009, 2:31:20 PM (17 years ago)
Author:
Paul Price
Message:

Cleaning up. Had trouble getting the output photometry file written out, but works now.

File:
1 edited

Legend:

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

    r21360 r21524  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-06 01:37:17 $
     8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     
    1414#define PP_SUB_H
    1515
    16 #ifdef HAVE_CONFIG_H
    17 #include <config.h>
    18 #endif
    19 
    20 #include <stdio.h>
    21 #include <string.h>
    2216#include <pslib.h>
    2317#include <psmodules.h>
    24 #include <psphot.h>
    25 #include <ppStats.h>
    2618
    2719/// @addtogroup ppSub
     
    3224/// Setup the arguments parsing
    3325bool ppSubArgumentsSetup(int argc, char *argv[], ///< Command-line arguments
    34                         pmConfig *config    ///< Configuration
     26                        pmConfig *config    ///< Configuration
    3527    );
    3628
     
    5345    );
    5446
    55 /// generate (if needed) and set or update the masks for input and reference images
    56 bool ppSubSetMasks (pmConfig *config,     ///< Configuration
    57                     const pmFPAview *view ///< View of active readout
     47/// Generate (if needed) and set or update the masks for input and reference images
     48bool ppSubSetMasks(pmConfig *config,     ///< Configuration
     49                   const pmFPAview *view ///< View of active readout
    5850    );
    5951
    60 /// Generate the PSF-matching kernel and convolve the images as needed.  Most of this function
    61 /// involves looking up the parameters in the recipe and supplying them to the function
    62 /// pmSubtractionMatch()
    63 bool ppSubMatchPSFs (pmConfig *config,    ///< Configuration
    64                      const pmFPAview *view ///< View of active readout
     52/// Generate the PSF-matching kernel and convolve the images as needed.  Most of this function involves
     53/// looking up the parameters in the recipe and supplying them to the function pmSubtractionMatch()
     54bool ppSubMatchPSFs(pmConfig *config,    ///< Configuration
     55                    const pmFPAview *view ///< View of active readout
    6556    );
    6657
    67 /// generate the output readout and pass the kernel info to the header
    68 bool ppSubDefineOutput(pmConfig *config,          ///< Configuration
    69                        const pmFPAview *view ///< View of active readout
     58/// Generate the output readout and pass the kernel info to the header
     59bool ppSubDefineOutput(pmConfig *config, ///< Configuration
     60                       const pmFPAview *view ///< View of active readout
    7061    );
    7162
    72 /// Calculate the variance factor for the output image based on the input images
    73 bool ppSubVarianceFactors(pmConfig *config,       ///< Configuration
    74                           psMetadata *stats,    ///< Statistics, for output
    75                           const pmFPAview *view ///< View of active readout
    76     );
    77 
    78 /// Photometry stage 1: measure the PSF from the minuend image
    79 bool ppSubMakePSF(pmConfig *config,       ///< Configuration
    80                   const pmFPAview *view ///< View of active readout
     63/// Photometry stage 1: measure the PSF from the minuend image
     64bool ppSubMakePSF(pmConfig *config,       ///< Configuration
     65                  const pmFPAview *view ///< View of active readout
    8166    );
    8267
    8368/// Perform the actual image subtraction, update output concepts
    84 bool ppSubReadoutSubtract(pmConfig *config,       ///< Configuration
    85                           const pmFPAview *view ///< View of active readout
     69bool ppSubReadoutSubtract(pmConfig *config,       ///< Configuration
     70                          const pmFPAview *view ///< View of active readout
    8671    );
    8772
    8873
    8974/// Photometry stage 2: find and measure sources on the subtracted image
    90 bool ppSubReadoutPhotometry(pmConfig *config,     ///< Configuration
    91                             psMetadata *stats,    ///< Statistics, for output
    92                             const pmFPAview *view ///< View of active readout
     75bool ppSubReadoutPhotometry(pmConfig *config,     ///< Configuration
     76                            psMetadata *stats,    ///< Statistics, for output
     77                            const pmFPAview *view ///< View of active readout
    9378    );
    9479
    9580/// Renormalize, update headers and generate JPEGs
    96 bool ppSubReadoutUpdate(pmConfig *config,         ///< Configuration
    97                         const pmFPAview *view ///< View of active readout
     81bool ppSubReadoutUpdate(pmConfig *config, ///< Configuration
     82                        psMetadata *stats, ///< Statistics for output, or NULL
     83                        const pmFPAview *view ///< View of active readout
    9884    );
    9985
     
    10793    );
    10894
    109 /// Generate and Set the masks if needed
    110 bool ppSubSetMasks (
    111     pmConfig *config,                   ///< Configuration
    112     const pmFPAview *view               ///< view to readout
    113     );
    114 
    115 /// Renormalize readout for peak pixels
    116 bool ppSubReadoutRenormPixels (
    117     pmConfig *config,                   ///< Configuration
    118     psMetadata *recipe,                         ///< Recipe
    119     pmReadout *readout                  ///< Readout
    120     );
    121 
    122 /// Renormalize readout for photometry analysis
    123 bool ppSubReadoutRenormPhot (
    124     pmConfig *config,                   ///< Configuration
    125     psMetadata *recipe,                         ///< Recipe
    126     pmReadout *readout                  ///< Readout
    127     );
    12895
    12996// Copy every instance of a single keyword from one metadata to another
Note: See TracChangeset for help on using the changeset viewer.