EleFits  4.0.1
A modern C++ API on top of CFitsIO
Classes | Functions
Image data unit handlers

Detailed Description

Read and write image HDUs.

There are two main classes to perform image HDU I/Os:

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):

hdu.raster().writeRegion<2>({ { 144, 36 }, { { 8, 16 }, { 32, 48 } } }, data);

where:

See also
Hdu

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.