Changeset 21363 for trunk/psModules/src/camera/pmHDUUtils.c
- Timestamp:
- Feb 5, 2009, 4:31:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDUUtils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDUUtils.c
r18554 r21363 18 18 19 19 for (int i = 0; i < fpa->chips->n; i++) { 20 pmChip *chip = fpa->chips->data[i];21 if (!chip) continue;22 if (chip->hdu) return chip->hdu;23 if (!chip->cells) continue;24 for (int j = 0; j < chip->cells->n; j++) {25 pmCell *cell = chip->cells->data[j];26 if (!cell) continue;27 if (cell->hdu) return cell->hdu;28 }20 pmChip *chip = fpa->chips->data[i]; 21 if (!chip) continue; 22 if (chip->hdu) return chip->hdu; 23 if (!chip->cells) continue; 24 for (int j = 0; j < chip->cells->n; j++) { 25 pmCell *cell = chip->cells->data[j]; 26 if (!cell) continue; 27 if (cell->hdu) return cell->hdu; 28 } 29 29 } 30 30 return NULL; … … 158 158 159 159 INDENT(fd, level + 1); 160 if (hdu-> weights) {161 fprintf(fd, " Weights:\n");162 for (long i = 0; i < hdu-> weights->n; i++) {163 psImage * weight = hdu->weights->data[i]; // Weightimage of interest160 if (hdu->variances) { 161 fprintf(fd, "Variances:\n"); 162 for (long i = 0; i < hdu->variances->n; i++) { 163 psImage *variance = hdu->variances->data[i]; // Variance image of interest 164 164 INDENT(fd, level + 2); 165 fprintf(fd, "%ld: %dx%d\n", i, weight->numCols, weight->numRows);165 fprintf(fd, "%ld: %dx%d\n", i, variance->numCols, variance->numRows); 166 166 } 167 167 } else { 168 fprintf(fd, "NO weights.\n");168 fprintf(fd, "NO variances.\n"); 169 169 } 170 170
Note:
See TracChangeset
for help on using the changeset viewer.
