Changeset 12628 for trunk/Mars/mraw/MRawFitsRead.cc
- Timestamp:
- 11/23/11 14:17:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mraw/MRawFitsRead.cc
r12327 r12628 72 72 fPixelMap.resize(1440); 73 73 74 if (!name) 75 return kTRUE; 76 74 77 ifstream fin(name); 75 78 … … 108 111 if (l!=1440) 109 112 { 110 gLog << err << "ERROR - Problems reading FACTmapV5.txt"<< endl;113 gLog << err << "ERROR - Problems reading " << name << endl; 111 114 fPixelMap.resize(0); 112 115 return kFALSE; … … 136 139 } 137 140 141 const string type = fin.GetStr("RUNTYPE"); 142 138 143 fRawRunHeader->SetValidMagicNumber(); 139 144 fRawRunHeader->SetNumEvents(fin.GetUInt("NAXIS2")); 140 145 fRawRunHeader->InitPixels(fin.GetUInt("NPIX")); 141 fRawRunHeader->SetObservation( "", "FACT");146 fRawRunHeader->SetObservation(type=="4294967295"?"":fin.GetStr("RUNTYPE"), "FACT"); 142 147 fRawRunHeader->SetRunInfo(0, fin.GetUInt("NIGHT"), fin.GetUInt("RUNID")); 143 148 fRawRunHeader->InitFact(fin.GetUInt("NPIX")/9, 9, fin.GetUInt("NROI"), fPixelMap.size()==0?0:fPixelMap.data()); … … 171 176 fPCTime.resize(2); 172 177 if (!fin.SetVecAddress("UnixTimeUTC", fPCTime)) 173 return kFALSE; 178 if (!fin.SetVecAddress("PCTime", fPCTime)) 179 return kFALSE; 174 180 175 181 if (!fin.SetPtrAddress("Data", (int16_t*)(*data)->GetArray(), (*data)->GetSize()/2))
Note:
See TracChangeset
for help on using the changeset viewer.