Looking for the latest version? Download 64 bit Windows (1.3 MB)
Home
Name Modified Size Downloads / Week Status
Linux 64 bit 2016-12-27 22 weekly downloads
Windows 64 bit 2016-12-27 0
Linux 32 bit 2012-04-12 0
Windows 32 bit 2012-04-12 0
changes.txt 2016-12-27 18.3 kB 0
readme.txt 2016-12-27 4.2 kB 0
Totals: 6 Items   22.5 kB 2
2016-12-27: 1. Overview This is a small utility for generating FFT of ASCII files or standard in. The output is either to file or std out. The build is static, so no complicated dependencies must be fulfilled and thus it should be possible to use the binary with any distribution that runs on x86 or x86_64. 2. Installing To install, just copy the binary someplace where the system finds it (e.g. in your path.) 3. Examples of use The following call to fft $> fft < input.txt > output.txt will consider the first column in the data file input.txt as the real-valued time-series to be transformed. $> fft -i input.txt -o output.txt -c Same as above, except the option "-c" tells fft to interpret the input as complex data. The first and second columns are now interpreted as real and imaginary compomnets of a complex time-series. $> fft --input-file input.txt --output-file output.txt \ --complex -x 3 -y 6 --delimiter , --ordered-x-axis Using the long options. In this example the data columns are separated by ','. The data is retrived from column 6 and 7 and column 3 is used to infer the frequency. Please note that the option --delimiter refers to the format of the output file. If the input file has another format, this is specified by the option --input-delimiter. In this example a x-column is specified. This instructs fft to treat that column as the time coordinate. Currently, all that is done is to calculate the average sample rate from the first and last values in this column and use that to generate a frequency axis for the output. The "natural" way for fftw is to write the negative frequencies "to the right" of the positive ones (i.e. something like [0,..,F,-F,..,0]). The option --ordered-x-axis tells fft to start with the negative frequencies (i.e. something like [-F,..,0,..,F]). 4. Building from Source fft depends on several things, which are listed below: a) CMake is the (meta-)build system (www.cmake.org) b) fftw is required for the actual FFT'ing (www.fftw.org). Please not that you need version 3.3 of the fftw library. It can be downloaded at www.fftw.org. For windows, they provide pre-compiled libraries. Note that the version shipped with Oneiric (Ubuntu 11.10) is not sufficient. c) boost for handling program options and other things like lexical cast (www.boost.org). d) Subversion. You need it to check out the code from sourceforge. However, during build a version file is generated that is included in the sources. In order to generate this version header, an svn is required. It should work with the standard svn client installation under Linux, and under Windows TortoiseSVN should do the job. e) The gcc c++ tool chain under Linux. Talk about standing on the shoulders of giants! Anyway, if you have all these prerequisites set up properly, all you need to do is: 4.1: Check out the sources by issuing the following command: $> svn checkout svn://svn.code.sf.net/p/cli-fft/code/trunk cli-fft That should leave you with the source tree root at cli-fft (you can of course replace cli-fft with anything you like). 4.2: cd to the root of the source tree and create a build directory there: $> mkdir build $> cd build 4.3: In the build directory issue the command $> cmake ../ -DCMAKE_BUILD_TYPE=release If there are any issues with the pre-requisites, cmake will tell you about it at this stage. If this goes smoothly, you just have to make: $> make That's it. The binary should now be located in the root of your build tree. You can copy it to somewhere where the system finds it. 5. Potential sources of pain Boost missing: The standard installation of boost is probably not enough. If cmake complains that it cannot find it, you probably need to install some more boost. Look for libboost-program-options in your package manager. FFTW too old: If the compiler complains that the functions fftw_import_wisdom_from_filename or fftw_export_wisdom_to_filename cannot be found, you probably don't have fftw 3.3 installed. Please download it at fftw.org and compile and install it (it is very easy!). Set it up so that cmake will find it under /usr/local.
Source: readme.txt, updated 2016-12-27

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks