From 414a24024ea63f92f17fd75a0562d594f930fd34 Mon Sep 17 00:00:00 2001 From: Povl Abrahamsen Date: Thu, 3 Nov 2022 18:40:28 +0000 Subject: [PATCH] Mistakes in scripts --- CTD_Chipod/mfiles/MakeCasts_CTDchipod_function.m | 2 +- CTD_Chipod/mfiles/PlotChipodDataRaw_General.m | 2 +- CTD_Chipod/mfiles/SummarizeChiProc.m | 2 +- CTD_Chipod/mfiles/agutwocolumn.m | 6 +++--- CTD_Chipod/mfiles/plot_XC_summaries.m | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CTD_Chipod/mfiles/MakeCasts_CTDchipod_function.m b/CTD_Chipod/mfiles/MakeCasts_CTDchipod_function.m index ea7dfca..822f610 100644 --- a/CTD_Chipod/mfiles/MakeCasts_CTDchipod_function.m +++ b/CTD_Chipod/mfiles/MakeCasts_CTDchipod_function.m @@ -339,7 +339,7 @@ function MakeCasts_CTDchipod_function(the_project,mixpath) end chi_up.ctd.bin=datau_1m; chi_up.ctd.raw=CTD_24hz; - chi_uo.time_offset_correction_used=chidat.time_offset_correction_used; + chi_up.time_offset_correction_used=chidat.time_offset_correction_used; % downcast chi_dn=struct(); diff --git a/CTD_Chipod/mfiles/PlotChipodDataRaw_General.m b/CTD_Chipod/mfiles/PlotChipodDataRaw_General.m index 708468b..c80d80e 100644 --- a/CTD_Chipod/mfiles/PlotChipodDataRaw_General.m +++ b/CTD_Chipod/mfiles/PlotChipodDataRaw_General.m @@ -52,7 +52,7 @@ function PlotChipodDataRaw_General(the_project,mixpath) % make list of all the data files we have %chi_file_list=dir( fullfile(data_dir,['/*' whSN '*'])) - chi_file_list = dir( fullfile(data_dir)); + chi_file_list = dir( fullfile(data_dir,'*.mlg')); Nfiles = length(chi_file_list); disp([num2str(Nfiles) ' files found for ' num2str(whSN) ]) diff --git a/CTD_Chipod/mfiles/SummarizeChiProc.m b/CTD_Chipod/mfiles/SummarizeChiProc.m index 91e22d2..8e4f319 100644 --- a/CTD_Chipod/mfiles/SummarizeChiProc.m +++ b/CTD_Chipod/mfiles/SummarizeChiProc.m @@ -98,7 +98,7 @@ function SummarizeChiProc(the_project) whSN=proc_info.SNs{iSN} idg=find(proc_info.(whSN).IsChiData==1); - ax1=subplot(ceil(length(proc_info.SNs))/2,2,iSN); + ax1=subplot(ceil(length(proc_info.SNs)/2),2,iSN); plot(proc_info.icast(idg),proc_info.(whSN).toffset(idg),'o') hold on idb=find(abs(proc_info.(whSN).toffset(idg))>yl(2)); diff --git a/CTD_Chipod/mfiles/agutwocolumn.m b/CTD_Chipod/mfiles/agutwocolumn.m index 613ee66..5b6d639 100755 --- a/CTD_Chipod/mfiles/agutwocolumn.m +++ b/CTD_Chipod/mfiles/agutwocolumn.m @@ -13,9 +13,9 @@ function agutwocolumn(vextent) CWIDTH = 7; CHEIGHT = 8.5*vextent; -un=get(gcf,'units'); -set(gcf,'units','inches','paperpos',[0.75 0.75 CWIDTH CHEIGHT]); -set(gcf,'units',un); +un=get(gcf,'paperunits'); +set(gcf,'paperunits','inches','paperpos',[0.75 0.75 CWIDTH CHEIGHT]); +set(gcf,'paperunits',un); set(gcf,'defaultaxesfontsize',11); set(gcf,'defaulttextfontsize',11); diff --git a/CTD_Chipod/mfiles/plot_XC_summaries.m b/CTD_Chipod/mfiles/plot_XC_summaries.m index d545806..b291aa1 100644 --- a/CTD_Chipod/mfiles/plot_XC_summaries.m +++ b/CTD_Chipod/mfiles/plot_XC_summaries.m @@ -82,16 +82,16 @@ function plot_XC_summaries(the_project) whvar = 'KT'; end - ax = PlotChipodXC_OneVarAllSN(XC,ChiInfo,whvar) ; + ax = PlotChipodXC_OneVarAllSN(XC,ChiInfo,whvar,xvar) ; ylim([0 5000]) axes(ax(1)) ; - title([ChiInfo.the_project ' - ' whvar]) + title([the_project ' - ' whvar]) linkaxes(ax) if saveplot==1 - print(fullfile(fig_path,'XC',[ChiInfo.the_project '_' whvar '_AllSNs_Vslat']),'-dpng') + print(fullfile(fig_path,'XC',[the_project '_' whvar '_AllSNs_Vs' xvar]),'-dpng') end end % ivar