Changeset 2102 in Sophya
- Timestamp:
- Jul 16, 2002, 6:38:48 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2toi_addsp.cc
r2099 r2102 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2toi_addsp.cc,v 1. 2 2002-07-16 15:26:19cecile Exp $5 // $Id: toi2toi_addsp.cc,v 1.3 2002-07-16 16:38:48 cecile Exp $ 6 6 7 7 #include "machdefs.h" … … 45 45 declareInput("lat"); 46 46 47 declareOutput("BoloOut"); 47 declareOutput("BoloOut"); 48 48 } 49 49 … … 131 131 return; 132 132 } 133 134 //-------------------------------------------------------------------- 135 //-------------------------------------------------------------------- 136 //-------------------------------------------------------------------- 137 //-------------------------------------------------------------------- 138 //-------------------------------------------------------------------- 139 //-------------------------------------------------------------------- 140 void Fill_Info_scr(Info_src* scr, int_4 ns) 141 { 142 for (int i=0; i<ns ; i++){ 143 scr[i].glon = 80.+i*10.; 144 scr[i].glat = 0.; 145 scr[i].amp = 1.; 146 scr[i].tau1 = 0.5; 147 scr[i].tau2 = 0.5; 148 } 149 } -
trunk/ArchTOIPipe/ProcWSophya/toi2toi_addsp.h
r2099 r2102 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toi2toi_addsp.h,v 1. 2 2002-07-16 15:26:19cecile Exp $7 // $Id: toi2toi_addsp.h,v 1.3 2002-07-16 16:38:48 cecile Exp $ 8 8 9 9 #ifndef TOI2MAP_H … … 41 41 double amp,tau1,tau2; 42 42 }; 43 44 void Fill_Info_scr(Info_src* scr, int_4 ns);45 43 46 44 class Toi2toi_Addsp : public TOIProcessor { … … 80 78 void Print(::ostream & os); 81 79 80 static void Fill_Info_scr(Info_src* scr, int_4 ns); 81 82 82 protected: 83 83 -
trunk/ArchTOIPipe/TestPipes/tsttoi2toi_addsp.cc
r2099 r2102 170 170 try { 171 171 //-------------------------------------------------------------------- 172 172 cout << wsize << " ok ! " << endl; 173 173 174 CGT plombier(fgsegmented,wsize); 174 175 plombier.SetDebugLevel(99); 175 176 176 177 // FITS reader 177 FITSTOIReader rfitsb(fitsin_bolo);178 FITSTOIReader rfitsp(fitsin_point);179 FITSTOIReader rfitsu(fitsin_utc);180 FITSTOIReader rfitsl(fitsin_lon);181 FITSTOIReader rfitsL(fitsin_lat);182 FITSTOIWriter wfits(fitsout);183 184 Info_src* scr;185 Fill_Info_scr(scr,ns);178 FITSTOIReader rfitsb(fitsin_bolo); 179 FITSTOIReader rfitsp(fitsin_point); 180 FITSTOIReader rfitsu(fitsin_utc); 181 FITSTOIReader rfitsl(fitsin_lon); 182 FITSTOIReader rfitsL(fitsin_lat); 183 FITSTOIWriter wfits(fitsout); 184 185 Info_src* scr; 186 Toi2toi_Addsp::Fill_Info_scr(scr,ns); 186 187 187 188 // TOI Processor 188 Toi2toi_Addsp toi2t_sp(scr,ns);189 cout<<"Toi2toi_Addsp created"<<endl;190 191 toi2t_sp.SetEquinox(equi);192 toi2t_sp.SetCoorIn(tcoorin);193 toi2t_sp.SetCoorMap(tcoormap);194 toi2t_sp.SetTestFlag(tflg,badflg);195 toi2t_sp.SetTestMin(tmin,vmin);196 toi2t_sp.SetTestMax(tmax,vmax);197 toi2t_sp.Print(cout);189 // Toi2toi_Addsp toi2t_sp(scr,ns); 190 // cout<<"Toi2toi_Addsp created"<<endl; 191 192 // toi2t_sp.SetEquinox(equi); 193 // toi2t_sp.SetCoorIn(tcoorin); 194 // toi2t_sp.SetCoorMap(tcoormap); 195 // toi2t_sp.SetTestFlag(tflg,badflg); 196 // toi2t_sp.SetTestMin(tmin,vmin); 197 // toi2t_sp.SetTestMax(tmax,vmax); 198 // toi2t_sp.Print(cout); 198 199 199 200 // Definition des tuyaux 200 plombier.Connect(toi2t_sp,"BoloOut",wfits,label_bolo_out);201 plombier.Connect(rfitsb,label_bolo_in,toi2t_sp,"BoloIn");202 201 203 202 // pb dans prout.addOutput(out, toi); 204 cout << " tout va bien " << endl; 203 cout << " tout va bien " <<label_coord2 << endl; 204 205 plombier.Connect(rfitsp,label_coord1,wfits,label_bolo_out); 206 205 207 //pb dans chkinit(); dans afterinit() 206 plombier.Connect(rfitsp,label_coord1,toi2t_sp,"Coord1In"); 207 cout << " ca va plus " << endl; 208 209 plombier.Connect(rfitsp,label_coord2,toi2t_sp,"Coord2In"); 210 211 plombier.Connect(rfitsu,label_utc,toi2t_sp,"utc"); 212 plombier.Connect(rfitsl,label_lon,toi2t_sp,"lon"); 213 plombier.Connect(rfitsL,label_lat,toi2t_sp,"lat"); 214 208 // plombier.Connect(rfitsp,label_coord2,toi2t_sp,"Coord2In"); 209 // plombier.Connect(rfitsp,label_coord1,toi2t_sp,"Coord1In"); 210 211 // plombier.Connect(rfitsb,label_bolo_in,toi2t_sp,"BoloIn"); 212 213 // plombier.Connect(rfitsu,label_utc,toi2t_sp,"utc"); 214 // plombier.Connect(rfitsl,label_lon,toi2t_sp,"lon"); 215 // plombier.Connect(rfitsL,label_lat,toi2t_sp,"lat"); 216 217 // plombier.Connect(toi2t_sp,"BoloOut",wfits,label_bolo_out); 218 // plombier.Connect(rfitsp,label_coord1,wfits,label_bolo_out); 219 cout << " tout va bien " <<label_coord2 << endl; 215 220 216 221 // Run … … 240 245 } 241 246 242 //--------------------------------------------------------------------243 //--------------------------------------------------------------------244 //--------------------------------------------------------------------245 //--------------------------------------------------------------------246 //--------------------------------------------------------------------247 //--------------------------------------------------------------------248 void Fill_Info_scr(Info_src* scr, int_4 ns)249 {250 for (int i=0; i<ns ; i++){251 scr[i].glon = 80.+i*10.;252 scr[i].glat = 0.;253 scr[i].amp = 1.;254 scr[i].tau1 = 0.5;255 scr[i].tau2 = 0.5;256 }257 }
Note:
See TracChangeset
for help on using the changeset viewer.