diff --git a/GeneralTools/pullSWIFTtelemetry.m b/GeneralTools/pullSWIFTtelemetry.m index 24be6d0..3ec3682 100644 --- a/GeneralTools/pullSWIFTtelemetry.m +++ b/GeneralTools/pullSWIFTtelemetry.m @@ -142,6 +142,10 @@ end end +%% Plot light data for all SWIFTs and export to .csv +microSWIFT_lightdata_plotexport + + %clc, spaces(1:size(IDs,1)) = ' '; commas(1:size(IDs,1)) = ','; diff --git a/microSWIFT/microSWIFT_lightdata_plotexport.m b/microSWIFT/microSWIFT_lightdata_plotexport.m index cb6e31a..aa6d302 100644 --- a/microSWIFT/microSWIFT_lightdata_plotexport.m +++ b/microSWIFT/microSWIFT_lightdata_plotexport.m @@ -4,8 +4,12 @@ % L. Crews, 4 / 2025 % -savedir = pwd; -files = dir(['*.mat']); +savedir = [pwd, '/light_data/']; +if ~exist(savedir) + mkdir(savedir) +end + +files = dir(['microSWIFT*telemetry.mat']); warning('off', 'all') disp(newline)