TwoMassCnvrt
RichardJ.Mathar
Fitsheaderkeywordbatcheditor
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Macros
TwoMassCnvrt
TwoMassCnvrt.h
Go to the documentation of this file.
1
#ifndef TWOMASSCNVRT_H
2
#define TWOMASSCNVRT_H
3
4
#include <string>
5
6
/*
7
ASCII format in the input files
8
blank-separated ra, dec, name, J, H, K,flags,flags
9
10
ASCII format in the output file:
11
blank separated 100, xpx ypx, magnitude
12
13
convert alt,az given phi to delta and hour angle
14
cos(delta)*sin(h) = cos a*cosA
15
cos(delta)*cos(h) = sin a*cos phi + cos a *cos A*sin phi
16
17
hour angle= GST-lambda(observer,west=positive!)-alpha
18
19
output WCS
20
alt, az, h, RA, delta, OBSGEO-
21
*/
22
23
class
TwoMassCnvrt
{
24
public
:
30
int
detsize
;
31
35
float
px
;
36
41
std::string
catDir
;
42
43
TwoMassCnvrt
(
int
detsiz,
float
pixsc,
const
std::string catdir) ;
44
45
void
skymakeList
(
double
ra,
double
decl,
float
maglim,
char
band,
float
q,
const
bool
geirs)
const
;
46
47
void
wcs
(
double
ra,
double
decl)
const
;
48
49
void
spdRange
(
double
decl,
int
spd[2])
const
;
50
51
float
mag2mag
(
float
magI,
int
magidx,
float
q=1.)
const
;
52
53
std::string
alpha2hex
(
double
alpha)
const
;
54
std::string
deg2hex
(
double
delta)
const
;
55
56
static
double
hex2deg
(
const
std::string & hexstr,
bool
isdeg) ;
57
protected
:
58
bool
tanProj
(
double
ra,
double
decl,
double
radec[2],
int
xy[2])
const
;
59
60
private
:
61
} ;
62
#endif
Generated on Thu May 23 2013 21:38:46 for TwoMassCnvrt by
1.8.2