This program tests the routine LALSZeroPadAndFFT(), which
zero-pads and Fourier transforms a real time series of length
to
produce a complex frequency series of length
.
First, it tests that the correct error codes
(cf. Sec.
)
are generated for the following error conditions (tests in
italics are not performed if LAL_NDEBUG is set, as
the corresponding checks in the code are made using the ASSERT macro):
It then verifies that the correct frequency series35.2 is generated for the simple test case
with
and rectangular windowing. For each
successful test (both of these valid data and the invalid ones
described above), it prints ``PASS'' to standard output; if a
test fails, it prints ``FAIL''.
If the filename arguments are present, it also reads a time series from a file, calls LALSZeroPadAndFFT(), and writes the results to the specified output file.