Changeset 6311 for trunk/psphot/src/psphotImageLoop.c
- Timestamp:
- Feb 2, 2006, 1:30:35 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotImageLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotImageLoop.c
r6117 r6311 5 5 bool status; 6 6 ppImageLoadDepth imageLoadDepth; 7 char filename[1024];8 7 9 8 // determine the load depth … … 27 26 } 28 27 29 char *outputRoot = psMetadataLookupPtr (&status, config->arguments, "-output");30 if (!status) psAbort ("psphot", "output file not specified");31 32 int Nout = 0;33 28 for (int i = 0; i < file->fpa->chips->n; i++) { 34 29 pmChip *chip = file->fpa->chips->data[i]; // Chip of interest in input image … … 53 48 } 54 49 50 // XXX optional mask and weight input image should be loaded here? 51 // this sets the weight map and basic mask applying CELL.BAD and CELL.SATURATION 55 52 pmCellSetWeights(cell); 56 53 … … 58 55 pmCellSetMask (cell, config->recipe); 59 56 60 61 57 // process each of the readouts 62 58 for (int k = 0; k < cell->readouts->n; k++) { 63 59 pmReadout *readout = cell->readouts->data[k]; // Readout of interest in input image 64 60 65 // psphotSaveImage (NULL, readout->image, "image.fits"); 66 // psphotSaveImage (NULL, readout->weight, "weight.fits"); 67 // psphotSaveImage (NULL, readout->mask, "mask.fits"); 61 // run a single-model test if desired 62 psphotModelTest (readout, config->arguments, config->recipe); 68 63 69 64 psphotReadout (readout, config->recipe); 70 71 // XXX EAM : temporarily write out only CMF with fixed extension 72 sprintf (filename, "%s.%02d.cmf", outputRoot, Nout); 73 psMetadata *header = pmReadoutGetHeader (readout); 74 75 psArray *sources = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.SOURCES"); 76 77 pmSourcesWriteCMF (sources, filename, header); 78 Nout++; 65 psphotOutput (readout, config->arguments); 79 66 } 80 67 }
Note:
See TracChangeset
for help on using the changeset viewer.
