IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2009, 11:55:34 AM (17 years ago)
Author:
eugene
Message:

re-factored ppSubReadout into a sequence of logical steps; defined convolved images as their own pmFPAfiles; switched to new psphot functions (psphotReadoutFindPSF and psphotReadoutMinimal); simplified mask and psphot visualization handling

File:
1 edited

Legend:

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

    r20611 r21257  
    11#ifndef PP_SUB_H
    22#define PP_SUB_H
     3
     4#ifdef HAVE_CONFIG_H
     5#include <config.h>
     6#endif
     7
     8#include <stdio.h>
     9#include <string.h>
     10#include <pslib.h>
     11#include <psmodules.h>
     12#include <psphot.h>
     13#include <ppStats.h>
    314
    415#define PPSUB_RECIPE "PPSUB"            /// Name of the recipe to use
     
    617/// Setup the arguments parsing
    718bool ppSubArgumentsSetup(int argc, char *argv[], ///< Command-line arguments
    8                     pmConfig *config    ///< Configuration
     19                        pmConfig *config    ///< Configuration
    920    );
    1021
     
    2738    );
    2839
     40/// generate (if needed) and set or update the masks for input and reference images
     41bool ppSubSetMasks (pmConfig *config,     ///< Configuration
     42                    const pmFPAview *view ///< View of active readout
     43    );
     44
     45/// Generate the PSF-matching kernel and convolve the images as needed.  Most of this function
     46/// involves looking up the parameters in the recipe and supplying them to the function
     47/// pmSubtractionMatch()
     48bool ppSubMatchPSFs (pmConfig *config,    ///< Configuration
     49                     const pmFPAview *view ///< View of active readout
     50    );
     51
     52/// generate the output readout and pass the kernel info to the header
     53bool ppSubDefineOutput(pmConfig *config,          ///< Configuration
     54                       const pmFPAview *view ///< View of active readout
     55    );
     56
     57/// Calculate the variance factor for the output image based on the input images
     58bool ppSubVarianceFactors(pmConfig *config,       ///< Configuration
     59                          psMetadata *stats,    ///< Statistics, for output
     60                          const pmFPAview *view ///< View of active readout
     61    );
     62
     63/// Photometry stage 1: measure the PSF from the minuend image
     64bool ppSubMakePSF(pmConfig *config,       ///< Configuration
     65                  const pmFPAview *view ///< View of active readout
     66    );
     67
     68/// Perform the actual image subtraction, update output concepts
     69bool ppSubReadoutSubtract(pmConfig *config,       ///< Configuration
     70                          const pmFPAview *view ///< View of active readout
     71    );
     72
     73
     74/// Photometry stage 2: find and measure sources on the subtracted image
     75bool ppSubReadoutPhotometry(pmConfig *config,     ///< Configuration
     76                            psMetadata *stats,    ///< Statistics, for output
     77                            const pmFPAview *view ///< View of active readout
     78    );
     79
     80/// Renormalize, update headers and generate JPEGs
     81bool ppSubReadoutUpdate(pmConfig *config,         ///< Configuration
     82                        const pmFPAview *view ///< View of active readout
     83    );
     84
    2985/// Higher-order background subtraction
    30 bool ppSubBackground(pmReadout *ro,     ///< Readout of interest
    31                      pmConfig *config,  ///< Configuration
     86bool ppSubBackground(pmConfig *config,  ///< Configuration
    3287                     const pmFPAview *view ///< View to readout
    3388    );
     
    3792    );
    3893
     94/// Generate and Set the masks if needed
     95bool ppSubSetMasks (
     96    pmConfig *config,                   ///< Configuration
     97    const pmFPAview *view               ///< view to readout
     98    );
     99
     100/// Renormalize readout for peak pixels
     101bool ppSubReadoutRenormPixels (
     102    pmConfig *config,                   ///< Configuration
     103    psMetadata *recipe,                         ///< Recipe
     104    pmReadout *readout                  ///< Readout
     105    );
     106
     107/// Renormalize readout for photometry analysis
     108bool ppSubReadoutRenormPhot (
     109    pmConfig *config,                   ///< Configuration
     110    psMetadata *recipe,                         ///< Recipe
     111    pmReadout *readout                  ///< Readout
     112    );
     113
     114// Copy every instance of a single keyword from one metadata to another
     115bool psMetadataCopySingle(psMetadata *target, psMetadata *source, const char *name);
    39116
    40117#endif
Note: See TracChangeset for help on using the changeset viewer.