Ignore:
Timestamp:
Jan 13, 2006, 7:26:40 PM (20 years ago)
Author:
ansari
Message:

Ajout methode FitsManager::ScanFile() et corrections diverses - Reza 13/01/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsarrhand.h

    r2864 r2898  
    5252    long naxes[BASEARRAY_MAXNDIMS];
    5353    int naxis=BASEARRAY_MAXNDIMS;
    54     if (FitsTypes::ImageType(x) == is.GetImageHDUInfo(naxis, naxes))
    55       return 2;
     54    int imgtyp = is.GetImageHDUInfo(naxis, naxes);
     55    if (naxis < 1) return 0;
     56    if (FitsTypes::ImageType(x) == imgtyp)  return 2;
    5657    else return 1;
    5758  }
Note: See TracChangeset for help on using the changeset viewer.