IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 13, 2007, 12:04:15 PM (19 years ago)
Author:
Paul Price
Message:

No HDU doesn't mean an error (if we have a FITS file), but it means we
simply weren't given the file that contains that HDU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsLoop.c

    r13795 r13796  
    8585        return PS_EXIT_SUCCESS;
    8686    }
     87    pmHDU *hdu = pmHDUFromCell(cell); // HDU for cell
     88    if (!hdu || hdu->blankPHU) {
     89        if (fits) {
     90            // No HDU means there's no data in this cell
     91            return PS_EXIT_SUCCESS;
     92        } else {
     93            psError PS_ERR_UNKNOWN, false, "Can't find HDU for cell\n");
     94            return PS_EXIT_CONFIG_ERROR;
     95        }
     96    }
    8797
    8898    // Cell-level results
     
    115125        // Nothing further to do --- don't want to waste our time reading the data
    116126        goto cellDone;
    117     }
    118 
    119     pmHDU *hdu = pmHDUFromCell(cell); // HDU for cell
    120     if (!hdu || hdu->blankPHU) {
    121         psError (PS_ERR_UNKNOWN, false, "trouble finding HDU for cell\n");
    122         psFree(cellResults);
    123         return PS_EXIT_CONFIG_ERROR;
    124127    }
    125128
Note: See TracChangeset for help on using the changeset viewer.