EleFits  4.0.0
A modern C++ API on top of CFitsIO

◆ readTo() [2/2]

template<typename T , long n = 2>
void Euclid::Fits::ImageRaster::readTo ( Subraster< T, n > &  subraster) const

Read the whole data unit into an existing Subraster.

There are several options to read the whole data unit:

  • as a new VecRaster object;
  • by filling an existing Raster object;
  • by filling an existing Subraster object.

In the last two cases, the raster or subraster is assumed to already have a conforming shape.

Warning
Filling a Subraster is much slower than filling a Raster.