Changeset 28510 for trunk/psLib/src/fits/psFitsTable.c
- Timestamp:
- Jun 25, 2010, 2:42:37 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsTable.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsTable.c
r28507 r28510 69 69 if (hdutype == IMAGE_HDU) { 70 70 // It could be an empty table 71 long size = 0; // Size of 'table'72 if (fits_get_ num_rows(fits->fd, &size, &status)) {73 psFitsError(status, true, "Unable to determine size oftable.");71 int naxis = 0; // Dimensions of image 72 if (fits_get_img_dim(fits->fd, &naxis, &status) != 0) { 73 psFitsError(status, true, "Unable to determine dimension for table."); 74 74 return false; 75 75 } 76 if ( size!= 0) {76 if (naxis != 0) { 77 77 psFitsError(PS_ERR_BAD_FITS, true, "Current FITS HDU is not a table."); 78 78 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
