mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]

Declares and defines utilities to work with FITS files. More...

Declares and defines utilities to work with FITS files.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file fitsUtils.hpp.

Go to the source code of this file.

Namespaces

 mx
 The mxlib c++ namespace.
 

Functions

template<typename scalarT >
constexpr int mx::fits::fitsType ()
 Return the cfitsio constant for a given data type. More...
 
template<typename scalarT >
constexpr int mx::fits::fitsBITPIX ()
 
int mx::fits::fitsStripApost (std::string &s)
 Strip the apostrophes from a FITS value string. More...
 
void mx::fits::fitsPopulateCard (char headStr[81], char *keyword, char *value, char *comment)
 Populate a fits header card with the value string copied verbatim. More...
 
template<typename typeT >
int mx::fits::fits_write_key (fitsfile *fptr, char *keyword, void *value, char *comment)
 Write a header card to a file. More...
 
template<>
int mx::fits::fits_write_key< bool > (fitsfile *fptr, char *keyword, void *value, char *comment)
 Specialization to handle the case bool. More...
 
void mx::fits::fitsErrText (std::string &explan, const std::string &filename, int fstatus)
 Generate a rich error meesage from a FITS status code. More...