IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2008, 5:18:06 PM (18 years ago)
Author:
Paul Price
Message:

Putting in ffrdef in other places --- just in case!

File:
1 edited

Legend:

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

    r18144 r18421  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-06-16 21:40:06 $
     9 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-07-04 03:18:06 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    640640    psFree(colSpecs);
    641641
     642    // This forces a re-scan of the header to ensure everything's kosher.  We found this occassionally
     643    // necessary for compressed images, which are tables, so perhaps it helps here too.  I guess it can't
     644    // hurt.
     645    ffrdef(fits->fd, &status);
     646    if (psFitsError(status, true, "Could not re-scan HDU.")) {
     647        return false;
     648    }
     649
    642650    return true;
    643651}
     
    685693    psFree(iter);
    686694
     695    // This forces a re-scan of the header to ensure everything's kosher.  We found this occassionally
     696    // necessary for compressed images, which are tables, so perhaps it helps here too.  I guess it can't
     697    // hurt.
     698    ffrdef(fits->fd, &status);
     699    if (psFitsError(status, true, "Could not re-scan HDU.")) {
     700        return false;
     701    }
     702
    687703    return true;
    688704}
Note: See TracChangeset for help on using the changeset viewer.