#include #include #include #include #include "toi.h" #include "toiprocessor.h" #include "fitstoirdr.h" #include "fitstoiwtr.h" #include "toimanager.h" #include "toiseqbuff.h" #include "sambainit.h" #include "toi2map.h" #include "fitsspherehealpix.h" #include "timing.h" void usage(void); void usage(void) { cout<<"tsttoi2map [-h] [-p lp] [-s samplemin,samplemax] [-w data_window_size]"<=sdeb) mgr->setRequestedSample(sdeb,sfin); else {cout<<"Bad sample interval "<=narg) {usage(); exit(-2);} bool mcoorgal=true; bool fcoorgal=true; if ( strcmp(arg[optind],"Q") == 0) mcoorgal=false; if ( strcmp(arg[optind+1],"Q") == 0) fcoorgal=false; char * fitsin_bolo = arg[optind+2]; char * fitsin_point = arg[optind+3]; string const fitsphout = arg[optind+4]; string fitsphwout = ""; if(optind+5>>> tsttoi2map:"<* sph = new SphereHEALPix(nlat); cout<<"SphereHEALPix: Type de map : "<TypeOfMap()<NbPixels()<* wsph = NULL; if(fitsphwout.size()>0) { wsph = new SphereHEALPix; cout<<"SphereHEALPix Weight: Type de map : "<TypeOfMap()<NbPixels()<setDebugLevel(1); rfitsp.addOutput(label_coord1,toicoord1in); toi2m.addInput("Coord1In",toicoord1in); TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width); if(lp) toicoord2in->setDebugLevel(1); rfitsp.addOutput(label_coord2,toicoord2in); toi2m.addInput("Coord2In",toicoord2in); TOISeqBuffered * toibolin = new TOISeqBuffered("toi_bolo_in",width); if(lp) toibolin->setDebugLevel(1); rfitsb.addOutput(label_bolomuv,toibolin); toi2m.addInput("BoloIn",toibolin); // Run cout<<"----- FITSReaderTOI::PrintStatus() : -----"<1) for(int jjjj=0;jjjj<5;jjjj++) { cout<<*toicoord1in; cout<<*toibolin; sleep(2); } mgr->joinAll(); PrtTim("End threads"); // Ecriture de la sphere Healpix sur fits { FitsOutFile sfits(fitsphout); cout<<"tsttoi2map: Creating sphere fits file "<