Changeset 12703
- Timestamp:
- Mar 30, 2007, 5:01:34 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO.c
r12696 r12703 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-03-3 0 21:12:56$5 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-03-31 03:01:34 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 445 445 bool pmChipReadObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 446 446 { 447 chip->data_exists = false; 447 448 for (int i = 0; i < chip->cells->n; i++) { 448 449 pmCell *cell = chip->cells->data[i]; 449 450 pmCellReadObjects (cell, view, file, config); 451 if (!cell->data_exists) continue; 452 chip->data_exists = true; 450 453 } 451 454 return true; … … 462 465 } 463 466 467 cell->data_exists = false; 464 468 for (int i = 0; i < cell->readouts->n; i++) { 465 469 pmReadout *readout = cell->readouts->data[i]; 466 470 pmReadoutReadObjects (readout, view, file, config); 471 if (!readout->data_exists) { 472 continue; 473 } 467 474 468 475 // load in the concept information for this cell … … 472 479 psWarning("Difficulty reading concepts for cell; attempting to proceed."); 473 480 } 474 475 481 cell->data_exists = true; 476 482 } … … 560 566 // advance to the IMAGE HEADER extension 561 567 if (hdu->header == NULL) { 562 psFitsMoveExtName (file->fits, headname); 568 // if the IMAGE header does not exist, we have no data for this view 569 if (!psFitsMoveExtName (file->fits, headname)) { 570 readout->data_exists = false; 571 psFree (headname); 572 psFree (dataname); 573 return true; 574 } 563 575 hdu->header = psFitsReadHeader (NULL, file->fits); 564 576 } … … 574 586 575 587 // advance to the table data extension 588 // since we have read the IMAGE header, the TABLE header should exist 576 589 if (!psFitsMoveExtName (file->fits, dataname)) { 577 590 psAbort("cannot find data extension %s in %s", dataname, file->filename);
Note:
See TracChangeset
for help on using the changeset viewer.
