IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2008, 6:04:30 PM (18 years ago)
Author:
Paul Price
Message:

Need to apply variance factor when reading in pre-convolved images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r19475 r19484  
    106106            }
    107107            psFitsClose(fits);
     108
     109            // Add in variance factor
     110            pmSubtractionKernels *kernels = psMetadataLookupPtr(NULL, output->analysis,
     111                                                                PM_SUBTRACTION_ANALYSIS_KERNELS); // Kernels
     112            float vf = pmSubtractionVarianceFactor(kernels, 0.0, 0.0, false); // Variance factor
     113            psMetadataItem *vfItem = psMetadataLookup(output->parent->concepts, "CELL.VARFACTOR");
     114            if (!isfinite(vf)) {
     115                vf = 1.0;
     116            }
     117            if (isfinite(vfItem->data.F32)) {
     118                vfItem->data.F32 *= vf;
     119            } else {
     120                vfItem->data.F32 = vf;
     121            }
    108122        }
    109123
Note: See TracChangeset for help on using the changeset viewer.