IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2014, 1:05:19 PM (12 years ago)
Author:
bills
Message:

Fix bug where psphotStack used the wrong background model to comput the
sources' sky values.
Fix is to upgrade the functions that get the background model to take the
index of the input. Changed psphotMagnitudesReadout to pass in the index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMagnitudes.c

    r34404 r37590  
    3838        psAssert (psf, "missing psf?");
    3939
    40         if (!psphotMagnitudesReadout (config, recipe, view, readout, sources, psf)) {
     40        if (!psphotMagnitudesReadout (config, recipe, view, readout, sources, psf, i)) {
    4141            psError (PSPHOT_ERR_CONFIG, false, "failed to measure magnitudes for %s entry %d", filerule, i);
    4242            return false;
     
    4646}
    4747
    48 bool psphotMagnitudesReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, pmReadout *readout, psArray *sources, pmPSF *psf) {
     48bool psphotMagnitudesReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, pmReadout *readout, psArray *sources, pmPSF *psf, int index) {
    4949
    5050    bool status = false;
     
    6565
    6666    // if backModel or backStdev are missing, the values of sky and/or skyErr will be set to NAN
    67     pmReadout *backModel = psphotSelectBackground (config, view);
    68     pmReadout *backStdev = psphotSelectBackgroundStdev (config, view);
     67    pmReadout *backModel = psphotSelectBackground (config, view, index);
     68    pmReadout *backStdev = psphotSelectBackgroundStdev (config, view, index);
    6969
    7070    // bit-masks to test for good/bad pixels
Note: See TracChangeset for help on using the changeset viewer.