SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::VariablePsfStack Class Referencefinal

#include <VariablePsfStack.h>

Inheritance diagram for SourceXtractor::VariablePsfStack:
[legend]
Collaboration diagram for SourceXtractor::VariablePsfStack:
[legend]

Public Member Functions

 VariablePsfStack (std::shared_ptr< CCfits::FITS > pFits)
 
virtual ~VariablePsfStack ()=default
 
int getWidth () const
 
int getHeight () const
 
double getPixelSampling () const
 
const std::vector< std::string > & getComponents () const
 
virtual std::shared_ptr< VectorImage< SeFloat > > getPsf (const std::vector< double > &values) const
 
- Public Member Functions inherited from SourceXtractor::Psf
virtual ~Psf ()=default
 

Private Member Functions

void setup (std::shared_ptr< CCfits::FITS > pFits)
 
void selfTest ()
 

Private Attributes

std::shared_ptr< CCfits::FITS > m_pFits
 
int m_psf_size
 
int m_grid_offset
 
double mm_pixel_sampling
 
long m_nrows
 
std::vector< SeFloatm_ra_values
 
std::vector< SeFloatm_dec_values
 
std::vector< SeFloatm_x_values
 
std::vector< SeFloatm_y_values
 
std::vector< int > m_gridx_values
 
std::vector< int > m_gridy_values
 
std::vector< std::stringm_components = {"X_IMAGE", "Y_IMAGE"}
 

Detailed Description

Todo:

Definition at line 43 of file VariablePsfStack.h.

Constructor & Destructor Documentation

◆ VariablePsfStack()

SourceXtractor::VariablePsfStack::VariablePsfStack ( std::shared_ptr< CCfits::FITS >  pFits)
inline

Constructor

Definition at line 48 of file VariablePsfStack.h.

References selfTest(), and setup().

Here is the call graph for this function:

◆ ~VariablePsfStack()

virtual SourceXtractor::VariablePsfStack::~VariablePsfStack ( )
virtualdefault

Destructor

Member Function Documentation

◆ getComponents()

const std::vector<std::string>& SourceXtractor::VariablePsfStack::getComponents ( ) const
inlinevirtual
Returns
A reference to the list of components

Implements SourceXtractor::Psf.

Definition at line 82 of file VariablePsfStack.h.

References m_components.

◆ getHeight()

int SourceXtractor::VariablePsfStack::getHeight ( ) const
inlinevirtual
Returns
The height of the PSF

Implements SourceXtractor::Psf.

Definition at line 68 of file VariablePsfStack.h.

References m_psf_size.

◆ getPixelSampling()

double SourceXtractor::VariablePsfStack::getPixelSampling ( ) const
inlinevirtual
Returns
The pixel scale, as passed to the constructor

Implements SourceXtractor::Psf.

Definition at line 75 of file VariablePsfStack.h.

References mm_pixel_sampling.

◆ getPsf()

std::shared_ptr< VectorImage< SeFloat > > SourceXtractor::VariablePsfStack::getPsf ( const std::vector< double > &  values) const
virtual

Reconstructs a PSF based on the given values for each of the components.

Parameters
valuesComponent values. Note that they have to be in the same order (and as many) as components were passed to the constructor (none for constant PSF).
Returns
The reconstructed PSF
Exceptions
Ifthe number of values does not match the number of components

Implements SourceXtractor::Psf.

Definition at line 118 of file VariablePsfStack.cpp.

References std::begin(), SourceXtractor::VectorImage< T >::create(), std::end(), m_grid_offset, m_gridx_values, m_gridy_values, m_nrows, m_pFits, m_psf_size, m_x_values, m_y_values, std::vector< T >::size(), std::sqrt(), and stack_logger.

Here is the call graph for this function:

◆ getWidth()

int SourceXtractor::VariablePsfStack::getWidth ( ) const
inlinevirtual
Returns
The width of the PSF

Implements SourceXtractor::Psf.

Definition at line 61 of file VariablePsfStack.h.

References m_psf_size.

◆ selfTest()

void SourceXtractor::VariablePsfStack::selfTest ( )
private

Definition at line 94 of file VariablePsfStack.cpp.

References std::begin(), std::end(), m_grid_offset, m_gridx_values, m_gridy_values, m_pFits, and std::minmax_element().

Referenced by VariablePsfStack().

Here is the call graph for this function:

◆ setup()

void SourceXtractor::VariablePsfStack::setup ( std::shared_ptr< CCfits::FITS >  pFits)
private

Member Data Documentation

◆ m_components

std::vector<std::string> SourceXtractor::VariablePsfStack::m_components = {"X_IMAGE", "Y_IMAGE"}
private

Definition at line 108 of file VariablePsfStack.h.

Referenced by getComponents().

◆ m_dec_values

std::vector<SeFloat> SourceXtractor::VariablePsfStack::m_dec_values
private

Definition at line 102 of file VariablePsfStack.h.

Referenced by setup().

◆ m_grid_offset

int SourceXtractor::VariablePsfStack::m_grid_offset
private

Definition at line 95 of file VariablePsfStack.h.

Referenced by getPsf(), selfTest(), and setup().

◆ m_gridx_values

std::vector<int> SourceXtractor::VariablePsfStack::m_gridx_values
private

Definition at line 105 of file VariablePsfStack.h.

Referenced by getPsf(), selfTest(), and setup().

◆ m_gridy_values

std::vector<int> SourceXtractor::VariablePsfStack::m_gridy_values
private

Definition at line 106 of file VariablePsfStack.h.

Referenced by getPsf(), selfTest(), and setup().

◆ m_nrows

long SourceXtractor::VariablePsfStack::m_nrows
private

Definition at line 99 of file VariablePsfStack.h.

Referenced by getPsf(), and setup().

◆ m_pFits

std::shared_ptr<CCfits::FITS> SourceXtractor::VariablePsfStack::m_pFits
private

Definition at line 92 of file VariablePsfStack.h.

Referenced by getPsf(), and selfTest().

◆ m_psf_size

int SourceXtractor::VariablePsfStack::m_psf_size
private

Definition at line 94 of file VariablePsfStack.h.

Referenced by getHeight(), getPsf(), getWidth(), and setup().

◆ m_ra_values

std::vector<SeFloat> SourceXtractor::VariablePsfStack::m_ra_values
private

Definition at line 101 of file VariablePsfStack.h.

Referenced by setup().

◆ m_x_values

std::vector<SeFloat> SourceXtractor::VariablePsfStack::m_x_values
private

Definition at line 103 of file VariablePsfStack.h.

Referenced by getPsf(), and setup().

◆ m_y_values

std::vector<SeFloat> SourceXtractor::VariablePsfStack::m_y_values
private

Definition at line 104 of file VariablePsfStack.h.

Referenced by getPsf(), and setup().

◆ mm_pixel_sampling

double SourceXtractor::VariablePsfStack::mm_pixel_sampling
private

Definition at line 97 of file VariablePsfStack.h.

Referenced by getPixelSampling(), and setup().


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