00001 /* @file pmFlatNormalize.h 00002 * @brief Normalize flat-field measurements 00003 * 00004 * @author Paul Price, IfA 00005 * 00006 * @version $Revision: 1.6 $ $Name: $ 00007 * @date $Date: 2007/01/24 02:54:15 $ 00008 * Copyright 2004-2006 Institute for Astronomy, University of Hawaii 00009 */ 00010 00011 #ifndef PM_FLAT_NORMALIZE_H 00012 #define PM_FLAT_NORMALIZE_H 00013 00014 /// @addtogroup detrend Detrend Creation and Application 00015 /// @{ 00016 00017 #include <pslib.h> 00018 00019 /// Normalize flat-field measurements 00020 /// 00021 /// 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 00022 /// the i-th chip, s_j is the flux of the source in the j-th integration. An initial guess for the chip gains 00023 /// might be helpful, but is not necessary. The matrix of background measurements contains the background for 00024 /// the flat fields used in the combination, as a function of exposure (rows) and chip (columns). The 00025 /// exposure fluxes and chip gains are modified upon return with the solved values. Returns true if the 00026 /// solution converged. 00027 bool pmFlatNormalize(psVector **expFluxesPtr, ///< Flux in each exposure, or NULL; modified 00028 psVector **chipGainsPtr, ///< Initial guess of the chip gains or NULL; modified 00029 const psImage *bgMatrix ///< Background measurements: rows are exposures, cols are chips 00030 ); 00031 00032 /// @} 00033 #endif
1.5.1