SourceXtractorPlusPlus  0.10
Please provide a description of the project.
WCS.h
Go to the documentation of this file.
1 
17 /*
18  * WCS.h
19  *
20  * Created on: Nov 17, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_COORDINATESYSTEM_WCS_H_
25 #define _SEIMPLEMENTATION_COORDINATESYSTEM_WCS_H_
26 
28 
29 namespace wcslib {
30 struct wcsprm;
31 }
32 
33 namespace SourceXtractor {
34 
35 class WCS : public CoordinateSystem {
36 public:
37  WCS(const std::string& fits_file_path, int hdu_number = 1);
38  virtual ~WCS();
39 
40  WorldCoordinate imageToWorld(ImageCoordinate image_coordinate) const override;
41  ImageCoordinate worldToImage(WorldCoordinate world_coordinate) const override;
42 
44 
45 private:
46  std::unique_ptr<wcslib::wcsprm, std::function<void(wcslib::wcsprm*)>> m_wcs;
47 };
48 
49 }
50 
51 #endif /* _SEIMPLEMENTATION_COORDINATESYSTEM_WCS_H_ */
SourceXtractor::WCS::getFitsHeaders
std::map< std::string, std::string > getFitsHeaders() const override
Definition: WCS.cpp:147
std::string
STL class.
SourceXtractor::WCS::m_wcs
std::unique_ptr< wcslib::wcsprm, std::function< void(wcslib::wcsprm *)> > m_wcs
Definition: WCS.h:46
std::function
CoordinateSystem.h
SourceXtractor::WorldCoordinate
Definition: CoordinateSystem.h:33
SourceXtractor
Definition: Aperture.h:30
std::map< std::string, std::string >
SourceXtractor::ImageCoordinate
Definition: CoordinateSystem.h:42
SourceXtractor::WCS::WCS
WCS(const std::string &fits_file_path, int hdu_number=1)
Definition: WCS.cpp:63
SourceXtractor::WCS::imageToWorld
WorldCoordinate imageToWorld(ImageCoordinate image_coordinate) const override
Definition: WCS.cpp:107
wcslib
Definition: WCS.h:29
SourceXtractor::CoordinateSystem
Definition: CoordinateSystem.h:50
SourceXtractor::WCS
Definition: WCS.h:35
SourceXtractor::WCS::~WCS
virtual ~WCS()
Definition: WCS.cpp:104
SourceXtractor::WCS::worldToImage
ImageCoordinate worldToImage(WorldCoordinate world_coordinate) const override
Definition: WCS.cpp:128
std::unique_ptr
STL class.