IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2006, 2:49:01 PM (20 years ago)
Author:
Paul Price
Message:

pmFlatNormalize now normalizes the mean of the gains to unity. Removed external iteration control, since I'm somewhat confident that the system is stable. Fixed bug that produced memory errors if the number of iterations was odd (due to swapping pointers around). Output both flux and gain solutions.

File:
1 edited

Legend:

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

    r7179 r8397  
    66// Normalise the flat-field measurements (f_ij = g_i s_j where f_ij is the flux recorded for chip i and
    77// 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 // Return the source flux in each integration.
    9 psVector *pmFlatNormalize(bool *converge, // Did we converge?
    10                           psVector *chipGains, // Initial guess of the chip gains; modified for return
    11                           const psImage *fluxLevels, // Fluxes for each integration (row) and chip (col)
    12                           unsigned int maxIter, // Maximum number of iterations
    13                           float tolerance // Tolerance level before dying
    14                          );
     8bool 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
     11                    );
    1512
    1613#endif
Note: See TracChangeset for help on using the changeset viewer.