ifw-ccf 5.0.2
Loading...
Searching...
No Matches
Namespaces | Functions
fits.cpp File Reference
#include <boost/exception/diagnostic_information.hpp>
#include <ifw/ccf/common/base.hpp>
#include <ifw/ccf/common/fits.hpp>

Namespaces

namespace  ifw
 
namespace  ifw::ccf
 
namespace  ifw::ccf::common
 
namespace  ifw::ccf::common::fits
 

Functions

int ifw::ccf::common::fits::BitpixToCfitsioDataType (const int8_t bitpix)
 Extract category name from PAF key.
 
void ifw::ccf::common::fits::GetKeys (std::shared_ptr< CCfits::FITS > &fits_handle, const int16_t hdu_nb, const std::vector< std::string > &keys, std::map< std::string, std::pair< std::string, std::string > > &key_values, const bool ignore_missing_keys)
 
int8_t ifw::ccf::common::fits::BitpixToBytesPerPixel (const int8_t bitpix)
 Convert the value of BITPIX into the corresponding bytes per pixel.
 
void ifw::ccf::common::fits::LoadImageData (const std::string &filename, const int16_t hdu_nb, ifw::fnd::datatype::DataType &pixel_data_type, void **image_buffer, uint32_t &image_size, std::map< std::string, std::pair< std::string, std::string > > &key_values, const std::list< std::string > &req_keys)
 
double ifw::ccf::common::fits::DataTypeToBzero (const int fits_data_type)
 Convert the data type into the corresponding BZERO value.
 
void ifw::ccf::common::fits::AppendImageExtension (std::shared_ptr< CCfits::FITS > &fits_handle, const ifw::core::dit::did::Did &dictionary, const std::string &ext_name, const ifw::fnd::fits::BitPix bitpix, const std::vector< int32_t > &naxes, const uint32_t image_size, const void *image_buffer, const uint16_t nb_of_hdr_blocks=1)
 Append an image extension to the existing FITS file.
 
uint16_t ifw::ccf::common::fits::GetNbOfHdus (std::shared_ptr< CCfits::FITS > &fits_handle)
 Return number of HDUs in the FITS file referenced to by the handle.