PURIFY
Next-generation radio interferometric imaging
Classes | Namespaces | Macros | Functions
pfitsio.h File Reference
#include "purify/config.h"
#include "purify/types.h"
#include "purify/logging.h"
#include "purify/uvw_utilities.h"
#include <fitsio.h>
#include <string>
+ Include dependency graph for pfitsio.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  purify::pfitsio::header_params
 

Namespaces

 purify
 
 purify::pfitsio
 

Macros

#define PURIFY_MACRO(VAR, H2)   (this->VAR == H2.VAR)
 
#define PURIFY_MACRO(KEY, VALUE, COMMENT)   write_key(fptr, KEY, VALUE, COMMENT, &status);
 

Functions

void purify::pfitsio::write_key (fitsfile *fptr, const std::string &key, const std::string &value, const std::string &comment, int *status)
 write key to fits file header More...
 
void purify::pfitsio::write_key (fitsfile *fptr, const std::string &key, const char *value, const std::string &comment, int *status)
 
void purify::pfitsio::write_history (fitsfile *fptr, const std::string &context, const std::string &history, int *status)
 write history to fits file More...
 
template<class T >
std::enable_if< std::is_scalar< T >::value, void >::type purify::pfitsio::write_history (fitsfile *fptr, const std::string &context, const T &history, int *status)
 
template<class T >
std::enable_if< std::is_scalar< T >::value, void >::type purify::pfitsio::write_key (fitsfile *fptr, const std::string &key, const T &value, const std::string &comment, int *status)
 
template<typename T >
purify::pfitsio::read_key (fitsfile *fptr, const std::string &key, int *status)
 read fits key and return as tuple More...
 
void purify::pfitsio::write2d (const Image< t_real > &eigen_image, const pfitsio::header_params &header, const bool &overwrite)
 Write image to fits file. More...
 
void purify::pfitsio::write2d (const Image< t_real > &image, const std::string &fits_name, const std::string &pix_units="Jy/Beam", const bool &overwrite=true)
 Write image to fits file. More...
 
template<typename DERIVED >
void purify::pfitsio::write2d (const Eigen::EigenBase< DERIVED > &input, int nx, int ny, const std::string &fits_name, const std::string &pix_units="Jy/Beam", const bool &overwrite=true)
 
template<typename DERIVED >
void purify::pfitsio::write2d (const Eigen::EigenBase< DERIVED > &input, int nx, int ny, const pfitsio::header_params &header, const bool overwrite=true)
 
void purify::pfitsio::write3d (const std::vector< Image< t_real >> &image, const pfitsio::header_params &header, const bool &overwrite=true)
 Write cube to fits file using header information. More...
 
void purify::pfitsio::write3d (const std::vector< Image< t_real >> &image, const std::string &fits_name, const std::string &pix_units="Jy/Beam", const bool &overwrite=true)
 Write cube to fits file. More...
 
template<typename DERIVED >
void purify::pfitsio::write3d (const std::vector< Eigen::EigenBase< DERIVED >> &input, int nx, int ny, const std::string &fits_name, const std::string &pix_units="Jy/Beam", const bool &overwrite=true)
 
template<typename DERIVED >
void purify::pfitsio::write3d (const std::vector< Eigen::EigenBase< DERIVED >> &input, int nx, int ny, const pfitsio::header_params &header, const bool &overwrite=true)
 
template<typename T >
std::enable_if< std::is_same< t_real, typename T::Scalar >::value, void >::type purify::pfitsio::write3d (const Eigen::EigenBase< T > &image, const t_int rows, const t_int cols, const t_int chans, const std::string &fits_name, const std::string &pix_units="Jy/Beam", const bool &overwrite=true)
 
template<typename T >
std::enable_if< std::is_same< t_real, typename T::Scalar >::value, void >::type purify::pfitsio::write3d (const Eigen::EigenBase< T > &image, const t_int rows, const t_int cols, const t_int chans, const pfitsio::header_params &header, const bool &overwrite)
 write 3d fits cube with header More...
 
template<typename T , typename = std::enable_if_t<std::is_same_v<double, typename T::Scalar>>>
void purify::pfitsio::read3d (const std::string &fits_name, Eigen::EigenBase< T > &output, int &rows, int &cols, int &channels, int &pols)
 
std::vector< Image< t_complex > > purify::pfitsio::read3d (const std::string &fits_name)
 Read cube from fits file. More...
 
Image< t_complex > purify::pfitsio::read2d (const std::string &fits_name)
 Read image from fits file. More...
 

Macro Definition Documentation

◆ PURIFY_MACRO [1/2]

#define PURIFY_MACRO (   KEY,
  VALUE,
  COMMENT 
)    write_key(fptr, KEY, VALUE, COMMENT, &status);

Definition at line 62 of file pfitsio.h.

◆ PURIFY_MACRO [2/2]

#define PURIFY_MACRO (   VAR,
  H2 
)    (this->VAR == H2.VAR)

Definition at line 62 of file pfitsio.h.