Changeset 1785 in Sophya
- Timestamp:
- Nov 22, 2001, 5:54:54 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoiwtr.cc
r1738 r1785 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: fitstoiwtr.cc,v 1.1 8 2001-11-08 15:47:45 aubourgExp $5 // $Id: fitstoiwtr.cc,v 1.19 2001-11-22 16:54:54 cecile Exp $ 6 6 7 7 #include "fitstoiwtr.h" … … 16 16 fname = fn; 17 17 fstatus = 0; 18 implicitSN = false; 18 19 nCols = 1; 19 20 … … 31 32 } 32 33 34 void FITSTOIWriter::setImplicitSN() { 35 implicitSN = true; 36 nCols = 0; 37 } 33 38 34 39 void FITSTOIWriter::addInput(string name, TOI* toi, bool withFlag) { … … 66 71 char** colunits = new (char*[nCols]); 67 72 68 colnames[0] = "sampleNum"; 69 coltypes[0] = "1D"; 70 colunits[0] = "integer"; 71 73 if (!implicitSN) { 74 colnames[0] = "sampleNum"; 75 coltypes[0] = "1D"; 76 colunits[0] = "integer"; 77 } 78 72 79 cout << " FITSTOIWriter::run() - Creating output FITS file: " 73 80 << fname << endl; … … 139 146 // if ((sn%2000 == 0) || (sn<snb+5)) 140 147 //cout << " DBG-B-FitsWriter::run()" << sn << endl; 141 double xx = sn; 148 149 if (!implicitSN) { 150 double xx = sn; 151 fits_write_col_dbl(fptr, 1, fitsLine, 1, 1, &xx, &fstatus); 152 } 142 153 fits_lock(); 143 fits_write_col_dbl(fptr, 1, fitsLine, 1, 1, &xx, &fstatus); 144 154 145 155 for (i=0; i<ndata; i++) { 146 156 pair<int,bool> p = colsinput[i]; -
trunk/ArchTOIPipe/Kernel/fitstoiwtr.h
r1765 r1785 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: fitstoiwtr.h,v 1.1 0 2001-11-14 14:12:32 aubourgExp $7 // $Id: fitstoiwtr.h,v 1.11 2001-11-22 16:54:54 cecile Exp $ 8 8 9 9 … … 23 23 ~FITSTOIWriter(); 24 24 25 void setImplicitSN(); 25 26 virtual void afterinit(); 26 27 … … 34 35 35 36 private: 37 bool implicitSN; 36 38 string fname; 37 39 fitsfile *fptr;
Note:
See TracChangeset
for help on using the changeset viewer.