- Timestamp:
- May 6, 2013, 10:32:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpParseCamera.c
r35514 r35521 179 179 } 180 180 181 /// XXX re-enable after sources work 182 if (false && psMetadataLookupBool(&mdok, recipe, "PSF")) { 181 if (psMetadataLookupBool(&mdok, recipe, "PSF")) { 183 182 // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by 184 183 // 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); 186 186 if (!psphotInput) { 187 187 psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.INPUT")); … … 189 189 } 190 190 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) 192 193 psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1); 193 194 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); 195 202 if (!psphotInSources) { 196 203 psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.INPUT.CMF"));
Note:
See TracChangeset
for help on using the changeset viewer.
