From c58deee070b06b7200f705cd142e8ccc3e5e33cf Mon Sep 17 00:00:00 2001 From: Ethan Higa <55113159+eleehiga@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:55:37 -0700 Subject: [PATCH 1/2] Debugged pfa_fft_zeropad_1d.m by changing ifft to fft --- Processing/IFP/PFA/pfa_fft_zeropad_1d.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processing/IFP/PFA/pfa_fft_zeropad_1d.m b/Processing/IFP/PFA/pfa_fft_zeropad_1d.m index 100be34..dab62b3 100644 --- a/Processing/IFP/PFA/pfa_fft_zeropad_1d.m +++ b/Processing/IFP/PFA/pfa_fft_zeropad_1d.m @@ -14,10 +14,10 @@ zeropad(start_index + (1:size(data,1)),:) = data; % Insert data into zeropad zeropad = ifftshift(zeropad, 1); % Move DC (center point) to index 1 -data = fftshift(ifft(zeropad,[],1),1); % Actual FFT +data = fftshift(fft(zeropad,[],1),1); % Actual FFT end % ////////////////////////////////////////// % /// CLASSIFICATION: UNCLASSIFIED /// -% ////////////////////////////////////////// \ No newline at end of file +% ////////////////////////////////////////// From 6cc90f6fe717eb3adc781218d3237ed9d9720f81 Mon Sep 17 00:00:00 2001 From: Ethan Higa <55113159+eleehiga@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:30:11 -0700 Subject: [PATCH 2/2] Debugged convert_to_cphd.m to be able to write a parsable cphd --- IO/phase_history/cphd/convert_to_cphd.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IO/phase_history/cphd/convert_to_cphd.m b/IO/phase_history/cphd/convert_to_cphd.m index 4cf38cf..27a634d 100644 --- a/IO/phase_history/cphd/convert_to_cphd.m +++ b/IO/phase_history/cphd/convert_to_cphd.m @@ -146,7 +146,6 @@ function convert_to_cphdx( input_ph_filename, output_cphd_file, varargin ) cphd_fid = fopen(output_cphd_file,'w','b'); % All CPHD must be big-endian xml_string = sicdstruct2xml(cphd_meta, 'file_type', format, 'inc_class_attributes', false); fh_struct = write_cphd_fileheader(cphd_fid, cphd_meta, format, numel(xml_string)); -fwrite(cphd_fid,sprintf('\f\n'),'char'); fwrite(cphd_fid,sprintf('%s\f\n',xml_string),'char'); % Vector-based metadata is actually positioned before CPHD data in the @@ -301,4 +300,4 @@ function write_cphd_vbmeta(cphd_fid, cphd_meta, nbdata) % ////////////////////////////////////////// % /// CLASSIFICATION: UNCLASSIFIED /// -% ////////////////////////////////////////// \ No newline at end of file +% //////////////////////////////////////////