Changeset 2360 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Apr 4, 2003, 4:17:37 PM (22 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitsringrdr.cc
r2359 r2360 2 2 // Christophe Magneville 3 3 // Reza Ansari 4 // $Id: fitsringrdr.cc,v 1. 3 2003-04-01 13:27:48 aubourgExp $4 // $Id: fitsringrdr.cc,v 1.4 2003-04-04 14:17:03 cecile Exp $ 5 5 6 6 #include "fitsringrdr.h" … … 29 29 Buff_Sz = (buffsz>0) ? buffsz: 1024; 30 30 return; 31 } 32 33 void FITSRingReader::setNRings(long n) { 34 nRings = n; 31 35 } 32 36 … … 131 135 sprintf(xname, "CRing_%d", ring); 132 136 133 134 137 fits_lock(); 135 138 fits_movabs_hdu(fptr, ring+2, NULL, &fstatus); … … 141 144 fits_read_key(fptr, TLONG, "NSAMPLES", &nSamples, commt, &fstatus); 142 145 fits_unlock(); 143 146 wontNeedBefore(ring*nSamples); 147 cout << "!!!!!!! RING " << ring << endl; 148 144 149 for (int i=0; i<nSamples; i++) { 145 150 double data; … … 154 159 155 160 fits_lock(); 156 if (fptr) { 157 fits_close_file(fptr,&fstatus); 158 fptr = NULL; 159 } 161 fits_report_error(stderr, fstatus); 162 fits_close_file(fptr,&fstatus); 160 163 fits_unlock(); 161 164 } -
trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
r2359 r2360 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: ring2cout.cc,v 1. 3 2003-04-01 13:27:48 aubourgExp $5 // $Id: ring2cout.cc,v 1.4 2003-04-04 14:17:37 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 13 13 14 14 //////////////////////////////////////////////////////////////////////// 15 Ring2cout::Ring2cout(long n )16 :totnscount(0) , nRings(1)15 Ring2cout::Ring2cout(long ns, long nr) 16 :totnscount(0) 17 17 { 18 setNSamples(n); 18 setNSamples(ns); 19 setNRings(nr); 19 20 } 20 21 … … 40 41 void Ring2cout::run() { 41 42 42 cout << "///////////////////////////////// coucou !" << endl;43 44 45 46 43 //--------------------------------------------------------- 47 44 try { 48 45 uint_4 mSnRead=0, mSnFilled=0, BadCoorRange=0; 46 47 cout << " ring " << Nrings << " ns " << Nsamples<< endl; 49 48 double ctheta[Nsamples],cphi[Nsamples],val[Nsamples]; 50 51 for (int k=0; k<nRings; k++) { 49 for (int k=0; k<Nrings; k++) { 52 50 53 51 getData(0,k*Nsamples,Nsamples,ctheta); … … 55 53 getData(2,k*Nsamples,Nsamples,val); 56 54 mSnRead ++; 57 wontNeedBefore(k*Nsamples);58 55 59 cout << " ring " << k << endl; 60 for (int i=i; i< Nsamples;i++) 61 cout << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl; 62 totnscount++; 56 for (int i=0; i< Nsamples;i++) 57 cout << Nrings << " " << k <<" " << i <<" " << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl; 58 totnscount+=Nsamples; 63 59 64 60 } 65 66 cout<<"RING2 Toi::run: Samples Read "<<mSnRead61 62 cout<<"RING2cout::run: Samples Read "<<mSnRead 67 63 <<" Filled "<<mSnFilled 68 64 <<" BadCoorRange="<<BadCoorRange<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.