Changeset 16826


Ignore:
Timestamp:
06/13/13 17:11:59 (11 years ago)
Author:
lyard
Message:
added 0 length files handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsCompressor.cc

    r16820 r16826  
    11251125        setHeaderKey(HeaderEntry("PCOUNT", heapSize, "size of special data area"));
    11261126    }
     1127    else
     1128    {
     1129        setHeaderKey(HeaderEntry("NAXIS1", _rowWidth, "width of table in bytes"));
     1130        setHeaderKey(HeaderEntry("NAXIS2", 0, ""));
     1131        setHeaderKey(HeaderEntry("TFIELDS", _columns.size(), "number of fields in each row"));
     1132        setHeaderKey(HeaderEntry("PCOUNT", 0, "size of special data area"));
     1133    }
    11271134    writeHeader(true);
    11281135    ostringstream str;
    11291136    str << _checksum.val();
     1137
    11301138    setHeaderKey(HeaderEntry("DATASUM", str.str(), ""));
    11311139    addHeaderChecksum(_checksum);
Note: See TracChangeset for help on using the changeset viewer.