IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2013, 10:32:51 AM (13 years ago)
Author:
eugene
Message:

remove superfulous ppStats.h includes; generate output psf model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpParseCamera.c

    r35514 r35521  
    179179    }
    180180   
    181     /// XXX re-enable after sources work
    182     if (false && psMetadataLookupBool(&mdok, recipe, "PSF")) {
     181    if (psMetadataLookupBool(&mdok, recipe, "PSF")) {
    183182        // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
    184183        // psphotDefineFiles
    185         pmFPAfile *psphotInput = pmFPAfileDefineSkycell(config, NULL, "PSPHOT.INPUT");
     184        // XXX old : pmFPAfile *psphotInput = pmFPAfileDefineSkycell(config, NULL, "PSPHOT.INPUT");
     185        pmFPAfile *psphotInput = pmFPAfileDefineOutputForFormat(config, NULL, "PSPHOT.INPUT", skycell->cameraName, skycell->formatName);
    186186        if (!psphotInput) {
    187187            psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.INPUT"));
     
    189189        }
    190190        psphotInput->src = psMemIncrRefCounter(output->fpa);
    191         // specify the number of psphot input images
     191
     192        // specify the number of psphot input images (psphotReadout loops over all input images)
    192193        psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1);
    193194
    194         pmFPAfile *psphotInSources = pmFPAfileDefineSkycell(config, output->fpa, "PSPHOT.INPUT.CMF");
     195        // the input sources (read from the input astrometry file) are transformed (in pswarpLoop) to the readout->analysis
     196        // entries of the output file PSWARP.OUTPUT.SOURCES, associated with the main output pmFPAfile PSWARP.OUTPUT
     197
     198        // the PSPHOT.INPUT.CMF is used to supply those sources to psphot (specifically psphotLoadPSFSources). 
     199
     200        // pmFPAfile *psphotInSources = pmFPAfileDefineSkycell(config, output->fpa, "PSPHOT.INPUT.CMF");
     201        pmFPAfile *psphotInSources = pmFPAfileDefineOutputForFormat(config, output->fpa, "PSPHOT.INPUT.CMF", skycell->cameraName, skycell->formatName);
    195202        if (!psphotInSources) {
    196203            psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.INPUT.CMF"));
Note: See TracChangeset for help on using the changeset viewer.