IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19194


Ignore:
Timestamp:
Aug 25, 2008, 12:43:24 PM (18 years ago)
Author:
Paul Price
Message:

Adding output for target PSF.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

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

    r19017 r19194  
    350350    }
    351351
     352    if (havePSFs) {
     353        pmFPAfile *targetPSF = pmFPAfileDefineOutput(config, output->fpa, "PPSTACK.TARGET.PSF");
     354        if (!targetPSF) {
     355            psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.TARGET.PSF"));
     356            return false;
     357        }
     358        if (targetPSF->type != PM_FPA_FILE_PSF) {
     359            psError(PS_ERR_IO, true, "PPSTACK.TARGET.PSF is not of type PSF");
     360            return false;
     361        }
     362    }
     363
    352364    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe for ppSim
    353365    if (!recipe) {
  • trunk/ppStack/src/ppStackLoop.c

    r19172 r19194  
    2020
    2121// Files required in preparation for convolution
    22 static char *prepareFiles[] = { "PPSTACK.INPUT.PSF", "PPSTACK.INPUT.SOURCES", NULL };
     22static char *prepareFiles[] = { "PPSTACK.INPUT.PSF", "PPSTACK.INPUT.SOURCES", "PPSTACK.TARGET.PSF", NULL };
    2323
    2424// Files required for the convolution
     
    349349            return false;
    350350        }
     351
     352        pmChip *outChip = pmFPAviewThisChip(view, output->fpa); // Output chip
     353        psMetadataAddPtr(outChip->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN,
     354                         "Target PSF", targetPSF);
    351355
    352356        if (haveSources) {
Note: See TracChangeset for help on using the changeset viewer.