IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2008, 9:57:41 AM (18 years ago)
Author:
Paul Price
Message:

Check was unnecessary since we are setting bitpix ourselves.

File:
1 edited

Legend:

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

    r16676 r16934  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-02-27 00:49:49 $
     9 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-03-11 19:57:41 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    661661    fits_get_img_param(fits->fd, 3, &fileBitpix, &naxis, nAxes, &status);
    662662
    663     //check to see if the HDU has the same datatype
    664     if (bitPix != fileBitpix) {
    665         char* fitsTypeStr;
    666         char* imageTypeStr;
    667         PS_TYPE_NAME(fitsTypeStr, fileBitpix);
    668         PS_TYPE_NAME(imageTypeStr, input->type.type);
    669         psError(PS_ERR_IO, true, _("Can not update a %s image given a %s image."), fitsTypeStr, imageTypeStr);
    670         psFree(diskImage);
    671         return false;
    672     }
    673 
    674663    //check if the HDU has the z-plane requested
    675664    if (z >= nAxes[2]) {
Note: See TracChangeset for help on using the changeset viewer.