IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2005, 2:57:14 PM (21 years ago)
Author:
Paul Price
Message:

Importing from PAP cvs tree again. This will now be the working tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacCombine.c

    r3673 r5743  
    1010float stacCombineMean(psVector *values, // Values for which to take the mean
    1111                      psVector *errors, // Errors in the values
    12                       psVector *masks   // Masks for the values, 0 = don't use, 1 = use
     12                      psVector *masks   // Masks for the values, 1 = don't use, 0 = use
    1313    )
    1414{
     
    149149                    }
    150150                }
    151            
     151               
    152152                float average = stacCombineMean(pixels, deltas, mask); // Combined value
     153
     154                // We set the value BEFORE the rejection iteration because not all pixels that we reject
     155                // here will be rejected in the final cut.
     156                (*combined)->data.F32[y][x] = average;
    153157
    154158#ifdef TESTING
     
    188192                }
    189193           
    190                 (*combined)->data.F32[y][x] = average;
    191 
    192194            } // Pixels of interest
    193195
     
    201203    sprintf(chiName,"chi2_%d.fits",iteration);
    202204    psFits *chiFile = psFitsAlloc(chiName);
    203     if (!psFitsWriteImage(chiFile, NULL, chi2 , 0, NULL)) {
     205    if (!psFitsWriteImage(chiFile, NULL, chi2 , 0)) {
    204206        psErrorStackPrint(stderr, "Unable to write image: %s\n", chiName);
    205207    }
Note: See TracChangeset for help on using the changeset viewer.