Thank you for the file, it was very usefull.
I runned a test where I linearly interpolate a 50km wind data to 5km. I would expect a drop in the energy at 100km, but the spectra shows eenrgy cascating down to the 5km scale. Do you know why this happens?
Hi, I found this to be faster, hope it helps, S.
%% code for fast radial averaging:
[~,~,iir]=unique(ri); %find unique values
tic;Pf=(rr(:).'*Qt).';toc %radial average