Changeset 12747 for trunk


Ignore:
Timestamp:
01/17/12 09:03:20 (13 years ago)
Author:
lyard
Message:
put fitsdump in line with fits.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsdump.cc

    r12740 r12747  
    195195    fFilename = filename;
    196196
    197     const fits::Table::Columns& tCols = fFile->getColumns();
     197    const fits::Table::Columns& tCols = fFile->GetColumns();
    198198
    199199    for (auto it=tCols.begin(); it != tCols.end(); it++)
    200200        fColMap.insert(*it);
    201201
    202     const fits::Table::Keys& tkeys = fFile->getKeys();
     202    const fits::Table::Keys& tkeys = fFile->GetKeys();
    203203
    204204    for (auto it=tkeys.begin(); it != tkeys.end(); it++)
     
    666666                    ;
    667667            }
    668             if (list.size() == 1 && list[0] == "UnixTimeUTC")
     668            if (list.size() == 1 && (list[0] == "UnixTimeUTC" || list[0] == "PCTime"))
    669669            {
    670670                if (i==0)
     
    10931093
    10941094      //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())
    10961097      {
    10971098          cerr << "Error: time column could not be found in given table. Aborting" << endl;
     
    11751176              Time mjdTime(unixTimeT);
    11761177              yValues[i-1] = mjdTime.Mjd();
     1178              if (yValues[i-1] < 40587)
     1179                yValues[i-1] += 40587;
    11771180          }
    11781181          else
Note: See TracChangeset for help on using the changeset viewer.