Ignore:
Timestamp:
Jan 11, 2007, 7:07:52 PM (19 years ago)
Author:
cmv
Message:

gestion gros fichiers FITS dans fabtcolread et fabtwriter cmv 11/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fboloread.cc

    r2615 r3128  
    2828
    2929  cout<<"Reading element by elements"<<endl;
    30   for(long i=0; i<fbr.GetNbLine(); i++) {
     30  for(LONGLONG i=0; i<fbr.GetNbLine(); i++) {
    3131    double a = fbr.GetAlpha(i);
    3232    double d = fbr.GetDelta(i);
     
    4343  TVector<float> Vc1;
    4444  TVector<int_4> Vs;
    45   for(long i=0, istep=1000; i<fbr.GetNbLine(); i+=istep) {
    46     long i2=i+istep-1; if(i2>=fbr.GetNbLine()) i2=fbr.GetNbLine()-1;
     45  for(LONGLONG i=0, istep=1000; i<fbr.GetNbLine(); i+=istep) {
     46    LONGLONG i2=i+istep-1; if(i2>=fbr.GetNbLine()) i2=fbr.GetNbLine()-1;
    4747    fbr.GetSNum(i,i2,Vs);
    4848    fbr.GetBolo(i,i2,Vb);
     
    148148
    149149 // Set the number of rows as the smallest of for connected columns
    150  long nrows = mFABT[col]->GetNbLine();
     150 LONGLONG nrows = mFABT[col]->GetNbLine();
    151151 if(NBline==0) NBline = nrows;
    152152 else if(nrows<NBline) NBline = nrows;
     
    222222 for(col=0; col<(int)mFABT.size(); col++) {
    223223   if(mFABT[col]==NULL) continue;
    224    long nbl = mFABT[col]->GetNbLine();
     224   LONGLONG nbl = mFABT[col]->GetNbLine();
    225225   if(nbl==0) continue;
    226226   if(NBline==0 || nbl<NBline) NBline = nbl;
Note: See TracChangeset for help on using the changeset viewer.