Changeset 11550


Ignore:
Timestamp:
07/24/11 10:49:37 (13 years ago)
Author:
tbretz
Message:
 
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/fits.h

    r11487 r11550  
    348348    MFits(const string &fname) : MZlib(fname.c_str())
    349349    {
     350        char simple[6];
     351        read(simple, 6);
     352        if (!good())
     353            return;
     354
     355        if (memcmp(simple, "SIMPLE", 6))
     356        {
     357            gLog << err << "File is not a FITS file." << endl;
     358            clear(rdstate()|ios::badbit);
     359            return;
     360        }
     361
     362        seekpos(0);
     363
    350364        while (good())
    351365        {
Note: See TracChangeset for help on using the changeset viewer.