IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2008, 6:12:42 PM (18 years ago)
Author:
Paul Price
Message:

Correcting stack variances for the imperfect convolution. Changed (again) the way the deviations are calculated; they're now straight chi2, which allows us to estimate how the variance factor needs to be changed in order to correct for it. Moving additional values into pmSubtractionKernels so that this can be calculated from a kernel that has been read in (very useful for debugging, also nice to have a record of the quality of the fit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionIO.c

    r19230 r19532  
    3232#define NAME_SOL1 "SOLUTION_1"          // Solution for convolving image 1
    3333#define NAME_SOL2 "SOLUTION_2"          // Solution for convolving image 2
     34#define NAME_MEAN "MEAN"                // Mean of chi^2 from stamps
     35#define NAME_RMS  "RMS"                 // RMS of chi^2 from stamps
     36#define NAME_NUMSTAMPS "NUMSTAMPS"      // Number of good stamps
    3437
    3538#define FALLBACK_EXTNAME "SUBTRACTION_KERNEL" // Fallback extension name
     
    159162            psMetadataAddVector(row, PS_LIST_TAIL, NAME_SOL2, 0, "Solution vector 2", kernel->solution2);
    160163        }
     164        psMetadataAddF32(row, PS_LIST_TAIL, NAME_MEAN,  0, "Mean of chi^2 from stamps", kernel->mean);
     165        psMetadataAddF32(row, PS_LIST_TAIL, NAME_RMS,  0, "RMS of chi^2 from stamps", kernel->rms);
     166        psMetadataAddF32(row, PS_LIST_TAIL, NAME_NUMSTAMPS,  0, "Number of good stamps", kernel->numStamps);
    161167    }
    162168    psFree(regions);
     
    167173    // CVS tags, used to identify the version of this file (in case incompatibilities are introduced)
    168174    psString cvsFile = psStringCopy("$RCSfile: pmSubtractionIO.c,v $");
    169     psString cvsRev  = psStringCopy("$Revision: 1.3 $");
    170     psString cvsDate = psStringCopy("$Date: 2008-08-27 02:54:44 $");
     175    psString cvsRev  = psStringCopy("$Revision: 1.4 $");
     176    psString cvsDate = psStringCopy("$Date: 2008-09-12 04:12:42 $");
    171177    psStringSubstitute(&cvsFile, NULL, "RCSfile: ");
    172178    psStringSubstitute(&cvsRev,  NULL, "Revision: ");
     
    338344        TABLE_LOOKUP(int, S32, numRows, NAME_ROWS);
    339345
     346        TABLE_LOOKUP(float, F32, mean,      NAME_MEAN);
     347        TABLE_LOOKUP(float, F32, rms,       NAME_RMS);
     348        TABLE_LOOKUP(int,   S32, numStamps, NAME_NUMSTAMPS);
     349
    340350        pmSubtractionKernels *kernels = pmSubtractionKernelsFromDescription(description, bg, mode);
    341351        kernels->numCols = numCols;
    342352        kernels->numRows = numRows;
     353        kernels->mean = mean;
     354        kernels->rms = rms;
     355        kernels->numStamps = numStamps;
    343356
    344357        bool mdok;                      // Status of MD lookup
Note: See TracChangeset for help on using the changeset viewer.