EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
◆ read() [2/2]
template<typename T >
Read the column with given index. There are several ways to read a column, which can be specified either by its name or 0-based index. The simplest way is to read the whole column as a new Example usages: // Create a new Column
auto fromName = columns.read<float>("RA");
auto fromIndex = columns.read<float>(1);
// Concatenate two columns into an existing Column
std::vector<float> values(rowCount * 2);
columns.readTo("RA", ra);
columns.readTo("DEC", dec);
|