-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
symmetry correction for f>0 removed to make compatible with newest ve…
…rsion of spod.m
- Loading branch information
Oliver Schmidt
authored and
Oliver Schmidt
committed
Sep 12, 2022
1 parent
20e4586
commit ad183bd
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
% Journal of Fluid Mechanics 926, A26, 2021 | ||
% | ||
% A. Nekkanti ([email protected]), O. T. Schmidt ([email protected]) | ||
% Last revision: 12-Sep-2021 | ||
% Last revision: 12-Sep-2022 | ||
|
||
dims = size(X); | ||
nt = dims(1); | ||
|
@@ -59,7 +59,6 @@ | |
for i=1:nt | ||
X_blk = fft(X(i:i+nDFT-1,:).*window); | ||
X_blk = X_blk(1:nFreq,:); | ||
X_blk(2:end-1,:) = 2*X_blk(2:end-1,:); | ||
% correction for windowing of zero-padded data | ||
if (i<ceil(nDFT/2)-1) | ||
corr = sqrt(winCorr_fac/sum(window(ceil(nDFT/2)-i+1:nDFT))); | ||
|