astrom.h 1.5 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
1
2
3
4
5
6
7
8
9
10
11
 /*
 				astrom.h

*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
*	Part of:	SExtractor
*
*	Author:		E.BERTIN, IAP & Leiden observatory
*
*	Contents:	Astrometrical stuff.
*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
12
*	Last modify:	18/05/2008
Emmanuel Bertin's avatar
Emmanuel Bertin committed
13
14
15
16
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/

Emmanuel Bertin's avatar
Emmanuel Bertin committed
17
18
19
20
#ifndef _FITSWCS_H_
#include "fitswcs.h"
#endif

Emmanuel Bertin's avatar
Emmanuel Bertin committed
21
22
23
24
25
26
27
28
29
30
31
32
/*----------------------------- Internal constants --------------------------*/

#define		DEG	(PI/180.0)	/* 1 deg in radians */
#define		ARCSEC	(DEG/3600.0)	/* 1 arcsec in radians */
#define		MJD2000	51544.50000	/* Modified Julian date for J2000.0 */
#define		MJD1950	33281.92346	/* Modified Julian date for B1950.0 */
#define		JU2TROP	1.0000214	/* 1 Julian century in tropical units*/
#define		MAMA_CORFLEX	3.3e-5	/* MAMA coordinate correction factor */

/*------------------------------- structures --------------------------------*/
/*------------------------------- functions ---------------------------------*/
extern void		astrom_errparam(picstruct *, objstruct *),
Emmanuel Bertin's avatar
Emmanuel Bertin committed
33
34
			astrom_proferrparam(picstruct *, objstruct *),
			astrom_profshapeparam(picstruct *, objstruct *),
Emmanuel Bertin's avatar
Emmanuel Bertin committed
35
			astrom_shapeparam(picstruct *, objstruct *),
Emmanuel Bertin's avatar
Emmanuel Bertin committed
36
			astrom_winerrparam(picstruct *, objstruct *),
Emmanuel Bertin's avatar
Emmanuel Bertin committed
37
38
39
40
41
42
43
			astrom_winshapeparam(picstruct *, objstruct *),
			computeastrom(picstruct *, objstruct *),
			initastrom(picstruct *),
			j2b(double, double, double, double *, double *),
			precess(double,double,double,double,double *,double *);

extern double		*compute_wcs(picstruct *, double, double);