From 1a293816f0ee570677ef9a149b7ba1ba18080357 Mon Sep 17 00:00:00 2001 From: Laura Crews Date: Tue, 19 May 2026 09:26:33 -0800 Subject: [PATCH] Update to export light data plots and csvs --- GeneralTools/pullSWIFTtelemetry.m | 4 ++++ microSWIFT/microSWIFT_lightdata_plotexport.m | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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)