LAL  7.5.0.1-b72065a
ReadNoiseSpectrum.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2007 Jolien Creighton, Patrick Brady
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 /*-----------------------------------------------------------------------
21  *
22  * File Name: ReadNoiseSpectrum.h
23  *
24  * Author: Brady, P. R.
25  *
26  *
27  *-----------------------------------------------------------------------
28  */
29 
30 #ifndef _READNOISESPECTRUMH_H
31 #define _READNOISESPECTRUMH_H
32 
33 #include <lal/LALDatatypes.h>
34 #include <lal/Date.h>
35 
36 #if defined(__cplusplus)
37 extern "C" {
38 #elif 0
39 } /* so that editors will match preceding brace */
40 #endif
41 
42 /**
43  * \defgroup ReadNoiseSpectrum_h Header ReadNoiseSpectrum.h
44  * \ingroup lal_support
45  * \author Brady, P. R.
46  *
47  * \brief Provides function to read in a file containing a possibly unequally sampled
48  * noise amplitude spectrum (\f$\textrm{strain}/\sqrt(\textrm{Hz})\f$) and return as
49  * a frequency series.
50  *
51  * ### Synopsis ###
52  *
53  * \code
54  * #include <lal/ReadNoiseSpectrum.h>
55  * \endcode
56  */
57 /** @{ */
58 
59 /**\name Error Codes */ /** @{ */
60 #define LALREADNOISESPECTRUMH_ENULL 1 /**< Null pointer */
61 #define LALREADNOISESPECTRUMH_ENNUL 2 /**< Non-null pointer */
62 #define LALREADNOISESPECTRUMH_EALOC 3 /**< Memory allocation error */
63 #define LALREADNOISESPECTRUMH_EOPEN 4 /**< Error opening file */
64 #define LALREADNOISESPECTRUMH_EFCLO 5 /**< Error closing file */
65 #define LALREADNOISESPECTRUMH_EPARS 8 /**< Error parsing spectrum file */
66 /** @} */
67 /** @} */
68 
69 #define LALREADNOISESPECTRUMH_MSGENULL "Null pointer"
70 #define LALREADNOISESPECTRUMH_MSGENNUL "Non-null pointer"
71 #define LALREADNOISESPECTRUMH_MSGEALOC "Memory allocation error"
72 #define LALREADNOISESPECTRUMH_MSGEOPEN "Error opening file"
73 #define LALREADNOISESPECTRUMH_MSGEFCLO "Error closing file"
74 #define LALREADNOISESPECTRUMH_MSGEPARS "Error parsing spectrum file"
75 
76 
77 #define LALREADNOISESPECTRUM_MAXLINELENGTH 2048
78 
81  REAL4FrequencySeries *spectrum,
82  CHAR *fname
83  );
84 
85 
86 #if 0
87 { /* so that editors will match succeeding brace */
88 #elif defined(__cplusplus)
89 }
90 #endif
91 
92 #endif /* _READNOISESPECTRUMH_H */
char CHAR
One-byte signed integer, see Headers LAL(Atomic)Datatypes.h for more details.
void LALReadNoiseSpectrum(LALStatus *status, REAL4FrequencySeries *spectrum, CHAR *fname)
Function to read in noise spectrum from a formatted ascii file and return the amplitude noise spectru...
LAL status structure, see The LALStatus structure for more details.
Definition: LALDatatypes.h:947
See DATATYPE-FrequencySeries types for documentation.
Definition: LALDatatypes.h:879