IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2010, 9:17:17 AM (16 years ago)
Author:
eugene
Message:

build works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.stack.20100120/src/psphotChoosePSF.c

    r26688 r26691  
    1010    psAssert (recipe, "missing recipe?");
    1111
    12     int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
     12    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
    1313    psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
    1414
     
    2828    bool status;
    2929
    30     // do not generate a PSF if we already were supplied one
    31     if (psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF")) {
    32         psLogMsg ("psphot", PS_LOG_DETAIL, "psf model supplied for input file %d", i);
    33         return true;
    34     }
    35 
    3630    psTimerStart ("psphot.choose.psf");
    3731
     
    4236    pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
    4337    psAssert (readout, "missing readout?");
     38
     39    // do not generate a PSF if we already were supplied one
     40    if (psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF")) {
     41        psLogMsg ("psphot", PS_LOG_DETAIL, "psf model supplied for input file %d", index);
     42        return true;
     43    }
    4444
    4545    pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS");
     
    350350
    351351    // save PSF on readout->analysis
    352     if (!psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_PTR, "psphot psf model", psf)) {
     352    if (!psMetadataAddPtr (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot psf model", psf)) {
    353353        psError (PSPHOT_ERR_UNKNOWN, false, "problem saving sources on readout");
    354354        return false;
Note: See TracChangeset for help on using the changeset viewer.