- Timestamp:
- 01/17/12 09:03:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r12740 r12747 195 195 fFilename = filename; 196 196 197 const fits::Table::Columns& tCols = fFile-> getColumns();197 const fits::Table::Columns& tCols = fFile->GetColumns(); 198 198 199 199 for (auto it=tCols.begin(); it != tCols.end(); it++) 200 200 fColMap.insert(*it); 201 201 202 const fits::Table::Keys& tkeys = fFile-> getKeys();202 const fits::Table::Keys& tkeys = fFile->GetKeys(); 203 203 204 204 for (auto it=tkeys.begin(); it != tkeys.end(); it++) … … 666 666 ; 667 667 } 668 if (list.size() == 1 && list[0] == "UnixTimeUTC")668 if (list.size() == 1 && (list[0] == "UnixTimeUTC" || list[0] == "PCTime")) 669 669 { 670 670 if (i==0) … … 1093 1093 1094 1094 //add the time column to the given columns 1095 if (fColMap.find("Time") == fColMap.end() && fColMap.find("UnixTimeUTC") == fColMap.end()) 1095 if (fColMap.find("Time") == fColMap.end() && 1096 fColMap.find("UnixTimeUTC") == fColMap.end()) 1096 1097 { 1097 1098 cerr << "Error: time column could not be found in given table. Aborting" << endl; … … 1175 1176 Time mjdTime(unixTimeT); 1176 1177 yValues[i-1] = mjdTime.Mjd(); 1178 if (yValues[i-1] < 40587) 1179 yValues[i-1] += 40587; 1177 1180 } 1178 1181 else
Note:
See TracChangeset
for help on using the changeset viewer.