EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
◆ readRegionTo()
template<typename T , long m, long n>
Read a region of the data unit into a region of an existing
There are several options to read a region of the data unit:
For example, to read the HDU region from position (50, 80) to position (100, 120) into an existing raster at position (25, 40), do: const FileMemRegions<2> regions({ 25, 40 }, { { 50, 80 }, { 100, 120 } });
image.readRegionTo(regions, raster);
where In simpler cases, where the in-file or in-memory front position is 0, factories can be used, e.g. to read into position 0 of the raster: image.readRegionTo<2>({ { 50, 80 }, { 100, 120 } }, raster);
|