Skip to content

Commit

Permalink
symmetry correction for f>0 removed to make compatible with newest ve…
Browse files Browse the repository at this point in the history
…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.
3 changes: 1 addition & 2 deletions tcoeffs.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit ad183bd

Please sign in to comment.