Changeset 2359 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- Apr 1, 2003, 3:27:48 PM (22 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 4 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();
Note:
See TracChangeset
for help on using the changeset viewer.