IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9614


Ignore:
Timestamp:
Oct 17, 2006, 10:49:10 AM (20 years ago)
Author:
Paul Price
Message:

Documenting pmFlatNormalize

Location:
trunk/psModules/src/detrend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmFlatNormalize.c

    r8815 r9614  
    1313// few with absolutely no trouble (it *is* over-constrained).  For this reason, I'm putting the maximum number
    1414// of iterations and tolerance as preset values.
    15 #define MAXITER 10
    16 #define TOLERANCE 1e-3
     15#define MAXITER 10                      // Maximum number of iterations
     16#define TOLERANCE 1e-3                  // Minimum tolerance for convergance
    1717
    18 // Estimate the flat-field normalisation; return the source flux in each integration
    19 bool pmFlatNormalize(psVector **expFluxesPtr, // Flux in each exposure; modified for return
    20                      psVector **chipGainsPtr, // Initial guess of the chip gains; modified for return
    21                      const psImage *bgMatrix
    22                     )
     18
     19bool pmFlatNormalize(psVector **expFluxesPtr, psVector **chipGainsPtr, const psImage *bgMatrix)
    2320{
    2421    PS_ASSERT_PTR_NON_NULL(bgMatrix, false);
  • trunk/psModules/src/detrend/pmFlatNormalize.h

    r8397 r9614  
     1/// @file pmFlatNormalize.h
     2///
     3/// @brief Normalize flat-field measurements
     4///
     5/// @ingroup Detrend
     6///
     7/// @author Paul Price, IfA
     8///
     9/// @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2006-10-17 20:49:10 $
     11///
     12/// Copyright 2004-2006 Institute for Astronomy, University of Hawaii
     13///
     14
    115#ifndef PM_FLAT_NORMALIZE_H
    216#define PM_FLAT_NORMALIZE_H
    317
    4 #include "pslib.h"
     18#include <pslib.h>
    519
    6 // Normalise the flat-field measurements (f_ij = g_i s_j where f_ij is the flux recorded for chip i and
    7 // integration j, g_i is the gain for the i-th chip, s_j is the flux of the source in the j-th integration).
    8 bool pmFlatNormalize(psVector **expFluxesPtr, // Flux in each exposure; modified for return
    9                      psVector **chipGainsPtr, // Initial guess of the chip gains; modified for return
    10                      const psImage *bgMatrix
     20/// Normalise flat-field measurements
     21///
     22/// We have f_ij = g_i s_j where f_ij is the flux recorded for chip i and integration j, g_i is the gain for
     23/// the i-th chip, s_j is the flux of the source in the j-th integration.  An initial guess for the chip gains
     24/// might be helpful, but is not necessary.  The matrix of background measurements contains the background for
     25/// the flat fields used in the combination, as a function of exposure (rows) and chip (columns).  The
     26/// exposure fluxes and chip gains are modified upon return with the solved values.  Returns true if the
     27/// solution converged.
     28bool pmFlatNormalize(psVector **expFluxesPtr, ///< Flux in each exposure, or NULL; modified
     29                     psVector **chipGainsPtr, ///< Initial guess of the chip gains or NULL; modified
     30                     const psImage *bgMatrix ///< Background measurements: rows are exposures, cols are chips
    1131                    );
    1232
Note: See TracChangeset for help on using the changeset viewer.