Changeset 5371 for trunk/archive/scripts/src/phase2/pmFPAWrite.c
- Timestamp:
- Oct 18, 2005, 4:19:41 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/phase2/pmFPAWrite.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/pmFPAWrite.c
r5105 r5371 7 7 8 8 static bool writeHDU(psFits *fits, // FITS file to which to write 9 p _pmHDU *hdu // HDUto write9 pmPixelData *pixelData // Pixel data to write 10 10 ) 11 11 { 12 12 bool status = true; // Status of write, to return 13 for (int i = 0; i < hdu->pixels->n; i++) { 14 status &= psFitsWriteImage(fits, hdu->header, hdu->pixels->data[i], i); 13 for (int i = 0; i < pixelData->images->n; i++) { 14 status &= psFitsWriteImage(fits, pixelData->header, pixelData->images->data[i], i); 15 // XXX: Insert here the writing on mask and weight images 15 16 } 16 17 … … 46 47 pmCellOutgestConcepts(cell, db); 47 48 48 if (cell-> private && strlen(cell->private->extname) > 0) {49 status &= writeHDU(fits, cell-> private);49 if (cell->data && strlen(cell->data->extname) > 0) { 50 status &= writeHDU(fits, cell->data); 50 51 } 51 52 } 52 53 } 53 54 54 if (chip-> private && strlen(chip->private->extname) > 0) {55 status &= writeHDU(fits, chip-> private);55 if (chip->data && strlen(chip->data->extname) > 0) { 56 status &= writeHDU(fits, chip->data); 56 57 } 57 58 } … … 59 60 } 60 61 61 if (fpa-> private && strlen(fpa->private->extname) > 0) {62 status &= writeHDU(fits, fpa-> private);62 if (fpa->data && strlen(fpa->data->extname) > 0) { 63 status &= writeHDU(fits, fpa->data); 63 64 } 64 65
Note:
See TracChangeset
for help on using the changeset viewer.
