Ignore:
Timestamp:
Aug 25, 2000, 5:52:48 PM (25 years ago)
Author:
ansari
Message:

normalisation des DVList

File:
1 edited

Legend:

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

    r1136 r1143  
    5858opens a file 'flnm'
    5959
    60 gets parameters in header (hdunum)
     60gets parameters in extension-header (hdunum)
    6161
    6262calls the method 'ReadFromFits' from the inherited  object
     
    125125   static  void printerror(int&) ;
    126126   static  void printerror(int&,char* texte) ;
    127    inline void InitNull() { cout << " init fitsfile " << endl; fptr_= NULL; hdutype_= 0; hdunum_ = 1;
     127   inline void InitNull() { fptr_= NULL; hdutype_= 0; hdunum_ = 1;
    128128   fits_status_ = 0;}
    129129
     
    150150   //   FitsInFile(char flnm[], int hdunum=0);
    151151   FitsInFile(char flnm[]);
    152    ~FitsInFile() {  cout << " destructeur FitsInFile " << endl; };
     152   ~FitsInFile() { ; };
    153153
    154154
     
    170170   */
    171171inline const DVList& DVListFromFits() const { return dvl_;}
     172
     173/* get the keywords of primary header in a DVList */
     174DVList  DVListFromPrimaryHeader() const;
    172175
    173176void moveToFollowingHeader();
     
    347350   FitsOutFile();
    348351   FitsOutFile(char flnm[], bool OldFile=false);
    349    ~FitsOutFile() {  cout << " destructeur FitsOutFile " << endl;};
     352   ~FitsOutFile() { ;};
    350353   inline void InitNull() {imageOnPrimary_=false;}
    351354
     
    368371\param <naxisn>  array containind sizes of the different dimensions
    369372  */
    370   void makeHeaderImageOnFits(char type, int nbdim, int* naxisn) ;
     373  void makeHeaderImageOnFits(char type, int nbdim, int* naxisn,  DVList &dvl) ;
     374
    371375
    372376  /*! write double data from array 'map'on an IMAGE extension
     
    391395
    392396  /*! create an BINTABLE header on FITS file.
    393 \param <fieldType> array containing characters denoting types of the different column (see method ColTypeFromFits)
     397\param <fieldType> array conta
     398ining characters denoting types of the different column (see method ColTypeFromFits)
    394399\param <Noms>  array of the names of columns
    395400\param <nentries>  number of data of each column
     
    416421  void putColToFits(int nocol, int nentries, char** donnees) const;
    417422
     423/////////////////////////////////////////////////////////////
     424//       methods for managing any type of FITS extension
     425////////////////////////////////////////////////////////
     426
     427
     428/* put keywords from a DVList into the primary header of the fits-file */
     429void  DVListIntoPrimaryHeader(DVList& dvl) const;
     430
     431
     432
    418433  private :
    419434
    420435  void writeSignatureOnFits() const;
    421 
     436  void addKeywordsOfDVList(DVList& dvl) const;
    422437
    423438  bool imageOnPrimary_;
Note: See TracChangeset for help on using the changeset viewer.