LALSimulation  5.4.0.1-fe68b98
LALSimReadData.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2013 Jolien Creighton
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 _LALSIMREADDATA_H
21 #define _LALSIMREADDATA_H
22 
23 #include <stddef.h>
24 #include <lal/FileIO.h>
25 
26 #if defined(__cplusplus)
27 extern "C" {
28 #elif 0
29 } /* so that editors will match preceding brace */
30 #endif
31 
32 LALFILE *XLALSimReadDataFileOpen(const char *fname);
33 size_t XLALSimReadDataFile2Col(double **xdat, double **ydat, LALFILE * fp);
34 size_t XLALSimReadDataFileNCol(double **data, size_t *ncol, LALFILE * fp);
35 
36 #if 0
37 { /* so that editors will match succeeding brace */
38 #elif defined(__cplusplus)
39 }
40 #endif
41 
42 #endif /* _LALSIMREADDATA_H */
size_t XLALSimReadDataFile2Col(double **xdat, double **ydat, LALFILE *fp)
Read a two-column data file.
size_t XLALSimReadDataFileNCol(double **data, size_t *ncol, LALFILE *fp)
Read a multi-column data file.
LALFILE * XLALSimReadDataFileOpen(const char *fname)
Opens a specified data file, searching default path if necessary.
sigmaKerr data[0]