IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28510


Ignore:
Timestamp:
Jun 25, 2010, 2:42:37 PM (16 years ago)
Author:
Paul Price
Message:

Previous solution didn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsTable.c

    r28507 r28510  
    6969    if (hdutype == IMAGE_HDU) {
    7070        // 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 of table.");
     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.");
    7474            return false;
    7575        }
    76         if (size != 0) {
     76        if (naxis != 0) {
    7777            psFitsError(PS_ERR_BAD_FITS, true, "Current FITS HDU is not a table.");
    7878            return false;
Note: See TracChangeset for help on using the changeset viewer.