EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
Read and write image HDUs.
There are two main classes to perform image HDU I/Os:
ImageHdu
is dedicated to HDU-level tasks; It roughly extends Hdu
by providing a raster()
method, to access the data unit, as well as a few shortcuts like readRaster()
.ImageRaster
focuses on services to read and write the data unit.In addition, FileMemRegions
is a helper class to specify which regions to consider, both in the Fits file and in the Raster
object, when reading or writing the data unit region-wise.
For example, here is how to write the 2D region of a raster spanning from (8, 16) to (32, 48) into the HDU at position (144, 36):
where:
hdu
is an ImageHdu
raster()
returns an ImageRaster
FileMemRegions
is built inline through brace-enclosed initializer listsRaster
Classes | |
class | Euclid::Fits::FileMemRegions< n > |
Mapping between an in-file (Fits image data unit) region and an in-memory (raster) region for reading and writing image regions. More... | |
class | Euclid::Fits::ImageHdu |
Image HDU reader-writer. More... | |
class | Euclid::Fits::ImageRaster |
Reader-writer for the image data unit. More... | |
Functions | |
template<long n> | |
FileMemRegions< n > | Euclid::Fits::makeMemRegion (const Region< n > &memoryRegion) |
Create a FileMemRegions with in-file position at origin. | |
template<long n> | |
FileMemRegions< n > | Euclid::Fits::makeMemRegion (const Position< n > &memoryPosition) |
Create a FileMemRegions with whole in-file region. | |