- Timestamp:
- Dec 24, 2013, 1:28:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bills_branches/bills_201312/psphot/src/psphotFullForceSummary.c
r36407 r36410 140 140 psFree(outputFPA); // Drop reference 141 141 if (!output) { 142 psError(psErrorCodeLast(), false, _("Unable to generate output file from P PSTACK.OUTPUT"));142 psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.OUTPUT")); 143 143 return false; 144 144 } … … 183 183 return NULL; 184 184 } 185 #ifdef notdef186 pmHDU *lastHDU = NULL; // Last HDU updated187 #endif188 185 189 186 // files associated with the science image … … 196 193 197 194 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 198 psLogMsg ("psphotFullForceSummary", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);195 // psLogMsg ("psphotFullForceSummary", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 199 196 if (! chip->process || ! chip->file_exists) { continue; } 200 197 … … 233 230 // there is now only a single chip (multiple readouts?). loop over it and process 234 231 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 235 psLogMsg ("psphotFullForceSummary", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);232 // psLogMsg ("psphotFullForceSummary", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 236 233 237 234 // process each of the readouts 238 235 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 239 psLogMsg ("psphotFullForceSummary", 6, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);236 // psLogMsg ("psphotFullForceSummary", 6, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 240 237 if (! readout->data_exists) { continue; } 241 238 242 #ifdef notdef243 pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell);244 if (hdu && hdu != lastHDU) {245 // XXX: need to do this246 // psphotVersionHeaderFull(hdu->header);247 lastHDU = hdu;248 }249 #endif250 239 if (!psphotFullForceSummaryReadout(config, view)) { 251 240 ESCAPE ("failure in psphotFullForceSummaryReadout"); … … 257 246 258 247 259 // If these keywords are not set we get a warning message on output. 248 // If these keywords are not set we get a warning message on output. Since we are not copying the input header 249 // and do not have an image pmFPA stuff doesn't have values for these 250 // XXX: What other keywords and concepts should be set (or copied)? 260 251 int numCols = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS1"); 261 252 int numRows = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS2"); 262 253 psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS1", PS_META_REPLACE, "", numCols); 263 254 psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS2", PS_META_REPLACE, "", numRows); 264 // XXX: What other keywords and concepts should be set (or copied)? 255 256 // XXX: Also add psphot version information 265 257 266 258 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed pmFPAfileIOChecks for FPA in psphot."); … … 270 262 271 263 psFree (view); 264 272 265 return true; 273 266 }
Note:
See TracChangeset
for help on using the changeset viewer.
