SourceXtractorPlusPlus  0.10
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::WCS Class Reference

#include <WCS.h>

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

Public Member Functions

 WCS (const std::string &fits_file_path, int hdu_number=1)
 
virtual ~WCS ()
 
WorldCoordinate imageToWorld (ImageCoordinate image_coordinate) const override
 
ImageCoordinate worldToImage (WorldCoordinate world_coordinate) const override
 
std::map< std::string, std::stringgetFitsHeaders () const override
 
- Public Member Functions inherited from SourceXtractor::CoordinateSystem
virtual ~CoordinateSystem ()=default
 

Private Attributes

std::unique_ptr< wcslib::wcsprm, std::function< void(wcslib::wcsprm *)> > m_wcs
 

Detailed Description

Definition at line 35 of file WCS.h.

Constructor & Destructor Documentation

◆ WCS()

SourceXtractor::WCS::WCS ( const std::string fits_file_path,
int  hdu_number = 1 
)

Definition at line 63 of file WCS.cpp.

References std::string::c_str(), std::free(), Elements::Logging::info(), SourceXtractor::logger, m_wcs, SourceXtractor::safe_lincpy, and SourceXtractor::wrapped_lincpy().

Here is the call graph for this function:

◆ ~WCS()

SourceXtractor::WCS::~WCS ( )
virtual

Definition at line 104 of file WCS.cpp.

Member Function Documentation

◆ getFitsHeaders()

std::map< std::string, std::string > SourceXtractor::WCS::getFitsHeaders ( ) const
overridevirtual

Reimplemented from SourceXtractor::CoordinateSystem.

Definition at line 147 of file WCS.cpp.

References std::map< K, T >::emplace(), std::string::empty(), std::free(), std::unique_ptr< T >::get(), m_wcs, and std::make_pair().

Here is the call graph for this function:

◆ imageToWorld()

WorldCoordinate SourceXtractor::WCS::imageToWorld ( ImageCoordinate  image_coordinate) const
overridevirtual

◆ worldToImage()

ImageCoordinate SourceXtractor::WCS::worldToImage ( WorldCoordinate  world_coordinate) const
overridevirtual

Member Data Documentation

◆ m_wcs

std::unique_ptr<wcslib::wcsprm, std::function<void(wcslib::wcsprm*)> > SourceXtractor::WCS::m_wcs
private

Definition at line 46 of file WCS.h.

Referenced by getFitsHeaders(), imageToWorld(), WCS(), and worldToImage().


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