mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::fits::fitsFile< dataT > Class Template Reference

template<typename dataT>
class mx::fits::fitsFile< dataT >

Class to manage interactions with a FITS file.

This class wraps the functionality of cfitsio.

Template Parameters
dataTis the datatype to use for in-memory storage of the image. This does not have to match the data type stored on disk for reading, but will be the type used for writing.

Definition at line 53 of file fitsFile.hpp.

#include <ioutils/fits/fitsFile.hpp>

Public Member Functions

 fitsFile ()
 Default constructor. More...
 
 fitsFile (const std::string &fname, bool doopen=true)
 Constructor with m_fileName, and option to open. More...
 
 ~fitsFile ()
 Destructor. More...
 
std::string fileName ()
 Get the current value of m_fileName. More...
 
int fileName (const std::string &fname, bool doopen=true)
 Set the file path, and optionally open the file. More...
 
int naxis ()
 Get the current value of m_naxis. More...
 
long naxes (int dim)
 Get the current value of m_naxes for the specified dimension. More...
 
int open ()
 Open the file and gets its dimensions. More...
 
int open (const std::string &fname)
 Open the file, first setting the file path. More...
 
int close ()
 Close the file. More...
 
int getDimensions ()
 Get the number of dimensions (i.e. m_naxis) More...
 
long getSize ()
 Get the total size. More...
 
long getSize (size_t axis)
 Get the size of a specific dimension. More...
 
Reading Eigen Arrays

These methods read FITS data into array types with an Eigen-like interface.

template<typename arrT >
int read (arrT &data)
 Read the contents of the FITS file into an Eigen array type (not a simple pointer). More...
 
template<typename arrT >
int read (arrT &data, fitsHeader &head)
 Read the contents of the FITS file into an Eigen array type (not a simple pointer). More...
 
template<typename arrT >
int read (arrT &data, const std::string &fname)
 Read the contents of the FITS file into an Eigen array type (not a simple pointer). More...
 
template<typename arrT >
int read (arrT &data, fitsHeader &head, const std::string &fname)
 Read the contents of the FITS file into an Eigen array type (not a simple pointer). More...
 
template<typename cubeT >
int read (cubeT &cube, const std::vector< std::string > &flist, std::vector< fitsHeader > *heads=0)
 Read data from a vector list of files into an image cube. More...
 
template<typename cubeT >
int read (cubeT &cube, std::vector< fitsHeader > &heads, const std::vector< std::string > &flist)
 Read data from a vector of files into an image cube with individual headers. More...
 
Reading Headers
int readHeader (fitsHeader &head)
 Read the header from the fits file. More...
 
int readHeader (fitsHeader &head, const std::string &fname)
 Read the header from the fits file. More...
 
int readHeader (std::vector< fitsHeader > &heads, const std::vector< std::string > &flist)
 Read the headers from a list of FITS files. More...
 
Writing Basic Arrays

These methods write basic arrays specified by a pointer to FITS.

int write (const dataT *im, int d1, int d2, int d3, fitsHeader *head)
 Write the contents of a raw array to the FITS file. More...
 
int write (const dataT *im, int d1, int d2, int d3)
 Write the contents of a raw array to the FITS file. More...
 
int write (const dataT *im, int d1, int d2, int d3, fitsHeader &head)
 Write the contents of a raw array to the FITS file. More...
 
int write (const std::string &fname, const dataT *im, int d1, int d2, int d3)
 Write the contents of a raw array to the FITS file. More...
 
int write (const std::string &fname, const dataT *im, int d1, int d2, int d3, fitsHeader &head)
 Write the contents of a raw array to the FITS file. More...
 
Writing Eigen Arrays

These methods write array types with an Eigen-like interface.

template<typename arrT >
int write (const std::string &fname, const arrT &im)
 Write the contents of an Eigen-type array to a FITS file. More...
 
template<typename arrT >
int write (const std::string &fname, const arrT &im, fitsHeader &head)
 Write the contents of an Eigen-type array to a FITS file. More...
 
Reading Subsets

It is often desirable to read only a subset of an image or images into memory. These methods allow you to specify this.

void setReadSize ()
 Set to read all the pixels in the file. More...
 
void setReadSize (long x0, long y0, long xpix, long ypix)
 Set to read only a subset of the pixels in the file. More...
 
void setCubeReadSize ()
 Set to read all frames from a cube. More...
 
void setCubeReadSize (long z0, long zframes)
 Set the number of frames to read from a cube. More...
 

Protected Member Functions

void construct ()
 One time initialization common to all constructors. More...
 

Protected Attributes

std::string m_fileName
 The path to the file. More...
 
fitsfile * m_fptr {nullptr}
 The cfitsio data structure. More...
 
int m_naxis
 The dimensions of the image (1D, 2D, 3D etc) More...
 
long * m_naxes {nullptr}
 The size of each dimension. More...
 
bool m_isOpen {false}
 Flag indicating whether the file is open or not. More...
 
dataT m_nulval {0}
 The value to replace null values with. More...
 
int m_anynul {0}
 Records whether any null values were replaced. More...
 
int m_noComment {0}
 Flag to control whether the comment string is read. More...
 
long m_x0 {-1}
 The starting x-pixel to read from. More...
 
long m_y0 {-1}
 The starting y-pixel to read from. More...
 
long m_xpix {-1}
 The number of x-pixels to read. More...
 
long m_ypix {-1}
 The number of y-pixels to read. More...
 
long m_z0 {-1}
 The starting frame to read from a cube. More...
 
long m_zframes {-1}
 The number of frames to read from a cube. More...
 

Reading Basic Arrays

These methods read FITS data into basic or raw arrays specified by a pointer.

void pixarrs (long **fpix, long **lpix, long **inc)
 Fill in the read-size arrays for reading a subset (always used) More...
 
int read (dataT *data)
 Read the contents of the FITS file into an array. More...
 
int read (dataT *data, fitsHeader &head)
 Read the contents of the FITS file into an array. More...
 
int read (dataT *data, const std::string &fname)
 Read the contents of the FITS file into an array. More...
 
int read (dataT *data, fitsHeader &head, const std::string &fname)
 Read the contents of the FITS file into an array and read the header. More...
 
int read (dataT *im, const std::vector< std::string > &flist)
 Read data from a vector list of files into an image cube. More...
 
int read (dataT *im, std::vector< fitsHeader > &heads, const std::vector< std::string > &flist)
 Read data from a vector of files into an image cube with individual headers. More...
 

Constructor & Destructor Documentation

◆ fitsFile() [1/2]

template<typename dataT >
mx::fits::fitsFile< dataT >::fitsFile

Default constructor.

Definition at line 562 of file fitsFile.hpp.

◆ fitsFile() [2/2]

template<typename dataT >
mx::fits::fitsFile< dataT >::fitsFile ( const std::string &  fname,
bool  doopen = true 
)

Constructor with m_fileName, and option to open.

Parameters
fnameFile name to set on construction
doopenIf true, then the file is opened (the default).

Definition at line 568 of file fitsFile.hpp.

◆ ~fitsFile()

template<typename dataT >
mx::fits::fitsFile< dataT >::~fitsFile

Destructor.

Definition at line 575 of file fitsFile.hpp.

Member Function Documentation

◆ close()

template<typename dataT >
int mx::fits::fitsFile< dataT >::close

Close the file.

Returns
0 on success
-1 on error

Definition at line 681 of file fitsFile.hpp.

References mx::fits::fitsErrText().

◆ construct()

template<typename dataT >
void mx::fits::fitsFile< dataT >::construct
protected

One time initialization common to all constructors.

Definition at line 557 of file fitsFile.hpp.

◆ fileName() [1/2]

template<typename dataT >
std::string mx::fits::fitsFile< dataT >::fileName

Get the current value of m_fileName.

Returns
the current value of m_fileName.

Definition at line 583 of file fitsFile.hpp.

◆ fileName() [2/2]

template<typename dataT >
int mx::fits::fitsFile< dataT >::fileName ( const std::string &  fname,
bool  doopen = true 
)

Set the file path, and optionally open the file.

Returns
0 on success
-1 on success
Parameters
fnameThe new file name.
doopenIf true, then the file is opened (the default).

Definition at line 589 of file fitsFile.hpp.

◆ getDimensions()

template<typename dataT >
int mx::fits::fitsFile< dataT >::getDimensions

Get the number of dimensions (i.e. m_naxis)

Definition at line 711 of file fitsFile.hpp.

◆ getSize() [1/2]

template<typename dataT >
long mx::fits::fitsFile< dataT >::getSize

Get the total size.

Definition at line 719 of file fitsFile.hpp.

◆ getSize() [2/2]

template<typename dataT >
long mx::fits::fitsFile< dataT >::getSize ( size_t  axis)

Get the size of a specific dimension.

Definition at line 738 of file fitsFile.hpp.

◆ naxes()

template<typename dataT >
long mx::fits::fitsFile< dataT >::naxes ( int  dim)

Get the current value of m_naxes for the specified dimension.

Returns
the current value of m_naxes for the specified dimension. -1 if no such dimension
Test:
Scenario: fitsFile calculating subimage sizes [test doc]
Parameters
[in]dimthe dimension

Definition at line 614 of file fitsFile.hpp.

◆ naxis()

template<typename dataT >
int mx::fits::fitsFile< dataT >::naxis

Get the current value of m_naxis.

Returns
the current value of m_naxis
Test:
Scenario: fitsFile calculating subimage sizes [test doc]

Definition at line 608 of file fitsFile.hpp.

◆ open() [1/2]

template<typename dataT >
int mx::fits::fitsFile< dataT >::open

Open the file and gets its dimensions.

File name needs to already have been set.
If the file has already been opened, this returns immediately with no re-open.

Returns
0 on success
-1 on error

Definition at line 624 of file fitsFile.hpp.

References mx::fits::fitsErrText().

◆ open() [2/2]

template<typename dataT >
int mx::fits::fitsFile< dataT >::open ( const std::string &  fname)

Open the file, first setting the file path.

Returns
0 on success
-1 on error
Parameters
fnameThe name of the file to open.

Definition at line 675 of file fitsFile.hpp.

◆ pixarrs()

template<typename dataT >
void mx::fits::fitsFile< dataT >::pixarrs ( long **  fpix,
long **  lpix,
long **  inc 
)
protected

Fill in the read-size arrays for reading a subset (always used)

Note
this allocates with new. You are responsible for calling delete.
Test:
Scenario: fitsFile calculating subimage sizes [test doc]
Parameters
fpixPopulated with the lower left pixel to read. Is allocated.
lpixPopulated with the upper right pixel to read. Is allocated.
incThe increment. Is allocated.

Definition at line 754 of file fitsFile.hpp.

◆ read() [1/12]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::read ( arrT &  data)

Read the contents of the FITS file into an Eigen array type (not a simple pointer).

The type arrT can be any type with the following members defined:

  • resize(int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef arrT::Scalar (is the data type, does not have to be dataT)
Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Todo:
this can probably be made part of one read function (or call read(data *)) with a call to resize with SFINAE
Parameters
[out]datais the array, which will be resized as necessary using its resize(int, int) member

Definition at line 980 of file fitsFile.hpp.

References mx::fits::fitsErrText().

◆ read() [2/12]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::read ( arrT &  data,
const std::string &  fname 
)

Read the contents of the FITS file into an Eigen array type (not a simple pointer).

The type arrT can be any type with the following members defined:

  • resize(int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef arrT::Scalar (is the data type, does not have to be dataT)
Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[out]datais the array, which will be resized as necessary using its resize(int, int) member
[in]fnameis the file path, which is passed to fileName

Definition at line 1037 of file fitsFile.hpp.

◆ read() [3/12]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::read ( arrT &  data,
fitsHeader head 
)

Read the contents of the FITS file into an Eigen array type (not a simple pointer).

The type arrT can be any type with the following members defined:

  • resize(int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef arrT::Scalar (is the data type, does not have to be dataT)
Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[out]datais the array, which will be resized as necessary using its resize(int, int) member
[out]headis a fitsHeader object which is passed to readHeader

Definition at line 1028 of file fitsFile.hpp.

◆ read() [4/12]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::read ( arrT &  data,
fitsHeader head,
const std::string &  fname 
)

Read the contents of the FITS file into an Eigen array type (not a simple pointer).

The type arrT can be any type with the following members defined:

  • resize(int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef arrT::Scalar (is the data type, does not have to be dataT)
Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[out]datathe array, which will be resized as necessary using its resize(int, int) member
[out]heada fitsHeader object which is passed to readHeader
[in]fnamethe file path, which is passed to fileName

Definition at line 1048 of file fitsFile.hpp.

◆ read() [5/12]

template<typename dataT >
template<typename cubeT >
int mx::fits::fitsFile< dataT >::read ( cubeT &  cube,
const std::vector< std::string > &  flist,
std::vector< fitsHeader > *  heads = 0 
)

Read data from a vector list of files into an image cube.

The type cubeT can be any type with the following members defined:

  • resize(int, int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef cubeT::Scalar (is the data type, does not have to be dataT)
Note
The images must all be the same size, or all be as large or larger than the subset specified.
Template Parameters
cubeTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[out]cubeA cube which will be resized using its resize(int, int, int) member.
[in]flistThe list of files to read.
[out]heads[optional] A vector of fits headers, allocated to contain one per image.

Definition at line 1063 of file fitsFile.hpp.

References mx::fits::fitsErrText().

◆ read() [6/12]

template<typename dataT >
template<typename cubeT >
int mx::fits::fitsFile< dataT >::read ( cubeT &  cube,
std::vector< fitsHeader > &  heads,
const std::vector< std::string > &  flist 
)

Read data from a vector of files into an image cube with individual headers.

The type cubeT can be any type with the following members defined:

  • resize(int, int, int) (allocates memory)
  • data() (returns a pointer to the underlying array)
  • typedef cubeT::Scalar (is the data type, does not have to be dataT)
Template Parameters
cubeTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[out]cubeA cube which will be resized using its resize(int, int, int) member.
[out]headsThe vector of fits headers, allocated to contain one per image.
[in]flistThe list of files to read.

Definition at line 1150 of file fitsFile.hpp.

◆ read() [7/12]

◆ read() [8/12]

template<typename dataT >
int mx::fits::fitsFile< dataT >::read ( dataT *  data,
const std::string &  fname 
)

Read the contents of the FITS file into an array.

The array pointed to by data must have been allocated.

Returns
0 on success
-1 on error
Parameters
[out]datais an allocated arrray large enough to hold the entire image
[in]fnameis the file path, which is passed to fileName

Definition at line 874 of file fitsFile.hpp.

◆ read() [9/12]

template<typename dataT >
int mx::fits::fitsFile< dataT >::read ( dataT *  data,
fitsHeader head 
)

Read the contents of the FITS file into an array.

The array pointed to by data must have been allocated.

Returns
0 on success
-1 on error
Parameters
[out]dataan allocated arrray large enough to hold the entire image
[out]heada fitsHeader object which is passed to readHeader

Definition at line 863 of file fitsFile.hpp.

◆ read() [10/12]

template<typename dataT >
int mx::fits::fitsFile< dataT >::read ( dataT *  data,
fitsHeader head,
const std::string &  fname 
)

Read the contents of the FITS file into an array and read the header.

The array pointed to by data must have been allocated.

Returns
0 on success
-1 on error
Parameters
[out]dataan allocated arrray large enough to hold the entire image
[out]heada fitsHeader object which is passed to readHeader
[in]fnamethe file path, which is passed to fileName

Definition at line 884 of file fitsFile.hpp.

◆ read() [11/12]

template<typename dataT >
int mx::fits::fitsFile< dataT >::read ( dataT *  im,
const std::vector< std::string > &  flist 
)

Read data from a vector list of files into an image cube.

Parameters
[out]imAn allocated array large enough to hold all the images
[in]flistThe list of files to read.

Definition at line 896 of file fitsFile.hpp.

◆ read() [12/12]

template<typename dataT >
int mx::fits::fitsFile< dataT >::read ( dataT *  im,
std::vector< fitsHeader > &  heads,
const std::vector< std::string > &  flist 
)

Read data from a vector of files into an image cube with individual headers.

Parameters
[out]imAn allocated array large enough to hold all the images
heads[in.out] The vector of fits headers, allocated to contain one per image.
[in]flistThe list of files to read.

Definition at line 922 of file fitsFile.hpp.

◆ readHeader() [1/3]

template<typename dataT >
int mx::fits::fitsFile< dataT >::readHeader ( fitsHeader head)

Read the header from the fits file.

If head is not empty, then only the keywords already in head are updated. Otherwise the complete header is read.

Returns
0 on success
-1 on error
Parameters
[out]heada fitsHeader object

Definition at line 1159 of file fitsFile.hpp.

References mx::fits::fitsHeader::append(), mx::fits::fitsHeader::begin(), mx::fits::fitsHeader::end(), mx::fits::fitsHeader::erase(), mx::fits::fitsErrText(), and mx::fits::fitsHeader::size().

◆ readHeader() [2/3]

template<typename dataT >
int mx::fits::fitsFile< dataT >::readHeader ( fitsHeader head,
const std::string &  fname 
)

Read the header from the fits file.

If head is not empty, then only the keywords already in head are updated. Otherwise the complete header is read.

Returns
0 on success
-1 on error
Parameters
[out]heada fitsHeader object
[in]fnamethe file path, which is passed to fileName

Definition at line 1276 of file fitsFile.hpp.

◆ readHeader() [3/3]

template<typename dataT >
int mx::fits::fitsFile< dataT >::readHeader ( std::vector< fitsHeader > &  heads,
const std::vector< std::string > &  flist 
)

Read the headers from a list of FITS files.

In each case, if the header is not empty then only the keywords already in head are updated. Otherwise the complete header is read.

Returns
0 on success
-1 on error
Parameters
flistA vector of fitsHeader objects to read into. [in] A list of files, each of which is passed to fileName

Definition at line 1285 of file fitsFile.hpp.

◆ setCubeReadSize() [1/2]

template<typename dataT >
void mx::fits::fitsFile< dataT >::setCubeReadSize

Set to read all frames from a cube.

Definition at line 1486 of file fitsFile.hpp.

◆ setCubeReadSize() [2/2]

template<typename dataT >
void mx::fits::fitsFile< dataT >::setCubeReadSize ( long  z0,
long  zframes 
)

Set the number of frames to read from a cube.

Test:
Scenario: fitsFile calculating subimage sizes [test doc]
Parameters
z0is the starting frame to read
zframesis the number of frames to read

Definition at line 1493 of file fitsFile.hpp.

◆ setReadSize() [1/2]

template<typename dataT >
void mx::fits::fitsFile< dataT >::setReadSize

◆ setReadSize() [2/2]

template<typename dataT >
void mx::fits::fitsFile< dataT >::setReadSize ( long  x0,
long  y0,
long  xpix,
long  ypix 
)

Set to read only a subset of the pixels in the file.

Test:
Scenario: fitsFile calculating subimage sizes [test doc]
Parameters
x0is the starting x-pixel to read
y0is the starting y-pixel to read
xpixis the number of x-pixels to read
ypixis the number of y-pixels to read

Definition at line 1473 of file fitsFile.hpp.

◆ write() [1/7]

template<typename dataT >
int mx::fits::fitsFile< dataT >::write ( const dataT *  im,
int  d1,
int  d2,
int  d3 
)

Write the contents of a raw array to the FITS file.

Returns
0 on success
-1 on error
Parameters
[in]imis the array
[in]d1is the first dimension
[in]d2is the second dimension
[in]d3is the third dimenesion (minimum value is 1)

Definition at line 1393 of file fitsFile.hpp.

◆ write() [2/7]

template<typename dataT >
int mx::fits::fitsFile< dataT >::write ( const dataT *  im,
int  d1,
int  d2,
int  d3,
fitsHeader head 
)

Write the contents of a raw array to the FITS file.

Note: the type of the array must match dataT

Returns
0 on success
-1 on error
Parameters
[in]imis the array
[in]d1is the first dimension
[in]d2is the second dimension
[in]d3is the third dimenesion (minimum value is 1)
[in]headis the header

Definition at line 1403 of file fitsFile.hpp.

◆ write() [3/7]

◆ write() [4/7]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::write ( const std::string &  fname,
const arrT &  im 
)

Write the contents of an Eigen-type array to a FITS file.

The type arrT can be any type with the following members defined:

  • data() (returns a pointer to the underlying array)
  • rows() (returrns the number of rows)
  • cols() (returns the number of columns)
  • may have planes() defined

Note: as with all write methods, the Scalar type of the array must match dataT

Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[in]fnameis the name of the file.
[in]imis the array

Definition at line 1441 of file fitsFile.hpp.

◆ write() [5/7]

template<typename dataT >
template<typename arrT >
int mx::fits::fitsFile< dataT >::write ( const std::string &  fname,
const arrT &  im,
fitsHeader head 
)

Write the contents of an Eigen-type array to a FITS file.

The type arrT can be any type with the following members defined:

  • data() (returns a pointer to the underlying array)
  • rows() (returrns the number of rows)
  • cols() (returns the number of columns)
  • may have planes() defined.

Note: as with all write methods, the Scalar type of the array must match dataT

Template Parameters
arrTis the type of array, see requirements above.
Returns
0 on success
-1 on error
Parameters
[in]fnameis the file path, which is passed to fileName
[in]imis the array
[in]headis a fitsHeader object which is passed to readHeader

Definition at line 1453 of file fitsFile.hpp.

◆ write() [6/7]

template<typename dataT >
int mx::fits::fitsFile< dataT >::write ( const std::string &  fname,
const dataT *  im,
int  d1,
int  d2,
int  d3 
)

Write the contents of a raw array to the FITS file.

Returns
0 on success
-1 on error
Parameters
[in]fnameis the name of the file.
[in]imis the array
[in]d1is the first dimension
[in]d2is the second dimension
[in]d3is the third dimenesion (minimum value is 1)

Definition at line 1414 of file fitsFile.hpp.

◆ write() [7/7]

template<typename dataT >
int mx::fits::fitsFile< dataT >::write ( const std::string &  fname,
const dataT *  im,
int  d1,
int  d2,
int  d3,
fitsHeader head 
)

Write the contents of a raw array to the FITS file.

Returns
0 on success
-1 on error
Parameters
[in]fnameis the name of the file.
[in]imis the array
[in]d1is the first dimension
[in]d2is the second dimension
[in]d3is the third dimenesion (minimum value is 1)
[in]headis the header

Definition at line 1426 of file fitsFile.hpp.

Member Data Documentation

◆ m_anynul

template<typename dataT >
int mx::fits::fitsFile< dataT >::m_anynul {0}
protected

Records whether any null values were replaced.

Definition at line 79 of file fitsFile.hpp.

◆ m_fileName

template<typename dataT >
std::string mx::fits::fitsFile< dataT >::m_fileName
protected

The path to the file.

Definition at line 61 of file fitsFile.hpp.

◆ m_fptr

template<typename dataT >
fitsfile* mx::fits::fitsFile< dataT >::m_fptr {nullptr}
protected

The cfitsio data structure.

Definition at line 64 of file fitsFile.hpp.

◆ m_isOpen

template<typename dataT >
bool mx::fits::fitsFile< dataT >::m_isOpen {false}
protected

Flag indicating whether the file is open or not.

Definition at line 73 of file fitsFile.hpp.

◆ m_naxes

template<typename dataT >
long* mx::fits::fitsFile< dataT >::m_naxes {nullptr}
protected

The size of each dimension.

Definition at line 70 of file fitsFile.hpp.

◆ m_naxis

template<typename dataT >
int mx::fits::fitsFile< dataT >::m_naxis
protected

The dimensions of the image (1D, 2D, 3D etc)

Definition at line 67 of file fitsFile.hpp.

◆ m_noComment

template<typename dataT >
int mx::fits::fitsFile< dataT >::m_noComment {0}
protected

Flag to control whether the comment string is read.

Definition at line 82 of file fitsFile.hpp.

◆ m_nulval

template<typename dataT >
dataT mx::fits::fitsFile< dataT >::m_nulval {0}
protected

The value to replace null values with.

Definition at line 76 of file fitsFile.hpp.

◆ m_x0

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_x0 {-1}
protected

The starting x-pixel to read from.

Definition at line 86 of file fitsFile.hpp.

◆ m_xpix

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_xpix {-1}
protected

The number of x-pixels to read.

Definition at line 92 of file fitsFile.hpp.

◆ m_y0

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_y0 {-1}
protected

The starting y-pixel to read from.

Definition at line 89 of file fitsFile.hpp.

◆ m_ypix

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_ypix {-1}
protected

The number of y-pixels to read.

Definition at line 95 of file fitsFile.hpp.

◆ m_z0

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_z0 {-1}
protected

The starting frame to read from a cube.

Definition at line 98 of file fitsFile.hpp.

◆ m_zframes

template<typename dataT >
long mx::fits::fitsFile< dataT >::m_zframes {-1}
protected

The number of frames to read from a cube.

Definition at line 101 of file fitsFile.hpp.


The documentation for this class was generated from the following file: