mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A generic ADI derotator class.
This class is used to calculate the derotation angle for angular differential imaging.
Definition at line 28 of file ADIDerotator.hpp.
#include <improc/ADIDerotator.hpp>
Public Member Functions | |
void | angleKeyword (const std::string &akw) |
Set the angle keyword. More... | |
bool | isSetup () |
To allow ADIobservation to check for errors. More... | |
void | extractKeywords (std::vector< fits::fitsHeader > &heads) |
Method called by ADIobservation to get keyword-values. More... | |
realT | derotAngle (size_t imno) const |
Calculate the derotation angle for a given image number. More... | |
Public Attributes | |
std::vector< std::string > | m_keywords |
Vector of keywords to extract from the fits headers. More... | |
std::vector< realT > | m_angles |
Vector(s) to hold the keyword values. More... | |
std::string | m_angleKeyword |
The keyword for the angle attribute. Do not set this directly. More... | |
realT | m_angleScale {0} |
The scale to multiply the angle by. More... | |
realT | m_angleConstant {0} |
The constant to add to the scaled-angle. More... | |
|
inline |
Set the angle keyword.
Populates the kewords vector appropriately.
[in] | akw | The angle keyword |
Definition at line 44 of file ADIDerotator.hpp.
References mx::improc::ADIDerotator< _realT >::m_angleKeyword, and mx::improc::ADIDerotator< _realT >::m_keywords.
|
inline |
Calculate the derotation angle for a given image number.
[in] | imno | the image number |
Definition at line 74 of file ADIDerotator.hpp.
References mx::math::dtor(), mx::improc::ADIDerotator< _realT >::m_angleConstant, mx::improc::ADIDerotator< _realT >::m_angles, and mx::improc::ADIDerotator< _realT >::m_angleScale.
|
inline |
Method called by ADIobservation to get keyword-values.
[in] | heads | The headers from the images being reduced. |
Definition at line 65 of file ADIDerotator.hpp.
References mx::improc::ADIDerotator< _realT >::m_angleKeyword, and mx::improc::ADIDerotator< _realT >::m_angles.
|
inline |
To allow ADIobservation to check for errors.
Definition at line 58 of file ADIDerotator.hpp.
References mx::improc::ADIDerotator< _realT >::m_angleConstant, mx::improc::ADIDerotator< _realT >::m_angleKeyword, mx::improc::ADIDerotator< _realT >::m_angleScale, and mx::improc::ADIDerotator< _realT >::m_keywords.
realT mx::improc::ADIDerotator< _realT >::m_angleConstant {0} |
The constant to add to the scaled-angle.
Definition at line 51 of file ADIDerotator.hpp.
Referenced by mx::improc::ADIDerotator< _realT >::derotAngle(), and mx::improc::ADIDerotator< _realT >::isSetup().
std::string mx::improc::ADIDerotator< _realT >::m_angleKeyword |
The keyword for the angle attribute. Do not set this directly.
Definition at line 39 of file ADIDerotator.hpp.
Referenced by mx::improc::ADIDerotator< _realT >::angleKeyword(), mx::improc::ADIDerotator< _realT >::extractKeywords(), and mx::improc::ADIDerotator< _realT >::isSetup().
std::vector<realT> mx::improc::ADIDerotator< _realT >::m_angles |
Vector(s) to hold the keyword values.
Definition at line 36 of file ADIDerotator.hpp.
Referenced by mx::improc::ADIDerotator< _realT >::derotAngle(), and mx::improc::ADIDerotator< _realT >::extractKeywords().
realT mx::improc::ADIDerotator< _realT >::m_angleScale {0} |
The scale to multiply the angle by.
Definition at line 50 of file ADIDerotator.hpp.
Referenced by mx::improc::ADIDerotator< _realT >::derotAngle(), and mx::improc::ADIDerotator< _realT >::isSetup().
std::vector<std::string> mx::improc::ADIDerotator< _realT >::m_keywords |
Vector of keywords to extract from the fits headers.
Definition at line 33 of file ADIDerotator.hpp.
Referenced by mx::improc::ADIDerotator< _realT >::angleKeyword(), and mx::improc::ADIDerotator< _realT >::isSetup().