LTL  2.0.x
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ltl::WCS< N > Class Template Reference

Base class for intermediate WCs calculation. More...

Public Member Functions

 WCS (const FVector< double, N > &crpix_in, const FMatrix< double, N, N > &pc_in, const FVector< double, N > &cdelt_in)
 full scheme More...
 
FVector< double, N > x_ (const FVector< double, N > &p) const
 return intermediate WCs More...
 
FVector< double, N > p_ (const FVector< double, N > &x) const
 calculate orig. coordinates from intermed WCs (slow version!) More...
 

Static Protected Member Functions

static double deg2rad (const double deg)
 
static double rad2deg (const double rad)
 
static double cosdeg (double deg)
 
static double sindeg (double deg)
 

Protected Attributes

FVector< double, N > crpix_
 
FMatrix< double, N, N > pc_
 
FVector< double, N > cdelt_
 

Detailed Description

template<int N>
class ltl::WCS< N >

Base class for intermediate WCs calculation.

Angles in WCS are deg due to FITS standard requirements. Within CCS angles must be transposed to rad because of libmath. External return methods should deliver again deg. Sorry for the inconvenience, not my fault.

Constructor & Destructor Documentation

template<int N>
ltl::WCS< N >::WCS ( const FVector< double, N > &  crpix_in,
const FMatrix< double, N, N > &  pc_in,
const FVector< double, N > &  cdelt_in 
)
inline

full scheme

Member Function Documentation

template<int N>
FVector<double, N> ltl::WCS< N >::x_ ( const FVector< double, N > &  p) const
inline

return intermediate WCs

template<int N>
FVector<double, N> ltl::WCS< N >::p_ ( const FVector< double, N > &  x) const
inline

calculate orig. coordinates from intermed WCs (slow version!)

template<int N>
static double ltl::WCS< N >::deg2rad ( const double  deg)
inlinestaticprotected
template<int N>
static double ltl::WCS< N >::rad2deg ( const double  rad)
inlinestaticprotected
template<int N>
static double ltl::WCS< N >::cosdeg ( double  deg)
inlinestaticprotected
template<int N>
static double ltl::WCS< N >::sindeg ( double  deg)
inlinestaticprotected

Member Data Documentation

template<int N>
FVector<double, N> ltl::WCS< N >::crpix_
protected
template<int N>
FMatrix<double, N, N> ltl::WCS< N >::pc_
protected
template<int N>
FVector<double, N> ltl::WCS< N >::cdelt_
protected