Function to calculate the window function. Should be a stand-alone function (own file) to make it callable from different modules (especially for band-pass!).
Two possible interfaces for just calculating window of a given data set (remember weights!):
Separate executable (a wrapper just to calculate window-function).
Option for powerspec. E.g. ./powerspec.x -window f0 -f 1900 4100 0.1 INPUT OUTPUT.
I think the latter is the best option (since all the interface is already set-up), even though it will branch the main-fuction in two? Maybe make a sub-main function for the window calculation?
Function to calculate the window function. Should be a stand-alone function (own file) to make it callable from different modules (especially for band-pass!).
Two possible interfaces for just calculating window of a given data set (remember weights!):
powerspec
. E.g../powerspec.x -window f0 -f 1900 4100 0.1 INPUT OUTPUT
.I think the latter is the best option (since all the interface is already set-up), even though it will branch the main-fuction in two? Maybe make a sub-main function for the window calculation?