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