Changeset 9614
- Timestamp:
- Oct 17, 2006, 10:49:10 AM (20 years ago)
- Location:
- trunk/psModules/src/detrend
- Files:
-
- 2 edited
-
pmFlatNormalize.c (modified) (1 diff)
-
pmFlatNormalize.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmFlatNormalize.c
r8815 r9614 13 13 // few with absolutely no trouble (it *is* over-constrained). For this reason, I'm putting the maximum number 14 14 // 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 17 17 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 19 bool pmFlatNormalize(psVector **expFluxesPtr, psVector **chipGainsPtr, const psImage *bgMatrix) 23 20 { 24 21 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 1 15 #ifndef PM_FLAT_NORMALIZE_H 2 16 #define PM_FLAT_NORMALIZE_H 3 17 4 #include "pslib.h"18 #include <pslib.h> 5 19 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. 28 bool 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 11 31 ); 12 32
Note:
See TracChangeset
for help on using the changeset viewer.
