Changeset 15651
- Timestamp:
- Nov 19, 2007, 12:22:18 PM (18 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 2 edited
-
ppMergeCombine.c (modified) (3 diffs)
-
ppMergeMask.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r15380 r15651 108 108 pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration 109 109 int cellNum = -1; // Cell number in the whole FPA 110 if (data->out->hdu) { 111 pmFPAUpdateNames(data->out, NULL, NULL); 112 } 110 113 pmFPAWrite(data->out, data->outFile, config->database, true, false); // Write header only 111 114 pmChip *chip; // Chip of interest … … 116 119 } 117 120 while ((chip = pmFPAviewNextChip(view, fpa, 1))) { 118 if (chip->hdu && chip->hdu->header) { 119 // Data will exist soon 120 chip->data_exists = true; 121 if (chip->hdu) { 122 pmFPAUpdateNames(data->out, chip, NULL); 123 if (chip->hdu->header) { 124 // Data will exist soon 125 chip->data_exists = true; 126 } 121 127 } 122 128 pmChipWrite(chip, data->outFile, config->database, true, false); // Write header only … … 124 130 while ((cell = pmFPAviewNextCell(view, fpa, 1))) { 125 131 cellNum++; 126 if (cell->hdu && cell->hdu->header) { 127 // Data will exist soon 128 chip->data_exists = true; 132 if (cell->hdu) { 133 pmFPAUpdateNames(data->out, chip, cell); 134 if (cell->hdu->header) { 135 // Data will exist soon 136 chip->data_exists = true; 137 } 129 138 } 130 139 pmCellWrite(cell, data->outFile, config->database, true); // Write header only -
trunk/ppMerge/src/ppMergeMask.c
r15611 r15651 85 85 86 86 pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration 87 if (fpaOut->hdu) { 88 pmFPAUpdateNames(fpaOut, NULL, NULL); 89 } 87 90 pmFPAWriteMask(fpaOut, data->outFile, config->database, true, false); // Write header only 88 91 pmChip *chipOut; // Output chip of interest 89 92 while ((chipOut = pmFPAviewNextChip(view, fpaOut, 1))) { 93 if (chipOut->hdu) { 94 pmFPAUpdateNames(fpaOut, chipOut, NULL); 95 } 90 96 pmChipWriteMask(chipOut, data->outFile, config->database, true, false); // Write header only 91 97 pmCell *cellOut; // Output cell of interest 92 98 while ((cellOut = pmFPAviewNextCell(view, fpaOut, 1))) { 99 if (cellOut->hdu) { 100 pmFPAUpdateNames(fpaOut, chipOut, cellOut); 101 } 93 102 pmCellWriteMask(cellOut, data->outFile, config->database, true); // Write header only 94 103
Note:
See TracChangeset
for help on using the changeset viewer.
