Changeset 2359 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Apr 1, 2003, 3:27:48 PM (22 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/Makefile.in
r2328 r2359 65 65 fitstoirdr.cc fitstoiwtr.cc asciitoiwtr.cc \ 66 66 toisegment.cc toiseqbuff.cc cgt.cc \ 67 fitsringwtr.cc $(PIOFILES)67 fitsringwtr.cc fitsringrdr.cc $(PIOFILES) 68 68 69 69 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) -
trunk/ArchTOIPipe/Kernel/fitsringrdr.cc
r2353 r2359 2 2 // Christophe Magneville 3 3 // Reza Ansari 4 // $Id: fitsringrdr.cc,v 1. 2 2003-03-26 09:18:44 cecileExp $4 // $Id: fitsringrdr.cc,v 1.3 2003-04-01 13:27:48 aubourg Exp $ 5 5 6 6 #include "fitsringrdr.h" … … 61 61 fits_movabs_hdu(fptr, 2, NULL, &fstatus); 62 62 63 fits_get_num_ cols(fptr,&nSamples,&fstatus);63 fits_get_num_rows(fptr,&nSamples,&fstatus); 64 64 65 65 cout << "FITSRingReader nSamples = " << nSamples << endl; … … 73 73 declareOutput("CircPhi"); 74 74 declareOutput("signal"); 75 75 openFile(fname); 76 76 } 77 77 … … 119 119 120 120 fits_lock(); 121 122 fits_read_key(fptr, TLONG, "NCIRCLES", &nRings, "Number of rings", &fstatus); 121 fits_movabs_hdu(fptr, 1, NULL, &fstatus); 122 char commt[200]; 123 fits_read_key(fptr, TLONG, "NCIRCLES", &nRings, commt, &fstatus); 123 124 fits_unlock(); 124 125 … … 134 135 fits_movabs_hdu(fptr, ring+2, NULL, &fstatus); 135 136 strcpy(buf, "RINGDATA"); 136 fits_read_key(fptr, TSTRING, "PDMTYPE", &buf, "Planck Data Model Type", &fstatus);137 fits_read_key(fptr, TDOUBLE, "CIRTHETA", &theta, "Theta angle in radians", &fstatus);138 fits_read_key(fptr, TDOUBLE, "CIRPHI", &phi, "Phi angle in radians", &fstatus);139 fits_read_key(fptr, TDOUBLE, "CIRAPER", &aperture, "Aperture angle in radians", &fstatus);140 fits_read_key(fptr, TLONG, "NSAMPLES", &nSamples, "Number of samples on the circle", &fstatus);137 fits_read_key(fptr, TSTRING, "PDMTYPE", &buf, commt, &fstatus); 138 fits_read_key(fptr, TDOUBLE, "CIRTHETA", &theta, commt, &fstatus); 139 fits_read_key(fptr, TDOUBLE, "CIRPHI", &phi, commt, &fstatus); 140 fits_read_key(fptr, TDOUBLE, "CIRAPER", &aperture, commt, &fstatus); 141 fits_read_key(fptr, TLONG, "NSAMPLES", &nSamples, commt, &fstatus); 141 142 fits_unlock(); 142 143 -
trunk/ArchTOIPipe/Kernel/fitsringrdr.h
r2353 r2359 6 6 // Christophe Magneville 7 7 // Reza Ansari 8 // $Id: fitsringrdr.h,v 1. 2 2003-03-26 09:18:44 cecileExp $8 // $Id: fitsringrdr.h,v 1.3 2003-04-01 13:27:48 aubourg Exp $ 9 9 10 10 #ifndef FITSRINGRDR_H … … 46 46 47 47 private: 48 intnSamples;48 long nSamples; 49 49 long nRings; 50 50 double aperture; -
trunk/ArchTOIPipe/Kernel/piotoirdr.cc
r2332 r2359 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: piotoirdr.cc,v 1. 2 2003-03-09 23:20:30aubourg Exp $5 // $Id: piotoirdr.cc,v 1.3 2003-04-01 13:27:48 aubourg Exp $ 6 6 7 7 #include "piotoirdr.h" … … 27 27 //pioTOI = new PIOObjectTOI(object.c_str(), "r"); 28 28 fits_lock(); 29 pioGroup = PIOOpenTOI(const_cast<char*>( object.c_str()), "r");29 pioGroup = PIOOpenTOI(const_cast<char*>(group.c_str()), "r"); 30 30 fits_unlock(); 31 31 readBounds(); -
trunk/ArchTOIPipe/ProcWSophya/Makefile.in
r2239 r2359 48 48 SRCFILES=map2toi.cc toi2map.cc rztoi.cc simtoipr.cc ktoibad.cc smoothtoi.cc \ 49 49 noisegen.cc meanvarestim.cc simoffset.cc simcleaner.cc flag2map.cc toi2toi_addsp.cc \ 50 Bolos2ring.cc PSB2ring.cc 50 Bolos2ring.cc PSB2ring.cc toi2ring.cc ring2cout.cc 51 51 52 52 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) -
trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
r2354 r2359 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: ring2cout.cc,v 1. 2 2003-03-26 09:48:53 cecileExp $5 // $Id: ring2cout.cc,v 1.3 2003-04-01 13:27:48 aubourg Exp $ 6 6 7 7 #include "toimanager.h" … … 14 14 //////////////////////////////////////////////////////////////////////// 15 15 Ring2cout::Ring2cout(long n) 16 :totnscount(0), nRings( 0)16 :totnscount(0), nRings(1) 17 17 { 18 18 setNSamples(n); … … 55 55 getData(2,k*Nsamples,Nsamples,val); 56 56 mSnRead ++; 57 wontNeedBefore(k*Nsamples); 57 58 58 59 cout << " ring " << k << endl; 59 60 for (int i=i; i< Nsamples;i++) 60 cout << ctheta << " " << cphi<< " " << val<< endl;61 cout << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl; 61 62 totnscount++; 62 63
Note:
See TracChangeset
for help on using the changeset viewer.