RTC Toolkit 4.0.1
|
Declaration of FITS I/O helper functions. More...
#include <cassert>
#include <filesystem>
#include <limits>
#include <string>
#include <type_traits>
#include <typeinfo>
#include <unistd.h>
#include <fitsio.h>
#include <fmt/format.h>
#include <rtctk/componentFramework/exceptions.hpp>
#include <rtctk/componentFramework/logger.hpp>
#include <rtctk/componentFramework/matrixBuffer.hpp>
#include <rtctk/componentFramework/typeTraits.hpp>
Go to the source code of this file.
Namespaces | |
namespace | rtctk |
namespace | rtctk::componentFramework |
Functions | |
std::string | rtctk::componentFramework::GetCfitsioErrorMsg (int status) |
Helper function to convert a Cfitsio status code to a human readable message. | |
std::string | rtctk::componentFramework::CfitsioImageTypeToString (int bitpix) |
Returns a string representation of a Cfitsio image type code. | |
std::string | rtctk::componentFramework::CfitsioDataTypeToString (int datatype) |
Returns a string representation of a Cfitsio data type code. | |
template<typename T > | |
void | rtctk::componentFramework::WriteMatrixToFits (const std::string &filename, const T &matrix, bool boolean_items=false) |
Writes data representing a matrix as an image to a FITS file. | |
template<typename T > | |
void | rtctk::componentFramework::ReadMatrixFromFits (const std::string &filename, T &matrix) |
Reads a FITS file image into a buffer object representing a matrix. | |
template<typename T > | |
void | rtctk::componentFramework::WriteVectorToFits (const std::string &filename, const T &vector, bool boolean_items=false) |
Writes data as a 1D image to a FITS file. | |
template<typename T > | |
void | rtctk::componentFramework::ReadVectorFromFits (const std::string &filename, T &vector) |
Reads a FITS file containing a 1D image into a buffer object representing a vector. | |
template<typename A > | |
void | rtctk::componentFramework::WriteMatrixToFits (const std::string &filename, const MatrixBuffer< bool, A > &matrix) |
Writes a matrix of boolean values as a FITS image with 8 bits per pixel. | |
template<typename A > | |
void | rtctk::componentFramework::ReadMatrixFromFits (const std::string &filename, MatrixBuffer< bool, A > &matrix) |
Reads a matrix of boolean values from a FITS image with 8 bits per pixel. | |
template<typename A > | |
void | rtctk::componentFramework::WriteVectorToFits (const std::string &filename, const std::vector< bool, A > &vector) |
Write a vector of boolean values to a FITS file as a 1D image of 8 bit pixels. | |
template<typename A > | |
void | rtctk::componentFramework::ReadVectorFromFits (const std::string &filename, std::vector< bool, A > &vector) |
Read a vector of boolean values from a FITS files containing a 1D image of 8 bit pixels. | |
const std::type_info & | rtctk::componentFramework::GetFitsImageType (const std::string &filename) |
Get the C++ type corresponding to a FITS image. | |
std::size_t | rtctk::componentFramework::GetFitsImageSize (const std::string &filename) |
Get the number of pixels in a FITS image. | |
Declaration of FITS I/O helper functions.