- Timestamp:
- Feb 10, 2010, 3:02:06 PM (16 years ago)
- Location:
- branches/eam_branches/20091201/ppViz/src/ppVizPattern
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppVizPatternLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppViz/src/ppVizPattern
- Property svn:ignore
-
old new 1 ppVizPSF2 1 Makefile.in 3 ppVizPSFVersionDefinitions.h4 2 .deps 5 3 Makefile 4 ppVizPattern 5 ppVizPatternVersionDefinitions.h
-
- Property svn:ignore
-
branches/eam_branches/20091201/ppViz/src/ppVizPattern/ppVizPatternLoop.c
r26842 r26847 15 15 { 16 16 pmConfig *config = data->config; // Configuration data 17 pmFPAfile *input = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.INPUT", 0); // File with PSF 17 pmFPAfile *input = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.INPUT", 0); // Input file 18 pmFPAfile *output = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.CHIP", 0); // Output file 18 19 19 20 pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy … … 48 49 return false; 49 50 } 50 if (!readout->data_exists) { 51 // Need to generate an image even if there's nothing in this readout, so chip-mosaicked image 52 // is filled in. 53 if (!readout->data_exists && !cell->data_exists && !chip->data_exists) { 51 54 continue; 52 55 } … … 100 103 return false; 101 104 } 105 106 // Blow away bias sections to prevent warnings 107 psMetadataItem *biassec = psMetadataLookup(cell->concepts, "CELL.BIASSEC"); // Bias section 108 psFree(biassec->data.list); 109 biassec->data.list = psListAlloc(NULL); 102 110 } 103 111 // Cell … … 107 115 } 108 116 } 117 118 pmChip *outChip = pmFPAfileThisChip(config->files, view, "PPVIZPATTERN.CHIP"); 119 if (!outChip->hdu && !outChip->parent->hdu) { 120 const char *name = psMetadataLookupStr(NULL, chip->parent->concepts, "FPA.OBS"); // Name of FPA 121 pmFPAAddSourceFromView(outChip->parent, name, view, output->format); 122 } 123 if (!pmChipMosaic(outChip, chip, true, MASK_BAD)) { 124 psError(PS_ERR_UNKNOWN, false, "Unable to mosaic chip."); 125 return false; 126 } 127 109 128 // Chip 110 129 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
Note:
See TracChangeset
for help on using the changeset viewer.
