#include #include #include "toi.h" #include "toiprocessor.h" #include "fitstoirdr.h" #include "fitstoiwtr.h" #include "toimanager.h" #include "toiseqbuff.h" #include "sambainit.h" #include "map2toi.h" #include "fitsspherehealpix.h" #include "timing.h" void usage(void); void usage(void) { cout<<"tstmap2toi [-h] [-p lp] [-s samplemin,samplemax] [-w data_window_size]"<=sdeb) mgr->setRequestedSample(sdeb,sfin); else {cout<<"Bad sample interval "<=narg) {usage(); exit(-2);} char * fitsin = arg[optind]; string const fitsphere = arg[optind+1]; char * fitsout = arg[optind+2]; cout<<">>>> tstmap2toi:"< sph; FitsInFile sfits(fitsphere); sfits >> sph; cout<<"SphereHEALPix: Type de map : "<setDebugLevel(1); rfits.addOutput(label_alpha,toialphain); m2toi.addInput("AlphaIn",toialphain); TOISeqBuffered * toialphaout = new TOISeqBuffered("toi_alpha_out",width); m2toi.addOutput("AlphaOut",toialphaout); wfits.addInput(label_alpha,toialphaout); TOISeqBuffered * toideltain = new TOISeqBuffered("toi_delta_in",width); if(lp) toideltain->setDebugLevel(1); rfits.addOutput(label_delta,toideltain); m2toi.addInput("DeltaIn",toideltain); TOISeqBuffered * toideltaout = new TOISeqBuffered("toi_delta_out",width); m2toi.addOutput("DeltaOut",toideltaout); wfits.addInput(label_delta,toideltaout); TOISeqBuffered * toibolout = new TOISeqBuffered("toi_bolo_out",width); if(lp) toibolout->setDebugLevel(1); m2toi.addOutput("BoloOut",toibolout); wfits.addInput(label_bolomuv,toibolout); // Run cout<<"----- FITSReaderTOI::PrintStatus() : -----"<1) for(int jjjj=0;jjjj<5;jjjj++) { cout<<*toialphain; cout<<*toibolout; sleep(2); } mgr->joinAll(); PrtTim("End threads"); //-------------------------------------------------------------------- } catch (PThrowable & exc) { cout<<"\ntstmap2toi: Catched Exception \n"<<(string)typeid(exc).name() <<" - Msg= "<