Ignore:
Timestamp:
Oct 13, 2000, 12:34:37 PM (25 years ago)
Author:
ansari
Message:

changement convention pour premier header

File:
1 edited

Legend:

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

    r1231 r1234  
    7171   static string GetErrStatus(int status);
    7272   inline  int   statusF() const { return fits_status_;}
     73   inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;}
    7374 
    7475
     
    7879   static  void printerror(int&) ;
    7980   static  void printerror(int&,char* texte) ;
    80    inline void  InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 1;
    81    fits_status_ = 0;}
     81   inline void  InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 0;
     82   fits_status_ = 0; imageOnPrimary_ = true;}
    8283
    8384   fitsfile *fptr_;     /**<  pointer to the FITS file, defined in fitsio.h */
     
    8586   int hdunum_;         /**<   index of header to be read/written */
    8687   int fits_status_;    /**< last status returned by fitsio library. updated only by several methods */
     88   bool imageOnPrimary_;
    8789
    8890 };
     
    184186
    185187void InitNull();
     188void getHeader();
    186189static void KeywordsIntoDVList(fitsfile* fileptr, DVList& dvl, int hdunum);
    187190static  void GetImageParameters (fitsfile* fileptr,int& bitpix,int& naxis,vector<int>& naxisn);
     
    211214   FitsOutFile(const char * flnm, WriteMode wrm = unknown );
    212215   ~FitsOutFile() { ;};
    213    inline void InitNull() {imageOnPrimary_=false;}
     216   inline void InitNull() {;}
    214217
    215218       //////////////////////////////////////////////////////////
     
    224227
    225228
    226    inline void firstImageOnPrimaryHeader() {imageOnPrimary_=true;}
    227229   void makeHeaderImageOnFits(char type, int nbdim, int* naxisn, DVList* dvl) ;
    228230   void PutImageToFits( int nbData, double* map) const;
     
    261263  void addKeywordsOfDVList(DVList& dvl) const;
    262264
    263   bool imageOnPrimary_;
    264265
    265266 };
Note: See TracChangeset for help on using the changeset viewer.