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

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.

#include <iostream>
#include <cstdlib>
#include <cstring>
#include <complex>
#include <fitsio.h>
#include "../stringUtils.hpp"

Go to the source code of this file.

Namespaces

namespace  mx
 The mxlib c++ namespace.

Macros

#define stdValWidth   ( 20 )
 The standard width of the value entry in a header card.

Functions

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

Macro Definition Documentation

◆ stdValWidth

#define stdValWidth   ( 20 )

The standard width of the value entry in a header card.

Definition at line 45 of file fitsUtils.hpp.

Referenced by mx::fits::fitsPopulateCard().