Changeset 5147


Ignore:
Timestamp:
06/02/09 09:34:54 (11 years ago)
Author:
melissa
Message:

Fix for FITS files that have an extended header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/FitsReader.java

    r5093 r5147  
    116116      else key = line.trim(); 
    117117 
    118       if (key.equals("END")) break; 
     118      // if the file has an extended header, "END" will appear twice 
     119      // the first time marks the end of the extended header 
     120      // the second time marks the end of the standard header 
     121      // image dimensions are only populated by the standard header 
     122      if (key.equals("END") && getSizeX() > 0) break; 
    119123 
    120124      if (key.equals("BITPIX")) { 
Note: See TracChangeset for help on using the changeset viewer.