GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
CPFITS_READ Class Reference

read only fits file interface More...

#include <cpfits.h>

Public Member Functions

 CPFITS_READ (std::string filename, std::string extension="", bool verbose=false)
 
 CPFITS_READ (CPFITS_READ &&ff)
 
void operator= (CPFITS_READ &&ff)
 
void reset (std::string filename, std::string extension="")
 close old and reopen a new file
 
int read (std::vector< double > &output, std::vector< long > &size)
 read the whole image into a vector
 
int read (std::vector< float > &output, std::vector< long > &size)
 read the whole image into a vector
 
int read (std::valarray< float > &output, std::vector< long > &size)
 read the whole image into a valarray
 
int read (std::valarray< double > &output, std::vector< long > &sizes)
 
template<typename T >
int read (std::vector< std::vector< T > > &output)
 read the whole image into a vector
 
int read_block (double *output, long nelements, long *start)
 read the whole image into a vector
 
int read_block (float *output, long nelements, long *start)
 
int read_subset (double *output, long *lowerleft, long *upperright)
 read a rectangular subset of the image
 
int read_subset (float *output, long *lowerleft, long *upperright)
 read a rectangular subset of the image
 

Detailed Description

read only fits file interface

Member Function Documentation

◆ read_block()

int CPFITS_READ::read_block ( double * output,
long nelements,
long * start )
inline

read the whole image into a vector

read nelements in order from image to output array


The documentation for this class was generated from the following file: