Changeset 1174 in Sophya for trunk/SophyaExt/FitsIOServer


Ignore:
Timestamp:
Sep 1, 2000, 5:22:11 PM (25 years ago)
Author:
ansari
Message:

hdunum=0 par defaut

Location:
trunk/SophyaExt/FitsIOServer
Files:
5 edited

Legend:

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

    r1136 r1174  
    2121
    2222FITS_NTuple();
    23 FITS_NTuple(char inputfile[],int hdunum=2);
     23FITS_NTuple(char inputfile[],int hdunum=0);
    2424FITS_NTuple(const NTuple & obj);
    2525 FITS_NTuple(NTuple* obj);
     
    4242\param <numberOfLines>  number of lines to be read
    4343*/
    44  void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=2);
     44 void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=0);
    4545
    4646inline operator NTuple() { return(*dobj_); }
  • trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc

    r1143 r1174  
    2121FITS_SphereHEALPix<T>::FITS_SphereHEALPix(char inputfile[],int hdunum)
    2222{
    23   dobj_= new SphereHEALPix<T>;
    24   ownobj_= true;
    25 
     23    dobj_= new SphereHEALPix<T>;
     24    ownobj_= true;
    2625  Read(inputfile,hdunum);
    27   //  dobj_->SetTemp(true);
    2826}
    2927
     
    3230FITS_SphereHEALPix<T>::FITS_SphereHEALPix(const SphereHEALPix<T>& obj)
    3331{
    34   dobj_= new SphereHEALPix<T>(obj, true);
    35   //  dobj_->SetTemp(true);
     32  cout << " constructeur &obj " << endl;
     33   dobj_= new SphereHEALPix<T>(obj);
    3634  ownobj_= true;
    3735}
     
    131129      ownobj_= true;     
    132130    }
    133 
    134  
    135131  int nbcols, nbentries;
     132  //
     133
    136134  nbcols = is.NbColsFromFits();
    137135  if (nbcols != 1)
     
    144142  if (lastpix>0)
    145143    {
    146       cout << " lastpix trouve= " << lastpix << endl;
    147144      if (nbentries!=lastpix+1)
    148145        {
    149           cout << " nb pixels from LASTPIX = "  << lastpix+1 << endl;
    150146          nbentries=lastpix+1;
    151147        }
     
    190186  dobj_->setParameters(nside,nPix,Omega);
    191187  // On lit les DataBlocks;
    192   dobj_->pixels_.ReSize(nPix);
     188  //
     189   dobj_->pixels_.ReSize(nPix);
    193190  is.GetSingleColumn(dobj_->pixels_.Data(),nPix);
     191  //
    194192
    195193  // on effectue le decoupage en tranches
    196194  dobj_->SetThetaSlices();
    197     dobj_->Info()  = is.DVListFromFits();
    198 
    199 
     195  //
     196  dobj_->Info()  = is.DVListFromFits();
     197  cout << " end of file reading " << endl;
    200198}
    201199
  • trunk/SophyaExt/FitsIOServer/fitsspherehealpix.h

    r1136 r1174  
    2222
    2323FITS_SphereHEALPix();
    24 FITS_SphereHEALPix(char inputfile[],int hdunum=2);
     24FITS_SphereHEALPix(char inputfile[],int hdunum=0);
    2525FITS_SphereHEALPix(const SphereHEALPix<T>& obj);
    2626FITS_SphereHEALPix(SphereHEALPix<T>* obj);
  • trunk/SophyaExt/FitsIOServer/fitstarray.h

    r1136 r1174  
    2525
    2626FITS_TArray();
    27 FITS_TArray(char inputfile[],int hdunum=2);
     27FITS_TArray(char inputfile[],int hdunum=0);
    2828FITS_TArray(const TArray<T> & obj);
    2929FITS_TArray(TArray<T> *obj);
  • trunk/SophyaExt/FitsIOServer/fitsxntuple.h

    r1136 r1174  
    2121public:
    2222FITS_XNTuple();
    23 FITS_XNTuple(char inputfile[],int hdunum=2);
     23FITS_XNTuple(char inputfile[],int hdunum=0);
    2424FITS_XNTuple(const XNTuple & obj);
    2525FITS_XNTuple(XNTuple* obj);
     
    4242\param <numberOfLines>  number of lines to be read
    4343*/
    44 void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=2);
     44void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=0);
    4545inline operator XNTuple() { return(*dobj_); }
    4646inline XNTuple * getObj() { return(dobj_); }
Note: See TracChangeset for help on using the changeset viewer.