[3704] | 1 | #include <stdlib.h>
|
---|
| 2 | #include <string.h>
|
---|
| 3 |
|
---|
[3687] | 4 | #include "branap.h"
|
---|
| 5 | #include "minifits.h"
|
---|
| 6 | #include "strutilxx.h"
|
---|
| 7 | #include "sopnamsp.h"
|
---|
| 8 |
|
---|
| 9 | //--------------------------------------------------------------
|
---|
| 10 | // Projet BAORadio - (C) LAL/IRFU 2008-2010
|
---|
| 11 | // Classe de gestion des parametres programmes d'analyse
|
---|
| 12 | //--------------------------------------------------------------
|
---|
| 13 |
|
---|
| 14 | /* --Methode-- */
|
---|
| 15 | BRAnaParam::BRAnaParam(uint_4 nmean, uint_4 nzon, uint_4 npaqz)
|
---|
| 16 | {
|
---|
| 17 | outpath_="./";
|
---|
[3956] | 18 | fgfitsout_=false;
|
---|
[3687] | 19 | imin_=imax_=0;
|
---|
| 20 | istep_=1;
|
---|
[3883] | 21 | rdsamefc_=true; // read paquets with same frame counter
|
---|
[3993] | 22 | freqmin_=0; freqmax_=-1;
|
---|
[3688] | 23 | nbinfreq_=1;
|
---|
[3687] | 24 | paqsize_=16424;
|
---|
| 25 | nzones_=nzon;
|
---|
| 26 | npaqinzone_=npaqz;
|
---|
[3956] | 27 | fgdatafft_=false; fgforceraworfft_=false;
|
---|
[3967] | 28 | fgsinglechannel_=false; fgforcesingleortwochan_=false;
|
---|
[3688] | 29 | prtlevel_=0;
|
---|
[3883] | 30 | prtmodulo_=50000;
|
---|
[4015] | 31 | prtmodulo2_=10;
|
---|
[4012] | 32 |
|
---|
| 33 | nmean_=nmean;
|
---|
| 34 | fgtimeinterval_=false;
|
---|
| 35 | timeinterval_=1.;
|
---|
| 36 | nbloc_=1;
|
---|
| 37 |
|
---|
[3776] | 38 | nbcalgrp_=1;
|
---|
[3724] | 39 | nthreads_=1;
|
---|
[3886] | 40 |
|
---|
[3905] | 41 | spec_win_sz_=0;
|
---|
| 42 | spw_ext_sz_=0;
|
---|
| 43 | nbmax_specwfiles_=0;
|
---|
| 44 |
|
---|
[3886] | 45 | vmin_=0.; vmax_=9e99;
|
---|
[3943] | 46 | nbands_=0; bandfirst_ = bandlast_ = 0;
|
---|
[3993] | 47 | fgdtpaq_ = fgdtms_ = false;
|
---|
[3943] | 48 |
|
---|
| 49 | fgfreqfilter_=false; //JEC 1/2/11
|
---|
[3992] | 50 | medhalfwidth_=50; //JEC 6/4/11
|
---|
[3943] | 51 |
|
---|
[3888] | 52 | gainfile_="";
|
---|
[3979] | 53 |
|
---|
| 54 | proctimeduration_=9.e9;
|
---|
| 55 | fgtimeselect_=false;
|
---|
[3687] | 56 | }
|
---|
| 57 |
|
---|
| 58 | /* --Methode-- */
|
---|
| 59 | int BRAnaParam::DecodeArgs(int narg, char* arg[])
|
---|
| 60 | {
|
---|
| 61 | if ((narg>1)&&(strcmp(arg[1],"-h")==0)) return Usage(false);
|
---|
| 62 | if (narg<5) return Usage(true);
|
---|
| 63 |
|
---|
| 64 | bool okarg=false;
|
---|
| 65 | int ka=1;
|
---|
| 66 | while (ka<(narg-1)) {
|
---|
| 67 | if (strcmp(arg[ka],"-act")==0) {
|
---|
| 68 | action_=arg[ka+1];
|
---|
| 69 | ka+=2;
|
---|
| 70 | }
|
---|
| 71 | else if (strcmp(arg[ka],"-out")==0) {
|
---|
| 72 | outpath_=arg[ka+1];
|
---|
[3688] | 73 | size_t lenp=outpath_.size();
|
---|
| 74 | if ((lenp>0)&&(outpath_[lenp-1]!='/')) outpath_+='/';
|
---|
[3687] | 75 | ka+=2;
|
---|
| 76 | }
|
---|
[3956] | 77 | else if (strcmp(arg[ka],"-fitsout")==0) {
|
---|
| 78 | fgfitsout_=true;
|
---|
| 79 | ka++;
|
---|
| 80 | }
|
---|
[3687] | 81 | else if (strcmp(arg[ka],"-nmean")==0) {
|
---|
| 82 | nmean_=atoi(arg[ka+1]);
|
---|
| 83 | ka+=2;
|
---|
| 84 | }
|
---|
[4012] | 85 | else if (strcmp(arg[ka],"-tmint")==0) {
|
---|
[4015] | 86 | timeinterval_=atof(arg[ka+1]);
|
---|
[4012] | 87 | fgtimeinterval_=true; ka+=2;
|
---|
| 88 | }
|
---|
[3688] | 89 | else if (strcmp(arg[ka],"-nbloc")==0) {
|
---|
| 90 | nbloc_=atoi(arg[ka+1]);
|
---|
| 91 | ka+=2;
|
---|
| 92 | }
|
---|
| 93 | else if (strcmp(arg[ka],"-freq")==0) {
|
---|
| 94 | sscanf(arg[ka+1],"%d,%d,%d",&freqmin_,&freqmax_,&nbinfreq_);
|
---|
| 95 | ka+=2;
|
---|
| 96 | }
|
---|
[3687] | 97 | else if (strcmp(arg[ka],"-zones")==0) {
|
---|
| 98 | int nzon=4;
|
---|
| 99 | int npaqz=128;
|
---|
| 100 | sscanf(arg[ka+1],"%d,%d",&nzon,&npaqz);
|
---|
| 101 | nzones_=nzon; npaqinzone_=npaqz;
|
---|
| 102 | ka+=2;
|
---|
| 103 | }
|
---|
[3883] | 104 | else if (strcmp(arg[ka],"-prt")==0) {
|
---|
[4015] | 105 | sscanf(arg[ka+1],"%d,%ld,%ld",&prtlevel_,&prtmodulo_,&prtmodulo2_);
|
---|
[3688] | 106 | ka+=2;
|
---|
| 107 | }
|
---|
[3724] | 108 | else if (strcmp(arg[ka],"-nthr")==0) {
|
---|
| 109 | nthreads_=atoi(arg[ka+1]);
|
---|
| 110 | ka+=2;
|
---|
| 111 | }
|
---|
[3776] | 112 | else if (strcmp(arg[ka],"-nvcal")==0) {
|
---|
| 113 | nbcalgrp_=atoi(arg[ka+1]);
|
---|
| 114 | ka+=2;
|
---|
| 115 | }
|
---|
[3883] | 116 | else if (strcmp(arg[ka],"-nosfc")==0) {
|
---|
| 117 | rdsamefc_=false;
|
---|
| 118 | ka++;
|
---|
| 119 | }
|
---|
[3943] | 120 | else if (strcmp(arg[ka],"-singlechan")==0) {
|
---|
[3967] | 121 | fgsinglechannel_=true; fgforcesingleortwochan_ = true;
|
---|
[3943] | 122 | ka++;
|
---|
| 123 | }
|
---|
[3967] | 124 | else if (strcmp(arg[ka],"-twochan")==0) {
|
---|
| 125 | fgsinglechannel_=false; fgforcesingleortwochan_ = true;
|
---|
| 126 | ka++;
|
---|
| 127 | }
|
---|
[3956] | 128 | else if (strcmp(arg[ka],"-rawdata")==0) {
|
---|
| 129 | fgforceraworfft_=true; fgdatafft_ = false;
|
---|
| 130 | ka++;
|
---|
| 131 | }
|
---|
| 132 | else if (strcmp(arg[ka],"-fftdata")==0) {
|
---|
| 133 | fgforceraworfft_=true; fgdatafft_ = true;
|
---|
| 134 | ka++;
|
---|
| 135 | }
|
---|
[3886] | 136 | else if (strcmp(arg[ka],"-varcut")==0) {
|
---|
| 137 | sscanf(arg[ka+1],"%lg,%lg",&vmin_,&vmax_);
|
---|
| 138 | ka+=2;
|
---|
| 139 | }
|
---|
[3943] | 140 | else if (strcmp(arg[ka],"-nband")==0) {
|
---|
| 141 | sscanf(arg[ka+1],"%d,%d,%d",&nbands_,&bandfirst_,&bandlast_);
|
---|
| 142 | ka+=2;
|
---|
| 143 | }
|
---|
[3993] | 144 | else if (strcmp(arg[ka],"-fdtpaq")==0) {
|
---|
| 145 | fgdtpaq_=true;
|
---|
[3943] | 146 | ka++;
|
---|
| 147 | }
|
---|
[3993] | 148 | else if (strcmp(arg[ka],"-fdtms")==0) {
|
---|
| 149 | fgdtms_=true;
|
---|
| 150 | ka++;
|
---|
| 151 | }
|
---|
[3943] | 152 | else if (strcmp(arg[ka],"-freqfilter")==0) {
|
---|
[3992] | 153 | fgfreqfilter_=true; ka++;
|
---|
| 154 | if (strcmp(arg[ka],"-")!=0) medhalfwidth_=atof(arg[ka]);
|
---|
[3943] | 155 | ka++;
|
---|
| 156 | }
|
---|
[3979] | 157 | //-tmproc hh:mm:ss,nseconds
|
---|
| 158 | else if (strcmp(arg[ka],"-tmproc")==0) {
|
---|
| 159 | int ah=0,am=0;
|
---|
| 160 | double as=0, als=0;
|
---|
| 161 | sscanf(arg[ka+1],"%d:%d:%lg,%lg",&ah,&am,&as,&als);
|
---|
| 162 | fgtimeselect_=true; proctimeduration_=als;
|
---|
| 163 | proctimestart_.SetHour(ah,am,as);
|
---|
| 164 | ka+=2;
|
---|
| 165 | }
|
---|
[3888] | 166 | else if (strcmp(arg[ka],"-gain")==0) {
|
---|
| 167 | gainfile_=arg[ka+1];
|
---|
| 168 | ka+=2;
|
---|
| 169 | }
|
---|
[3905] | 170 | else if (strcmp(arg[ka],"-tspwin")==0) {
|
---|
| 171 | int ai1=0,ai2=0,ai3=0;
|
---|
| 172 | sscanf(arg[ka+1],"%d,%d,%d",&ai1,&ai2,&ai3);
|
---|
| 173 | spec_win_sz_=ai1; spw_ext_sz_=ai2; nbmax_specwfiles_=ai3;
|
---|
| 174 | ka+=2;
|
---|
| 175 | }
|
---|
[3687] | 176 | else if (strcmp(arg[ka],"-in")==0) {
|
---|
| 177 | if ((narg-ka)<4) {
|
---|
| 178 | cout << " BRAnaParam::DecodeArgs() / Argument error " << endl;
|
---|
| 179 | return Usage(true);
|
---|
| 180 | }
|
---|
| 181 | sscanf(arg[ka+1],"%d,%d,%d",&imin_,&imax_,&istep_); ka+=2;
|
---|
[3688] | 182 | while(ka<(narg-1)) {
|
---|
[3687] | 183 | string inpath = arg[ka];
|
---|
[3688] | 184 | size_t lenp=inpath.size();
|
---|
| 185 | if (lenp<1) inpath="./";
|
---|
| 186 | if ((lenp>0)&&(inpath[lenp-1]!='/')) inpath+='/';
|
---|
[3687] | 187 | vector<string> fiblist;
|
---|
| 188 | string sa1 = arg[ka+1];
|
---|
| 189 | FillVStringFrString(sa1, fiblist, ',');
|
---|
| 190 | char dbuff[32];
|
---|
| 191 | for(size_t i=0; i<fiblist.size(); i++) {
|
---|
| 192 | sprintf(dbuff,"Fiber%d/",(int)atoi(fiblist[i].c_str()));
|
---|
| 193 | dirlist_.push_back(inpath+dbuff);
|
---|
| 194 | }
|
---|
| 195 | ka += 2;
|
---|
| 196 | }
|
---|
| 197 | okarg=true;
|
---|
| 198 | }
|
---|
[3688] | 199 | else ka++;
|
---|
[3687] | 200 | }
|
---|
[3688] | 201 |
|
---|
[3687] | 202 | if (!okarg) {
|
---|
| 203 | cout << " BRAnaParam::DecodeArgs() / Argument error " << endl;
|
---|
| 204 | return Usage(true);
|
---|
| 205 | }
|
---|
| 206 | return 0;
|
---|
| 207 | }
|
---|
| 208 |
|
---|
| 209 | /* --Methode-- */
|
---|
| 210 | int BRAnaParam::Usage(bool fgshort)
|
---|
| 211 | {
|
---|
| 212 | cout << " --- BRAnaParam : Reading/Processing BAORadio FITS files parameters " << endl;
|
---|
[3956] | 213 | cout << " Usage: prgname [-act ACT] [-out OutPath] [-fitsout] \n"
|
---|
[4015] | 214 | << " [-nmean NMean] [-tmint dtime] [-zones NZones,nPaqinZone] \n"
|
---|
[3724] | 215 | << " [-nbloc NBloc] [-freq NumFreqMin,NumFreqMax,NBinFreq] \n"
|
---|
[4015] | 216 | << " [-prt lev,modulo,mod2] [-nvcal n] [-nthr n] [-nosfc]\n"
|
---|
[3967] | 217 | << " [-singlechan] [-twochan] [-fftdata] [-rawdata] \n"
|
---|
[3992] | 218 | << " [-freqfilter medhw] [-gain filename] [-varcut min,max] [-nband nband,first,last] \n"
|
---|
[3956] | 219 | << " [-freqfilter] [-gain filename] [-varcut min,max] [-nband nband,first,last] \n"
|
---|
[3993] | 220 | << " [-tmproc hh:mm:ss,nseconds] [-fdtpaq] [-fdtms] [-tspwin wsz,extsz,nfiles] \n"
|
---|
[3687] | 221 | << " -in Imin,Imax,Istep InPath FiberList [InPath2 FiberList2 InPath3 FiberList3 ...] \n" << endl;
|
---|
| 222 | if (fgshort) {
|
---|
| 223 | cout << " prgname -h for detailed instructions" << endl;
|
---|
| 224 | return 5;
|
---|
| 225 | }
|
---|
[3774] | 226 | cout << " -act Action: cube3d or vis or viscktt or mspec \n"
|
---|
[3967] | 227 | << " cube3d: create 3D fits cubes \n"
|
---|
[3956] | 228 | << " vis: compute visibilites (vismfib program) \n"
|
---|
[3967] | 229 | << " viscktt: compute visibilities and check TimeTag/FrameCounter (vismfib program)\n"
|
---|
| 230 | << " mspec: compute and save mean spectra for each channel \n"
|
---|
| 231 | << " bproc: run BRBaseProcessor for debug/printing (use -prt) \n"
|
---|
[3687] | 232 | << " -out OutPath: Output directory name \n"
|
---|
[3956] | 233 | << " -fitsout : Force FITS format for output files \n"
|
---|
[3687] | 234 | << " -nmean NMean: Number of packet used for spectra/visibility computation \n"
|
---|
[4012] | 235 | << " -tmint dtime: Time interval definition (instead of nmean) for spectra/visibility computation \n"
|
---|
[3688] | 236 | << " -nbloc NBloc: Number of MemMgr blocs in output file\n"
|
---|
[3956] | 237 | << " -zones NZones,NbPaqinZone : Number of Zones and number of paquets in one zone (RAcqMemZoneMgr) \n"
|
---|
[3688] | 238 | << " -freq NumFreqMin,NumFreqMax,NBinFreq : Frequency zone and number of bins \n"
|
---|
[4015] | 239 | << " -prt lev,modulo,mod2 : Print level (0,1,2...), counter modulo (10000,50000...), mod2 (10,50...) for filenums \n"
|
---|
[3776] | 240 | << " -nvcal n : number of BRVisibilityCalculator objects running in parallel in BRVisCalcGroup (default=1) \n"
|
---|
| 241 | << " -nthr n : number of threads for parallel execution in BRVisibilityCalculator (default=1) \n"
|
---|
[3883] | 242 | << " -nosfc : Don't force reading with SAME FrameCounter \n"
|
---|
[3943] | 243 | << " -singlechan : Force one channel per fiber \n"
|
---|
[3967] | 244 | << " -twochan : Force two channels per fiber \n"
|
---|
[3956] | 245 | << " -rawdata : Force raw data mode (firmware raw) \n"
|
---|
| 246 | << " -fftdata : Force FFT data mode (firmware fft) \n"
|
---|
[3886] | 247 | << " -varcut min,max : min-max cut on variance \n"
|
---|
[3993] | 248 | << " -nband nband,first,last: numbers of freq. bands and first and last bands used for cuts\n"
|
---|
[3979] | 249 | << " -tmproc hh:mm:ss,nseconds : processing time window definition \n"
|
---|
[3993] | 250 | << " -fdtpaq : force per paquet data table filling (specmfib) \n"
|
---|
| 251 | << " -fdtms : force time averaged/filtered data table filling; use -freq for defining bands (specmfib)\n"
|
---|
[3992] | 252 | << " -freqfilter medhw: force median filtering on the frequencies \n"
|
---|
| 253 | << " with half window width medhw (use - for default=" << medhalfwidth_ << ") \n"
|
---|
[3888] | 254 | << " -gain filename : spectral response fits file name \n"
|
---|
[3905] | 255 | << " -tspwin wsz,extsz,nfiles : spectra time (paquet no) window (ex: -tspwin 120,4,5) \n"
|
---|
| 256 | << " wsz,extsz= window,extension size; nfiles= maximum number of windows saved \n"
|
---|
[3687] | 257 | << " -in : input files/directory definition : \n"
|
---|
| 258 | << " Imin,Imax,Istep: fits files signalII.fits Imin<=II<=Imax Istep=increment \n"
|
---|
| 259 | << " InPath: Input directerory fits files in InPath/FiberJJ directory \n"
|
---|
| 260 | << " FiberList: List of fiber numbers (JJ - Ex: 2,1,4 ) \n" << endl;
|
---|
| 261 | return 1;
|
---|
| 262 | }
|
---|
| 263 |
|
---|
| 264 | /* --Fonction-- */
|
---|
| 265 | int BRAnaParam::PaqSizeFromFits()
|
---|
| 266 | {
|
---|
| 267 | uint_4 paqsz, npaqf;
|
---|
| 268 | char flnm[1024];
|
---|
| 269 | sprintf(flnm,"%s/signal%d.fits",dirlist_[0].c_str(),imin_);
|
---|
[3956] | 270 | bool fgdatafft_in_fits=false;
|
---|
[3967] | 271 | bool fgsinglechan_in_fits=false;
|
---|
[3979] | 272 | SOPHYA::TimeStamp tmstart;
|
---|
| 273 | int rc = DecodeMiniFitsHeader(flnm,paqsize_, npaqinfile_,fgdatafft_in_fits, fgsinglechan_in_fits,tmstart);
|
---|
[3967] | 274 | if (!fgforcesingleortwochan_) fgsinglechannel_=fgsinglechan_in_fits;
|
---|
[3956] | 275 | if (!fgforceraworfft_) fgdatafft_=fgdatafft_in_fits;
|
---|
[3979] | 276 | if (fgtimeselect_) {
|
---|
| 277 | int year,month,day;
|
---|
| 278 | tmstart.GetDate(year,month,day);
|
---|
| 279 | proctimestart_.SetDate(year,month,day);
|
---|
| 280 | proctimeend_.Set(proctimestart_.ToDays()+proctimeduration_/86400.);
|
---|
| 281 | }
|
---|
[3943] | 282 | return rc;
|
---|
[3687] | 283 | }
|
---|
| 284 |
|
---|
| 285 | /* --Fonction-- */
|
---|
| 286 | ostream& BRAnaParam::Print(ostream& os)
|
---|
| 287 | {
|
---|
| 288 | os << " BRAnaParam::Print() dirlist_.size()=" << dirlist_.size() << " Input directories: " << endl;
|
---|
| 289 | for(size_t k=0; k< dirlist_.size(); k++)
|
---|
| 290 | cout << k+1 << " : " << dirlist_[k] << endl;
|
---|
[3883] | 291 | cout << " IMin= " << imin_ << " IMax= " << imax_ << " IStep= " << istep_
|
---|
| 292 | << ((rdsamefc_)?" SameFrameCounter read mode":" AllOKPaquets read mode ") << endl;
|
---|
[3979] | 293 | if (fgtimeselect_) {
|
---|
| 294 | cout << " Processing time window, StartTime=" << proctimestart_ << " duration= " << proctimeduration_
|
---|
| 295 | << " EndTime=" << proctimeend_ << endl;
|
---|
| 296 | }
|
---|
[3956] | 297 | cout << " OutPath= " << outpath_ << (fgfitsout_?" force FITS output":" PPF output") << endl;
|
---|
[3688] | 298 | cout << " Action=" << action_ << " NMean=" << nmean_ << " NBloc=" << nbloc_ << endl;
|
---|
[4012] | 299 | cout << ((fgtimeinterval_)?" Time Interval mode for visi/spectra ":" NPaq Interval mode")
|
---|
| 300 | << " TimeInterval=" << timeinterval_ << " seconds " << endl;
|
---|
[3688] | 301 | cout << " FreqMin= " << freqmin_ << " FreqMax= " << freqmax_ << " NBinFreq= " << nbinfreq_ << endl;
|
---|
[3993] | 302 | if (fgdtpaq_) cout<< " Fill Per Paquet DadaTable ";
|
---|
| 303 | if (fgdtms_) cout<< " Fill Time Averaged/Filtered binned power DataTable ";
|
---|
| 304 | if (!fgdtpaq_&&!fgdtms_) cout << " NO DataTable " << endl;
|
---|
| 305 | else cout << endl;
|
---|
[3943] | 306 | cout << " GainFileName=" << gainfile_ << " Variance: Min= " << vmin_ << " Max= " << vmax_
|
---|
| 307 | << " Bands: N=" << nbands_ << " First=" << bandfirst_ << " Last=" << bandlast_
|
---|
| 308 | << endl;
|
---|
[3992] | 309 | if (fgfreqfilter_) {
|
---|
| 310 | cout << " force frequence median filtering (action gain), half width =" << medhalfwidth_
|
---|
| 311 | << endl;
|
---|
| 312 | } else {
|
---|
| 313 | cout<<" NO freq. filtering" << endl;
|
---|
| 314 | }
|
---|
[3905] | 315 | cout << " Spectra TimeWindow (Nb.Paquets) Size=" << spec_win_sz_ << " ExtensionSize=" << spw_ext_sz_
|
---|
| 316 | << " MaxNbFile=" << nbmax_specwfiles_ << endl;
|
---|
[3688] | 317 | cout << " PaqSize=" << paqsize_ << " - NZones=" << nzones_ << " NPaqZone=" << npaqinzone_
|
---|
[4015] | 318 | << " PrtLevel=" << prtlevel_ << " PrtCntModulo=" << prtmodulo_ << "," << prtmodulo2_ << endl;
|
---|
[3956] | 319 | cout << " AcqDataMode: " << ((fgdatafft_)?" Data_FFT " : " Data_Raw " )
|
---|
[3872] | 320 | << ((fgsinglechannel_)?" SingleChannel " : " TwoChannels " ) << endl;
|
---|
[3776] | 321 | cout << " NbVisibCalculator in Group: " << nbcalgrp_ << " with N//threads: " << nthreads_ << endl;
|
---|
| 322 |
|
---|
| 323 |
|
---|
[3687] | 324 | return os;
|
---|
| 325 | }
|
---|
| 326 |
|
---|
| 327 | /* --Fonction-- */
|
---|
[3872] | 328 | int BRAnaParam::DecodeMiniFitsHeader(const char* filename, uint_4& paqsz, uint_4& npaq,
|
---|
[3979] | 329 | bool& fgdatafft, bool& fgsinglechannel, SOPHYA::TimeStamp& tmstart)
|
---|
[3687] | 330 | {
|
---|
| 331 | cout << " DecodeMiniFitsHeader - Opening file: " << filename << endl;
|
---|
| 332 | MiniFITSFile mff(filename, MF_Read);
|
---|
[3872] | 333 | string acqmode=mff.GetKeyValue("ACQMODE");
|
---|
[3687] | 334 | cout << "DecodeMiniFitsHeader()... Type=" << mff.DataTypeToString() << " NAxis1=" << mff.NAxis1()
|
---|
[3872] | 335 | << " NAxis2=" << mff.NAxis2() << " AcqMode=" << acqmode << endl;
|
---|
[3687] | 336 | paqsz = mff.NAxis1();
|
---|
| 337 | npaq = mff.NAxis2();
|
---|
[3872] | 338 | if (acqmode.substr(0,3)=="fft") fgdatafft=true;
|
---|
[4004] | 339 | if (acqmode.substr(3,3)=="fft") fgdatafft=true; // pour ordfft1c ordfft2c - Cedric Viou, 15 Juin 2011
|
---|
[3872] | 340 | if (acqmode.find("1c") < acqmode.length()) fgsinglechannel=true;
|
---|
[3979] | 341 | string fkvs=mff.GetKeyValue("DATEOBS");
|
---|
| 342 | if (fkvs.length()>0) tmstart.Set(fkvs);
|
---|
| 343 | fkvs=mff.GetKeyValue("TMSTART");
|
---|
| 344 | if (fkvs.length()>0) tmstart.Set(fkvs);
|
---|
[3687] | 345 | return 0;
|
---|
| 346 | }
|
---|
| 347 |
|
---|