Changeset 17291


Ignore:
Timestamp:
10/21/13 13:36:11 (11 years ago)
Author:
lyard
Message:
BugFixed fitsdump to display the correct num of rows also for compressed tables
File:
1 edited

Legend:

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

    r17259 r17291  
    132132
    133133    cout << " " << fKeyMap.find("EXTNAME")->second.value << " [";
    134     cout << fKeyMap.find("NAXIS2")->second.value << "]\n";
     134    cout << GetNumRows() << "]\n";
    135135
    136136    for (auto it = fColMap.begin(); it != fColMap.end(); it++)
     
    218218    const fits::Table::Keys &fKeyMap = GetKeys();
    219219
    220     fout << "\nTable: " << fKeyMap.find("EXTNAME")->second.value << " (rows=" << fKeyMap.find("NAXIS2")->second.value << ")\n";
     220    fout << "\nTable: " << fKeyMap.find("EXTNAME")->second.value << " (rows=" << GetNumRows() << ")\n";
    221221    if (fKeyMap.find("COMMENT") != fKeyMap.end())
    222222        fout << "Comment: \t" << fKeyMap.find("COMMENT")->second.value << "\n";
     
    448448        fout << "## File:      \t" << filename << '\n';
    449449    fout << "## Table:     \t" << fKeyMap.find("EXTNAME")->second.value << '\n';
    450     fout << "## NumRows:   \t" << GetInt("NAXIS2") << '\n';
     450    fout << "## NumRows:   \t" << GetNumRows() << '\n';
    451451    fout << "## Comment:   \t" << ((fKeyMap.find("COMMENT") != fKeyMap.end()) ? fKeyMap.find("COMMENT")->second.value : "") << '\n';
    452452#ifdef HAVE_ROOT
     
    680680        fout << "## File:      \t" << filename << '\n';
    681681    fout << "## Table:     \t" << fKeyMap.find("EXTNAME")->second.value << '\n';
    682     fout << "## NumRows:   \t" << GetInt("NAXIS2") << '\n';
     682    fout << "## NumRows:   \t" << GetNumRows() << '\n';
    683683    fout << "## Comment:   \t" << ((fKeyMap.find("COMMENT") != fKeyMap.end()) ? fKeyMap.find("COMMENT")->second.value : "") << '\n';
    684684    fout << "## --------------------------------------------------------------------------\n";
Note: See TracChangeset for help on using the changeset viewer.