23 TFITSHDU hdu(dir +
"/fitsio/sample5.fits[1]");
27 std::unique_ptr<TVectorD> vec1(hdu.GetTabRealVectorColumn(
"ra"));
28 std::unique_ptr<TVectorD> vec2(hdu.GetTabRealVectorColumn(
"dec"));
29 std::unique_ptr<TVectorD> vec3(hdu.GetTabRealVectorColumn(
"flux_g"));
30 std::unique_ptr<TVectorD> vec4(hdu.GetTabRealVectorColumn(
"brick_primary"));
32 for (
auto i :
ROOT::TSeqI(vec1->GetLwb(), vec1->GetUpb())) {
33 const auto bp = (*vec4)[i];
35 const auto gflux = (*vec3)[i];
36 const auto ra = (*vec1)[i];
37 const auto dec = (*vec2)[i];
38 printf(
"RA %f DEC %f G-FLUX %f\n", ra, dec, gflux);
A pseudo container class which is a generator of indices.
FITS file interface class.