EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ append_null_image()

const ImageHdu & append_null_image ( const std::string name,
const RecordSeq records,
const Position< N > &  shape 
)

Append a new image extension and fill the data unit with null values.

Template Parameters
TThe value type
NThe dimension parameter

The null value is defined as follows:

  • For integer images, if the BLANK record is among the provided ones, then its value is used unscaled (BZERO is not taken into account); Otherwise, the data unit is filled with zeros.
  • For real images, the data unit is filled with NaNs.
Example
f.append_null_image<char, 3>("CUBE", {{"BLANK", 255}}, {28, 06, 1989});