56 #include <lal/AVFactories.h>
57 #include <lal/LALNoiseModels.h>
72 fprintf(stderr,
"This test code computes the amplitude spectrum \n");
73 fprintf(stderr,
"of GEO, LIGO, VIRGO, TAMA and AdvLIGO and writes them in \n");
74 fprintf(stderr,
"NoisePSDTest.out in a format suitable for \n");
75 fprintf(stderr,
"display with xmgr/xgrace\n");
77 if ( (NoisePsdFile = fopen(
"NoisePSDTest.out",
"w")) == NULL)
79 fprintf(stderr,
"Can't open output file\n");
90 for (i=2; i<length; i++) {
91 if (psd->
data[i])
fprintf (NoisePsdFile,
"%d %e\n", i, sqrt(psd->
data[i]));
95 for (i=2; i<length; i++) {
96 if (psd->
data[i])
fprintf (NoisePsdFile,
"%d %e\n", i, sqrt(psd->
data[i]));
100 for (i=2; i<length; i++) {
101 if (psd->
data[i])
fprintf (NoisePsdFile,
"%d %e\n", i, sqrt(psd->
data[i]));
105 for (i=2; i<length; i++) {
106 if (psd->
data[i])
fprintf (NoisePsdFile,
"%d %e\n", i, sqrt(psd->
data[i]));
110 for (i=2; i<length; i++) {
111 if (psd->
data[i])
fprintf (NoisePsdFile,
"%d %e\n", i, sqrt(psd->
data[i]));
void LALCheckMemoryLeaks(void)
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
void LALTAMAPsd(LALStatus *status, REAL8 *shf, REAL8 x)
void LALAdvLIGOPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
Module to calculate the noise power spectral density for the initial LIGO detector.
void LALGEOPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
Module to calculate the expected noise power spectral density for the GEO600 detector.
void LALNoiseSpectralDensity(LALStatus *status, REAL8Vector *psd, void(*NoisePsd)(LALStatus *status, REAL8 *shf, REAL8 f), REAL8 f)
This function generates an array of size specified in the vector psd, that is psd....
void LALLIGOIPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
Legacy LAL wrapper of XLALLIGOIPsd().
void LALVIRGOPsd(LALStatus *status, REAL8 *shf, REAL8 x)
void LALDCreateVector(LALStatus *, REAL8Vector **, UINT4)
void LALDDestroyVector(LALStatus *, REAL8Vector **)
LAL status structure, see The LALStatus structure for more details.
Vector of type REAL8, see DATATYPE-Vector types for more details.
REAL8 * data
Pointer to the data array.
UINT4 length
Number of elements in array.