Changeset 3918 in Sophya for trunk/AddOn/TAcq/brparam.cc


Ignore:
Timestamp:
Dec 2, 2010, 4:41:13 PM (15 years ago)
Author:
ansari
Message:

Amelioration code thread monitoring pour tenir compte du mode fftshrink + calcul matrice saturation, cmv+Reza

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brparam.cc

    r3915 r3918  
    154154  AcqMode=acqmod;
    155155  fgdatafft=false;
     156  fgfftshrink=false;
    156157  fgsinglechannel=false;
    157158
     
    233234  AcqMode=p.AcqMode;
    234235  fgdatafft=p.fgdatafft;
     236  fgfftshrink=p.fgfftshrink;
    235237  fgsinglechannel=p.fgsinglechannel;
    236238
     
    425427  }
    426428  string acqmode = AcqMode;
    427   fgdatafft=false;  fgsinglechannel=false;
     429  fgdatafft=false;  fgfftshrink=false;  fgsinglechannel=false;
    428430  reducneedcopy=false;  pqreducmode=BR_TwoChanReduc;
    429431  if ((acqmode == "std")||(acqmode=="raw2c"))   swapall = BR_Copy ;
    430432  if (acqmode=="raw1c") { swapall = BR_Copy ;  fgsinglechannel=true;  pqreducmode=BR_OneChanReduc; }
    431433
    432   if ((acqmode == "fft2c")||(acqmode == "fft1c"))   swapall = BR_Copy ; 
     434  if (acqmode=="fft2c")  { swapall = BR_Copy;  fgdatafft=true; }
     435  if ((acqmode=="fft2cshrink")||(acqmode=="fftshrink"))  {  swapall = BR_Copy; fgdatafft=true; fgfftshrink=true; }
     436  if (acqmode=="fft1c")  { swapall = BR_Copy;  fgdatafft=true; fgsinglechannel=true; }
     437  if (acqmode=="fft1cshrink")  {  swapall = BR_Copy; fgdatafft=true; fgfftshrink=true; fgfftshrink=true; }
     438
    433439  if (acqmode == "nosw")   swapall = BR_Copy ;
    434440  if (acqmode == "nof")  { swapall = BR_Copy ; savesigfits = false; }
     
    497503  os << " AcqMode="<<AcqMode;
    498504  os << " Type of acquisition :" << BRPaquet::FmtConvToString( swapall) << endl;
     505  os << " Firmware: " << ((fgdatafft)?" FFT_Data ":" RawData ");
     506  os << ((fgfftshrink)?" ShrinkFFT ":" FULLFFT ");
     507  os << ((fgsinglechannel)?" SingleChannel":" TwoChannels") << endl;
    499508  os << " SkySource=" << skysource;
    500509  os << " NbFiles="<<NbFiles;
Note: See TracChangeset for help on using the changeset viewer.