IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2010, 5:01:05 PM (16 years ago)
Author:
eugene
Message:

updates relative to 20091201, fixes for all psphot variants

Location:
branches/eam_branches/psphot.stack.20100120
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.stack.20100120

  • branches/eam_branches/psphot.stack.20100120/src/psphotLoadPSF.c

    r26691 r26748  
    11# include "psphotInternal.h"
    22
     3// NOTE : pmPSF_IO.c functions must load the psf model onto the chip->analysis metadata because
     4// the I/O operation likely occurs before the readout exists.  This implementation assumes that
     5// a single psf model is valid for the entire set of readouts (not valid for a time series of readouts)
     6
     7// XXX for now (2010.01.27), the supporting programs do not define multiple PSPHOT.PSF.LOAD
     8// files to go with multiple PSPHOT.INPUT files.  as a result, the implementation below is
     9// currently going to work for the case of a single input file, but will fail if we try with a
     10// stack of images.
     11
    312// load an externally supplied psf model
    4 bool psphotLoadPSFReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe) {
     13bool psphotLoadPSFReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index) {
    514
    615    bool status;
     
    2534    }
    2635
    27     if (!psphotPSFstats (readout, recipe, psf)) {
     36    if (!psphotPSFstats (readout, psf)) {
    2837        psAbort("cannot measure PSF shape terms");
    2938    }
     
    4453    bool status = false;
    4554
    46     // select the appropriate recipe information
    47     psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
    48     psAssert (recipe, "missing recipe?");
    49 
    50     // XXX PSPHOT.PSF.LOAD vs PSPHOT.INPUT??
     55    // XXX PSPHOT.PSF.LOAD vs PSPHOT.INPUT -- see note at top
    5156    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
    5257    psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
     
    5661
    5762        // Generate the mask and weight images, including the user-defined analysis region of interest
    58         if (!psphotLoadPSFReadout (config, view, "PSPHOT.PSF.LOAD", i, recipe)) {
     63        if (!psphotLoadPSFReadout (config, view, "PSPHOT.PSF.LOAD", i)) {
    5964            psError (PSPHOT_ERR_CONFIG, false, "failed to load PSF model for PSPHOT.PSF.LOAD entry %d", i);
    6065            return false;
Note: See TracChangeset for help on using the changeset viewer.