Changeset 3684 in Sophya for trunk/AddOn/TAcq/minifits.h


Ignore:
Timestamp:
Nov 27, 2009, 11:53:26 AM (16 years ago)
Author:
ansari
Message:

Ajout de la possibilite creation/lecture fichiers fits 3D (type cube) - Reza 27/11/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/minifits.h

    r3683 r3684  
    5151  string DataTypeToString(); 
    5252
    53   size_t NAxis1() { return nax1; }
    54   size_t NAxis2() { return nax2; }
     53  inline size_t NAxes()  { return ((fgnax3)?3:2); }
     54  inline size_t NAxis1() { return nax1; }
     55  inline size_t NAxis2() { return nax2; }
     56  inline size_t NAxis3() { return ((fgnax3)?nax3:0); }
    5557
    5658  void setDTypeNaxis(MiniFITS_DT dt, size_t na1, size_t na2);
     59  void setDTypeNaxis(MiniFITS_DT dt, size_t na1, size_t na2, size_t na3);
    5760
    5861  // Lecture avec indication de la taille (nb d'elements) et offset
     
    100103  MiniFITS_Mode rwmode;
    101104  MiniFITS_DT dtype;
    102   size_t nax1, nax2;
     105  size_t nax1, nax2, nax3;
     106  bool fgnax3;  // true -> NAXIS=3 3D file
    103107  size_t totwsz;  // total bytes ecrits
    104108  char* header; //  entete FITS
Note: See TracChangeset for help on using the changeset viewer.