Commit 611f99440ad543dbf09fcd6d379caaafb861784d

Authored by knodlseder
1 parent 653cef59

update for nex GFits interface

Showing 1 changed file with 3 additions and 3 deletions
src/ctselect/ctselect.cpp
... ... @@ -265,7 +265,7 @@ void ctselect::copy(void)
265 265  
266 266 // Optional perform Bit column testing
267 267 #if BIT_COLUMN_TEST
268   - GFitsTableBitCol* ptr = (GFitsTableBitCol*)file.hdu("EVENTS")->column("TELMASK");
  268 + GFitsTableBitCol* ptr = (GFitsTableBitCol*)file.table("EVENTS")->column("TELMASK");
269 269 for (int i = 0; i < ptr->length(); ++i) {
270 270 std::cout << i << ": ";
271 271 for (int k = 0; k < ptr->number(); ++k)
... ... @@ -287,7 +287,7 @@ void ctselect::copy(void)
287 287  
288 288 // Optional perform String column testing
289 289 #if STRING_COLUMN_TEST
290   - GFitsTableStringCol* ptr = (GFitsTableStringCol*)file.hdu("ANALYSIS")->column("UNIT");
  290 + GFitsTableStringCol* ptr = (GFitsTableStringCol*)file.table("ANALYSIS")->column("UNIT");
291 291 std::cout << "Anynul: " << ptr->anynul() << std::endl;
292 292 for (int i = 0; i < ptr->length(); ++i) {
293 293 std::cout << "\"" << ptr->string(i) << "\"" << std::endl;
... ... @@ -301,7 +301,7 @@ void ctselect::copy(void)
301 301 // Optional perform String column testing
302 302 #if STRING_COLUMN_TEST
303 303 GFits file2(m_outfile);
304   - GFitsTableStringCol* ptr2 = (GFitsTableStringCol*)file2.hdu("ANALYSIS")->column("UNIT");
  304 + GFitsTableStringCol* ptr2 = (GFitsTableStringCol*)file2.table("ANALYSIS")->column("UNIT");
305 305 std::cout << "Anynul: " << ptr2->anynul() << std::endl;
306 306 for (int i = 0; i < ptr2->length(); ++i) {
307 307 std::cout << "\"" << ptr2->string(i) << "\"" << std::endl;
... ...