// Utilisation de SOPHYA pour faciliter les tests ... #include "sopnamsp.h" #include "machdefs.h" // include standard c/c++ #include #include #include #include #include "pexceptions.h" #include "tvector.h" #include "fioarr.h" #include "tarrinit.h" #include "timestamp.h" #include "fftpserver.h" #include "fftwserver.h" #include "FFTW/fftw3.h" // include sophya mesure ressource CPU/memoire ... #include "resusage.h" #include "ctimer.h" #include "timing.h" // include mini-fits lib #include "minifits.h" inline r_4 Zmod2(complex z) { return (z.real()*z.real()+z.imag()*z.imag()); } int main(int narg, char* arg[]) { if (narg < 2) { cout << " Usage: mfits2spec file1.fits [file2.fits ...] " << endl; return 1; } cout << " ---------- mfits2spec.cc Start ------------- " << endl; TArrayInitiator _inia; int rc = 0; try { ResourceUsage resu; TVector spectre; sa_size_t nzm = 0; // Nb de spectres moyennes for(int ifile=1; ifile skipping " << endl; } size_t sx = mff.NAxis1(); size_t sy = mff.NAxis2(); Byte* data = new Byte[sx]; TVector vx(sx); TVector< complex > cfour; FFTPackServer ffts; for(int j=0; j>>> mfits2spec.cc ------- FIN ----------- RC=" << rc << endl; return rc; }