IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18421


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!

Location:
trunk/psLib/src/fits
Files:
3 edited

Legend:

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

    r17587 r18421  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-05-08 21:40:25 $
     9 *  @version $Revision: 1.46 $ $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
     
    7979                                                    { "ZEXTEND",  "EXTEND" },
    8080                                                    { "ZBLOCKED", "BLOCKED"},
    81                                                     { "ZPCOUNT",  "PCOUNT" },
    82                                                     { "ZGCOUNT",  "GCOUNT" },
     81                                                    //                                                    { "ZPCOUNT",  "PCOUNT" },
     82                                                    //                                                    { "ZGCOUNT",  "GCOUNT" },
    8383                                                    { "ZHECKSUM", "CHECKSUM"},
    8484                                                    { "ZDATASUM", "DATASUM" },
  • trunk/psLib/src/fits/psFitsImage.c

    r18420 r18421  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-07-04 03:10:36 $
     9 *  @version $Revision: 1.34 $ $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
     
    785785    }
    786786
     787    // This forces a re-scan of the header to ensure everything's kosher.  We found this occassionally
     788    // necessary for compressed images, which are tables, so perhaps it helps here too.  I guess it can't
     789    // hurt.
     790    ffrdef(fits->fd, &status);
     791    if (psFitsError(status, true, "Could not re-scan HDU.")) {
     792        goto UPDATE_FAIL;
     793    }
     794
    787795    return true;
    788796
  • 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.