◆ readTo() [1/2]
Read a column into an existing
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
long rowCount = readRowCount();
std::vector<float> values(rowCount * 2);
PtrColumn<float> ra({"RA", "deg", 1}, rowCount, &values[0]);
columns.readTo("RA", ra);
columns.readTo("DEC", dec);
T dec(T... args)
|