next up previous contents index
Next: Exit codes Up: Program SZeroPadAndFFTTest.c Previous: Usage   Contents   Index

Description

This program tests the routine LALSZeroPadAndFFT(), which zero-pads and Fourier transforms a real time series of length $N$ to produce a complex frequency series of length $[M/2]+1$.

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 $\{h[k]=1+k\vert k=0,\ldots,7\}$ with $\delta t=0.5 \textrm{s}$ 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.


next up previous contents index
Next: Exit codes Up: Program SZeroPadAndFFTTest.c Previous: Usage   Contents   Index
LAL test account 2003-10-23