Changeset 4002


Ignore:
Timestamp:
05/05/08 14:18:52 (12 years ago)
Author:
melissa
Message:

Fixed timestamp parsing bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ZeissLSMReader.java

    r3965 r4002  
    352352 
    353353      put("TimeInterval", ras.readDouble()); 
    354  
    355354      ras.skipBytes(4); 
    356355      long scanInformationOffset = ras.readInt(); 
     
    412411 
    413412          for (int i=0; i<numNames; i++) { 
     413            if (in.getFilePointer() >= in.length() - 1) break; 
    414414            // we want to read until we find a null char 
    415415            StringBuffer sb = new StringBuffer(); 
     
    425425 
    426426      if (timeStampOffset != 0) { 
    427         in.seek(timeStampOffset + 4); 
    428         int numberOfStamps = in.readInt(); 
    429         for (int i=0; i<numberOfStamps; i++) { 
     427        if ((timeStampOffset % 2) == 1) in.seek(timeStampOffset + 7); 
     428        else in.seek(timeStampOffset - 248); 
     429        for (int i=0; i<core.sizeT[0]; i++) { 
    430430          double stamp = in.readDouble(); 
    431431          put("TimeStamp" + i, stamp); 
Note: See TracChangeset for help on using the changeset viewer.