Changeset 516
- Timestamp:
- 01/16/14 14:32:58
- Files:
-
- gliderproc/trunk/pelagia_DO_hysteresis_plots.m (modified) (1 diff)
- gliderproc/trunk/ramses_DO_hysteresis_plots.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gliderproc/trunk/pelagia_DO_hysteresis_plots.m
r515 r516 1 1 clear; 2 2 load('GLIDER_DATA_LEVEL1\Pelagia_Deployment1_DO_L1.mat'); 3 f 1 = figure('Name', 'Pelagia Dissolved Oxygen Hysteresis Analysis', 'NumberTitle', 'off');3 figure('Name', 'Pelagia Dissolved Oxygen Hysteresis Analysis', 'NumberTitle', 'off'); 4 4 5 sp1 = subplot(3, 4, 1); 6 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 5 start = 250174; 6 middle = 250290; 7 stop = 250401; 8 subplot(3, 4, 1); 9 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 7 10 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 8 11 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 9 12 set(h2, 'Color', 'r'); 10 13 set(ax(2), 'YColor', 'r'); 11 tt = title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'}); 12 xl = xlabel('Time'); 13 yl1 = ylabel(ax(1), 'Depth (m)'); 14 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 14 title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 15 xlabel('UTC Time'); 16 ylabel(ax(1), 'Depth (m)'); 17 ylabel(ax(2), 'O2 Saturation (%)'); 18 axes(ax(2)); 19 yl = get(gca, 'YLim'); 20 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 15 21 16 sp2 = subplot(3, 4, 2); 17 start = 250174; 18 middle = 250290; 19 stop = 250401; 20 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 22 subplot(3, 4, 2); 23 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 21 24 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 22 25 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 23 26 set(h2, 'Color', 'r'); 24 27 set(ax(2), 'YColor', 'r'); 25 t t = title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});26 xl = xlabel('Time');27 yl 1 = ylabel(ax(1), 'Depth (m)');28 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');28 title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 29 xlabel('UTC Time'); 30 ylabel(ax(1), 'Depth (m)'); 31 ylabel(ax(2), 'O2 Saturation (%)'); 29 32 30 s p3 = subplot(3, 4, 3);31 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');33 subplot(3, 4, 3); 34 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 32 35 hold on; 33 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');34 t t = title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});35 xl = xlabel('O2 Saturation (%)');36 yl = ylabel('Depth (m)');36 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 37 title({'Pelagia Deployment 1'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 38 xlabel('O2 Saturation (%)'); 39 ylabel('Depth (m)'); 37 40 38 s p4 = subplot(3, 4, 4);39 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');41 subplot(3, 4, 4); 42 plot(o2_sat(start:middle), tempi(start:middle), '.'); 40 43 hold on; 41 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');42 t t = title({'Pelagia Deployment 1'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});43 xl = xlabel('O2 Saturation (%)');44 yl = ylabel('Temp (Degrees C)');44 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 45 title({'Pelagia Deployment 1'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 46 xlabel('O2 Saturation (%)'); 47 ylabel('Temp (Degrees C)'); 45 48 46 49 clear; 47 50 load('GLIDER_DATA_LEVEL1\Pelagia_Deployment2_DO_L1.mat'); 48 51 49 sp1 = subplot(3, 4, 5); 50 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 52 start = 303249; 53 middle = 303491; 54 stop = 303678; 55 subplot(3, 4, 5); 56 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 51 57 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 52 58 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 53 59 set(h2, 'Color', 'r'); 54 60 set(ax(2), 'YColor', 'r'); 55 tt = title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'}); 56 xl = xlabel('Time'); 57 yl1 = ylabel(ax(1), 'Depth (m)'); 58 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 61 title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 62 xlabel('UTC Time'); 63 ylabel(ax(1), 'Depth (m)'); 64 ylabel(ax(2), 'O2 Saturation (%)'); 65 axes(ax(2)); 66 yl = get(gca, 'YLim'); 67 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 59 68 60 sp2 = subplot(3, 4, 6); 61 start = 303249; 62 middle = 303491; 63 stop = 303678; 64 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 69 subplot(3, 4, 6); 70 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 65 71 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 66 72 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 67 73 set(h2, 'Color', 'r'); 68 74 set(ax(2), 'YColor', 'r'); 69 t t = title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});70 xl = xlabel('Time');71 yl 1 = ylabel(ax(1), 'Depth (m)');72 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');75 title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 76 xlabel('UTC Time'); 77 ylabel(ax(1), 'Depth (m)'); 78 ylabel(ax(2), 'O2 Saturation (%)'); 73 79 74 s p3 = subplot(3, 4, 7);75 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');80 subplot(3, 4, 7); 81 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 76 82 hold on; 77 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');78 t t = title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});79 xl = xlabel('O2 Saturation (%)');80 yl = ylabel('Depth (m)');83 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 84 title({'Pelagia Deployment 2'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 85 xlabel('O2 Saturation (%)'); 86 ylabel('Depth (m)'); 81 87 82 s p4 = subplot(3, 4, 8);83 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');88 subplot(3, 4, 8); 89 plot(o2_sat(start:middle), tempi(start:middle), '.'); 84 90 hold on; 85 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');86 t t = title({'Pelagia Deployment 2'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});87 xl = xlabel('O2 Saturation (%)');88 yl = ylabel('Temp (Degrees C)');91 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 92 title({'Pelagia Deployment 2'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 93 xlabel('O2 Saturation (%)'); 94 ylabel('Temp (Degrees C)'); 89 95 90 96 clear; 91 97 load('GLIDER_DATA_LEVEL1\Pelagia_Deployment3_DO_L1.mat'); 92 98 93 sp1 = subplot(3, 4, 9); 94 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 99 start = 134879; 100 middle = 135082; 101 stop = 135263; 102 subplot(3, 4, 9); 103 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 95 104 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 96 105 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 97 106 set(h2, 'Color', 'r'); 98 107 set(ax(2), 'YColor', 'r'); 99 tt = title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'}); 100 xl = xlabel('Time'); 101 yl1 = ylabel(ax(1), 'Depth (m)'); 102 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 108 title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 109 xlabel('UTC Time'); 110 ylabel(ax(1), 'Depth (m)'); 111 ylabel(ax(2), 'O2 Saturation (%)'); 112 axes(ax(2)); 113 yl = get(gca, 'YLim'); 114 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 103 115 104 sp2 = subplot(3, 4, 10); 105 start = 134879; 106 middle = 135082; 107 stop = 135263; 108 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 116 subplot(3, 4, 10); 117 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 109 118 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 110 119 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 111 120 set(h2, 'Color', 'r'); 112 121 set(ax(2), 'YColor', 'r'); 113 t t = title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});114 xl = xlabel('Time');115 yl 1 = ylabel(ax(1), 'Depth (m)');116 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');122 title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 123 xlabel('UTC Time'); 124 ylabel(ax(1), 'Depth (m)'); 125 ylabel(ax(2), 'O2 Saturation (%)'); 117 126 118 s p3 = subplot(3, 4, 11);119 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');127 subplot(3, 4, 11); 128 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 120 129 hold on; 121 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');122 t t = title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});123 xl = xlabel('O2 Saturation (%)');124 yl = ylabel('Depth (m)');130 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 131 title({'Pelagia Deployment 3'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 132 xlabel('O2 Saturation (%)'); 133 ylabel('Depth (m)'); 125 134 126 s p4 = subplot(3, 4, 12);127 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');135 subplot(3, 4, 12); 136 plot(o2_sat(start:middle), tempi(start:middle), '.'); 128 137 hold on; 129 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');130 t t = title({'Pelagia Deployment 3'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});131 xl = xlabel('O2 Saturation (%)');132 yl = ylabel('Temp (Degrees C)');138 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 139 title({'Pelagia Deployment 3'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 140 xlabel('O2 Saturation (%)'); 141 ylabel('Temp (Degrees C)'); gliderproc/trunk/ramses_DO_hysteresis_plots.m
r515 r516 1 1 clear; 2 2 load('GLIDER_DATA_LEVEL1\Ramses_Deployment1_DO_L1.mat'); 3 f 1 = figure('Name', 'Ramses Dissolved Oxygen Hysteresis Analysis', 'NumberTitle', 'off');3 figure('Name', 'Ramses Dissolved Oxygen Hysteresis Analysis', 'NumberTitle', 'off'); 4 4 5 sp1 = subplot(3, 4, 1); 6 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 5 start = 279409; 6 middle = 279890; 7 stop = 280179; 8 subplot(3, 4, 1); 9 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 7 10 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 8 11 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 9 12 set(h2, 'Color', 'r'); 10 13 set(ax(2), 'YColor', 'r'); 11 tt = title({'Ramses Deployment 1'; 'Depth and O2 Saturation'}); 12 xl = xlabel('Time'); 13 yl1 = ylabel(ax(1), 'Depth (m)'); 14 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 14 title({'Ramses Deployment 1'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 15 xlabel('UTC Time'); 16 ylabel(ax(1), 'Depth (m)'); 17 ylabel(ax(2), 'O2 Saturation (%)'); 18 axes(ax(2)); 19 yl = get(gca, 'YLim'); 20 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 15 21 16 sp2 = subplot(3, 4, 2); 17 start = 279409; 18 middle = 279890; 19 stop = 280179; 20 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 22 subplot(3, 4, 2); 23 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 21 24 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 22 25 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 23 26 set(h2, 'Color', 'r'); 24 27 set(ax(2), 'YColor', 'r'); 25 t t = title({'Ramses Deployment 1'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});26 xl = xlabel('Time');27 yl 1 = ylabel(ax(1), 'Depth (m)');28 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');28 title({'Ramses Deployment 1'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 29 xlabel('UTC Time'); 30 ylabel(ax(1), 'Depth (m)'); 31 ylabel(ax(2), 'O2 Saturation (%)'); 29 32 30 s p3 = subplot(3, 4, 3);31 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');33 subplot(3, 4, 3); 34 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 32 35 hold on; 33 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');34 t t = title({'Ramses Deployment 1'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});35 xl = xlabel('O2 Saturation (%)');36 yl = ylabel('Depth (m)');36 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 37 title({'Ramses Deployment 1'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 38 xlabel('O2 Saturation (%)'); 39 ylabel('Depth (m)'); 37 40 38 s p4 = subplot(3, 4, 4);39 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');41 subplot(3, 4, 4); 42 plot(o2_sat(start:middle), tempi(start:middle), '.'); 40 43 hold on; 41 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');42 t t = title({'Ramses Deployment 1'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});43 xl = xlabel('O2 Saturation (%)');44 yl = ylabel('Temp (Degrees C)');44 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 45 title({'Ramses Deployment 1'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 46 xlabel('O2 Saturation (%)'); 47 ylabel('Temp (Degrees C)'); 45 48 46 49 clear; 47 50 load('GLIDER_DATA_LEVEL1\Ramses_Deployment2_DO_L1.mat'); 48 51 49 sp1 = subplot(3, 4, 5); 50 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 52 start = 96030; 53 middle = 96414; 54 stop = 96765; 55 subplot(3, 4, 5); 56 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 51 57 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 52 58 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 53 59 set(h2, 'Color', 'r'); 54 60 set(ax(2), 'YColor', 'r'); 55 tt = title({'Ramses Deployment 2'; 'Depth and O2 Saturation'}); 56 xl = xlabel('Time'); 57 yl1 = ylabel(ax(1), 'Depth (m)'); 58 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 61 title({'Ramses Deployment 2'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 62 xlabel('UTC Time'); 63 ylabel(ax(1), 'Depth (m)'); 64 ylabel(ax(2), 'O2 Saturation (%)'); 65 axes(ax(2)); 66 yl = get(gca, 'YLim'); 67 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 59 68 60 sp2 = subplot(3, 4, 6); 61 start = 96030; 62 middle = 96414; 63 stop = 96765; 64 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 69 subplot(3, 4, 6); 70 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 65 71 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 66 72 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 67 73 set(h2, 'Color', 'r'); 68 74 set(ax(2), 'YColor', 'r'); 69 t t = title({'Ramses Deployment 2'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});70 xl = xlabel('Time');71 yl 1 = ylabel(ax(1), 'Depth (m)');72 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');75 title({'Ramses Deployment 2'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 76 xlabel('UTC Time'); 77 ylabel(ax(1), 'Depth (m)'); 78 ylabel(ax(2), 'O2 Saturation (%)'); 73 79 74 s p3 = subplot(3, 4, 7);75 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');80 subplot(3, 4, 7); 81 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 76 82 hold on; 77 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');78 t t = title({'Ramses Deployment 2'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});79 xl = xlabel('O2 Saturation (%)');80 yl = ylabel('Depth (m)');83 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 84 title({'Ramses Deployment 2'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 85 xlabel('O2 Saturation (%)'); 86 ylabel('Depth (m)'); 81 87 82 s p4 = subplot(3, 4, 8);83 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');88 subplot(3, 4, 8); 89 plot(o2_sat(start:middle), tempi(start:middle), '.'); 84 90 hold on; 85 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');86 t t = title({'Ramses Deployment 2'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});87 xl = xlabel('O2 Saturation (%)');88 yl = ylabel('Temp (Degrees C)');91 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 92 title({'Ramses Deployment 2'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 93 xlabel('O2 Saturation (%)'); 94 ylabel('Temp (Degrees C)'); 89 95 90 96 clear; 91 97 load('GLIDER_DATA_LEVEL1\Ramses_Deployment3_DO_L1.mat'); 92 98 93 sp1 = subplot(3, 4, 9); 94 [ax, h1, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 99 start = 66193; 100 middle = 66521; 101 stop = 66842; 102 subplot(3, 4, 9); 103 [ax, ~, h2] = plotyy(ptime_ebd_datenum, -depthi, ptime_ebd_datenum, o2_sat); 95 104 datetick(ax(1), 'x', 6, 'keeplimits', 'keepticks'); 96 105 datetick(ax(2), 'x', 6, 'keeplimits', 'keepticks'); 97 106 set(h2, 'Color', 'r'); 98 107 set(ax(2), 'YColor', 'r'); 99 tt = title({'Ramses Deployment 3'; 'Depth and O2 Saturation'}); 100 xl = xlabel('Time'); 101 yl1 = ylabel(ax(1), 'Depth (m)'); 102 yl2 = ylabel(ax(2), 'O2 Saturation (%)'); 108 title({'Ramses Deployment 3'; 'Depth and O2 Saturation'; '\color[rgb]{0 .5 0}Sample Time as Green Bar'}); 109 xlabel('UTC Time'); 110 ylabel(ax(1), 'Depth (m)'); 111 ylabel(ax(2), 'O2 Saturation (%)'); 112 axes(ax(2)); 113 yl = get(gca, 'YLim'); 114 line([ptime_ebd_datenum(middle) ptime_ebd_datenum(middle)], [yl(1) yl(2)], 'LineStyle', '-', 'Color', 'green', 'LineWidth', 2); 103 115 104 sp2 = subplot(3, 4, 10); 105 start = 66193; 106 middle = 66521; 107 stop = 66842; 108 [ax, h1, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 116 subplot(3, 4, 10); 117 [ax, ~, h2] = plotyy(ptime_ebd_datenum(start:stop), -depthi(start:stop), ptime_ebd_datenum(start:stop), o2_sat(start:stop)); 109 118 datetick(ax(1), 'x', 15, 'keeplimits', 'keepticks'); 110 119 datetick(ax(2), 'x', 15, 'keeplimits', 'keepticks'); 111 120 set(h2, 'Color', 'r'); 112 121 set(ax(2), 'YColor', 'r'); 113 t t = title({'Ramses Deployment 3'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]});114 xl = xlabel('Time');115 yl 1 = ylabel(ax(1), 'Depth (m)');116 yl 2 = ylabel(ax(2), 'O2 Saturation (%)');122 title({'Ramses Deployment 3'; 'Depth and O2 Saturation'; ['on ', datestr(ptime_ebd_datenum(start), 1)]}); 123 xlabel('UTC Time'); 124 ylabel(ax(1), 'Depth (m)'); 125 ylabel(ax(2), 'O2 Saturation (%)'); 117 126 118 s p3 = subplot(3, 4, 11);119 p 1 = plot(o2_sat(start:middle), -depthi(start:middle), '.');127 subplot(3, 4, 11); 128 plot(o2_sat(start:middle), -depthi(start:middle), '.'); 120 129 hold on; 121 p 2 = plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.');122 t t = title({'Ramses Deployment 3'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});123 xl = xlabel('O2 Saturation (%)');124 yl = ylabel('Depth (m)');130 plot(o2_sat(middle:stop), -depthi(middle:stop), 'r.'); 131 title({'Ramses Deployment 3'; 'Depth and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 132 xlabel('O2 Saturation (%)'); 133 ylabel('Depth (m)'); 125 134 126 s p4 = subplot(3, 4, 12);127 p 1 = plot(o2_sat(start:middle), tempi(start:middle), '.');135 subplot(3, 4, 12); 136 plot(o2_sat(start:middle), tempi(start:middle), '.'); 128 137 hold on; 129 p 2 = plot(o2_sat(middle:stop), tempi(middle:stop), 'r.');130 t t = title({'Ramses Deployment 3'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'});131 xl = xlabel('O2 Saturation (%)');132 yl = ylabel('Temp (Degrees C)');138 plot(o2_sat(middle:stop), tempi(middle:stop), 'r.'); 139 title({'Ramses Deployment 3'; 'Temp and O2 Saturation'; '\color{blue}Downcast = Blue \color{black}/ \color{red}Upcast = Red'}); 140 xlabel('O2 Saturation (%)'); 141 ylabel('Temp (Degrees C)');