LAL  7.5.0.1-b72065a
TranslateMJD.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004, 2015 Reinhard Prix
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with with program; see the file COPYING. If not, write to the
16 // Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 // MA 02110-1301 USA
18 //
19 
20 #ifndef _TRANSLATEMJD_H /* Double-include protection. */
21 #define _TRANSLATEMJD_H
22 
23 #include <lal/LALDatatypes.h>
24 
25 /* C++ protection. */
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /**
31  * \defgroup TranslateMJD_h Header TranslateMJD.h
32  * \ingroup lal_support
33  * \author Reinhard Prix
34  * \brief Module for translating between MJD(TT) strings and GPS
35  *
36  */
37 /** @{ */
38 // ---------- Function prototypes ----------
39 #ifdef SWIG /* SWIG interface directives */
40 SWIGLAL(NEW_EMPTY_ARGUMENT(LIGOTimeGPS*, gps));
41 #endif
42 
43 LIGOTimeGPS *XLALTranslateMJDTTtoGPS ( LIGOTimeGPS *gps, INT4 mjdDays, REAL8 mjdFracDays );
44 LIGOTimeGPS *XLALTranslateStringMJDTTtoGPS ( LIGOTimeGPS *gps, const char *mjdString );
45 
46 #ifdef SWIG /* SWIG interface directives */
47 SWIGLAL_CLEAR(NEW_EMPTY_ARGUMENT(LIGOTimeGPS*, gps));
48 #endif
49 
50 /** @} */
51 
52 /* C++ protection. */
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* Double-include protection. */
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
LIGOTimeGPS * XLALTranslateMJDTTtoGPS(LIGOTimeGPS *gps, INT4 mjdDays, REAL8 mjdFracDays)
convert given MJD(TT) time, mjd = mjdDays + mjdFracDays into LIGOTimeGPS format, preserving full (ns)...
Definition: TranslateMJD.c:49
LIGOTimeGPS * XLALTranslateStringMJDTTtoGPS(LIGOTimeGPS *gps, const char *mjdString)
Parse and convert given string representing MJD(TT) time into LIGOTimeGPS gps time,...
Definition: TranslateMJD.c:91
Epoch relative to GPS epoch, see LIGOTimeGPS type for more details.
Definition: LALDatatypes.h:458