sphear_af_fix_wobble.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. %% -*- mode: octave -*-
  2. %%
  3. %% *SpHEAR Project
  4. %%
  5. %% sphear_signal_arrival_times: measure rotation axis wobble in the measurements
  6. %%
  7. %% usage:
  8. %% [] = sphear_signal_arrival_times(SIG);
  9. %%
  10. %% SIG: array of signals (measurements, capsules, samples)
  11. %%
  12. %% Copyright 2016-2017, Fernando Lopez-Lezcano, All Rights Reserved
  13. %% nando@ccrma.stanford.edu
  14. %%
  15. %% This program is free software: you can redistribute it and/or modify
  16. %% it under the terms of the GNU General Public License as published by
  17. %% the Free Software Foundation, either version 3 of the License, or
  18. %% (at your option) any later version.
  19. %%
  20. %% This program is distributed in the hope that it will be useful,
  21. %% but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. %% GNU General Public License for more details.
  24. %%
  25. %% You should have received a copy of the GNU General Public License
  26. %% along with this program. If not, see <htp://www.gnu.org/licenses/>.
  27. function [SIGC] = sphear_af_fix_wobble(SIG, delta)
  28. for m = 1:size(SIG, 1);
  29. for c = 1:size(SIG, 2);
  30. SIGC(m, c, :) = fracshift(reshape(SIG(m, c, :), 1, []), delta(m));
  31. end
  32. end
  33. end