coord_parse.h
1/***************************************************************************
2 *
3 * Copyright (C) 2004 by Willem van Straten
4 * Licensed under the Academic Free License version 2.1
5 *
6 ***************************************************************************/
7// psrchive/Util/genutil/coord_parse.h
8
9#ifndef __COORD_PARSE_H
10#define __COORD_PARSE_H
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/* ********************************************************************
17 str2coord -
18 converts a string with RA and DEC in their human notations:
19 RA in time-measure (1h = 15 deg)
20 DEC in sexagesimal angular measure
21 into an ra and dec in radians
22 ******************************************************************** */
23 int str2coord (double *ra, double *dec, const char* coordstr);
24 int str2ra (double *ra, const char* rastr);
25 int str2dec2 (double *dec, const char* decstr);
26
27 int coord2str (char* coordstring, unsigned strlen,
28 double ra, double dec, unsigned places);
29
30 int ra2str (char* rastr, unsigned rastrlen, double ra, unsigned places);
31 int dec2str2 (char* decstr, unsigned decstrlen, double dec, unsigned places);
32
33 /* defined in angleconv.c */
34 char* crad2dmse (double pos, double err, int ra, char * name);
35
36#ifdef __cplusplus
37 }
38#endif
39
40#endif

Generated using doxygen 1.14.0