Changeset 498
- Timestamp:
- 03/19/13 15:33:48
- Files:
-
- gliderproc/trunk/gliderCTD_2DPlots.m (modified) (11 diffs)
- gliderproc/trunk/gliderCTD_3DPlots.m (modified) (9 diffs)
- gliderproc/trunk/gliderCTD_DataViz.m (modified) (16 diffs)
- gliderproc/trunk/gliderCTD_Generate_L1_Data.m (modified) (3 diffs)
- gliderproc/trunk/gliderOptode_Generate_L1_Data.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gliderproc/trunk/gliderCTD_2DPlots.m
r496 r498 16 16 dens, densBounds, densCorrected, depth, pres,... 17 17 salin, salinBounds, salinCorrected,... 18 temp, tempBounds, chlor, chlorBounds,...19 plotFlag_TS, plotFlag_TS_AllLegs, plotFlag_TS_Chlorophyll,...18 temp, tempBounds,... 19 plotFlag_TS, plotFlag_TS_AllLegs,... 20 20 plotFlag_Temperature, plotFlag_Salinity, plotFlag_Density,... 21 plotFlag_Chlorophyll, plotFlag_TemperatureProfile,... 22 plotFlag_SalinityProfile, plotFlag_DensityProfile,... 23 plotFlag_ChlorophyllProfile) 21 plotFlag_TemperatureProfile,... 22 plotFlag_SalinityProfile, plotFlag_DensityProfile) 24 23 25 24 … … 37 36 % TS plot for all legs (separate color for each leg)... 38 37 lastLeg = length(nLegEndPoints); 39 figure('Position', [ 500,500,1600,900]);38 figure('Position', [10,10,1600,900]); 40 39 for i=2:lastLeg 41 40 % get start/end points strings and indices for this leg... … … 86 85 dens = dens(nLegStart:nLegEnd); 87 86 densCorrected = densCorrected(nLegStart:nLegEnd); 88 chlor = chlor(nLegStart:nLegEnd);87 % chlor = chlor(nLegStart:nLegEnd); 89 88 90 89 % set leg strings for plot titles... … … 98 97 if (plotFlag_TS==1) 99 98 % TS plot... 100 figure('Position', [ 500,500,1600,900]);99 figure('Position', [10,10,1600,900]); 101 100 % set marker color and plot TS for this leg... 102 101 if legNumber==0 … … 123 122 124 123 125 if (plotFlag_TS_Chlorophyll==1)126 % TS plot with color mapped to chlorophyll...127 figure('Position', [500,500,1600,900]);128 ccplot(salinCorrected, temp, chlor, chlorBounds, '.', 10);129 hold on;130 hc = colorbar;131 set(hc, 'fontsize', 12);132 % scale the x-axis and y-axis...133 ax = axis;134 axis([salinBounds(1) salinBounds(2) tempBounds(1) tempBounds(2)]);135 ylabel('Temperature (°C)', 'fontsize', 18);136 xlabel('Salinity (psu)', 'fontsize', 18);137 title([strGliderName, ' , ', strDeployment, ' , ', strLeg, ' with CHLOROPHYLL (ug/l) '], 'fontsize', 20, 'fontweight', 'bold');138 x = [ax(1):0.1:ax(2)];139 y = [ax(3):0.3:ax(4)];140 [X,Y] = meshgrid(x,y);141 rho = sw_pden(X, Y, 0, 0);142 [C, H] = contour(X, Y, rho, [1024:0.2:1028], 'k--');143 clabel(C, H, 'FontSize', 16);144 end124 % if (plotFlag_TS_Chlorophyll==1) 125 % % TS plot with color mapped to chlorophyll... 126 % figure('Position', [10,10,1600,900]); 127 % ccplot(salinCorrected, temp, chlor, chlorBounds, '.', 10); 128 % hold on; 129 % hc = colorbar; 130 % set(hc, 'fontsize', 12); 131 % % scale the x-axis and y-axis... 132 % ax = axis; 133 % axis([salinBounds(1) salinBounds(2) tempBounds(1) tempBounds(2)]); 134 % ylabel('Temperature (°C)', 'fontsize', 18); 135 % xlabel('Salinity (psu)', 'fontsize', 18); 136 % title([strGliderName, ' , ', strDeployment, ' , ', strLeg, ' with CHLOROPHYLL (ug/l) '], 'fontsize', 20, 'fontweight', 'bold'); 137 % x = [ax(1):0.1:ax(2)]; 138 % y = [ax(3):0.3:ax(4)]; 139 % [X,Y] = meshgrid(x,y); 140 % rho = sw_pden(X, Y, 0, 0); 141 % [C, H] = contour(X, Y, rho, [1024:0.2:1028], 'k--'); 142 % clabel(C, H, 'FontSize', 16); 143 % end 145 144 146 145 if (plotFlag_Temperature==1) 147 146 % temperature vs depth... 148 figure('Position', [ 500,500,1600,900]);147 figure('Position', [10,10,1600,900]); 149 148 plot(temp, depth, 'b.'); 150 149 grid on; … … 160 159 if (plotFlag_Salinity==1) 161 160 % corrected salinity vs depth... 162 figure('Position', [ 500,500,1600,900]);161 figure('Position', [10,10,1600,900]); 163 162 plot(salinCorrected, depth, 'b.'); 164 163 grid on; … … 174 173 if (plotFlag_Density==1) 175 174 % corrected density vs depth... 176 figure('Position', [ 500,500,1600,900]);175 figure('Position', [10,10,1600,900]); 177 176 plot(densCorrected, depth, 'b.'); 178 177 grid on; … … 186 185 end 187 186 188 if (plotFlag_Chlorophyll==1)189 % chlorophyll vs depth...190 figure('Position', [500,500,1600,900]);191 plot(chlor, depth, 'b.');192 grid on;193 % scale the x-axis...194 ax = axis;195 axis([chlorBounds(1) chlorBounds(2) ax(3) ax(4)]);196 set(gca, 'fontsize', 13, 'ydir', 'reverse');197 ylabel('Depth (m)', 'fontsize', 18);198 xlabel('Chlorophyll (ug/l)', 'fontsize', 18);199 title(['CHLOROPHYLL - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold');200 end187 % if (plotFlag_Chlorophyll==1) 188 % % chlorophyll vs depth... 189 % figure('Position', [10,10,1600,900]); 190 % plot(chlor, depth, 'b.'); 191 % grid on; 192 % % scale the x-axis... 193 % ax = axis; 194 % axis([chlorBounds(1) chlorBounds(2) ax(3) ax(4)]); 195 % set(gca, 'fontsize', 13, 'ydir', 'reverse'); 196 % ylabel('Depth (m)', 'fontsize', 18); 197 % xlabel('Chlorophyll (ug/l)', 'fontsize', 18); 198 % title(['CHLOROPHYLL - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold'); 199 % end 201 200 202 201 if (plotFlag_TemperatureProfile==1) 203 202 % temperature profile... 204 figure('Position', [ 500,500,1600,900]);203 figure('Position', [10,10,1600,900]); 205 204 ccplot(ptime_datenum, depth, temp, tempBounds, '.', 10); 206 205 set(gca, 'fontsize', 12, 'ydir', 'reverse'); … … 215 214 if (plotFlag_SalinityProfile==1) 216 215 % corrected salinity profile... 217 figure('Position', [ 500,500,1600,900]);216 figure('Position', [10,10,1600,900]); 218 217 ccplot(ptime_datenum, depth, salinCorrected, salinBounds, '.', 10); 219 218 set(gca, 'fontsize', 12, 'ydir', 'reverse'); … … 228 227 if (plotFlag_DensityProfile==1) 229 228 % corrected density profile... 230 figure('Position', [ 500,500,1600,900]);229 figure('Position', [10,10,1600,900]); 231 230 ccplot(ptime_datenum, depth, densCorrected, densBounds, '.', 10); 232 231 set(gca, 'fontsize', 12, 'ydir', 'reverse'); … … 239 238 end 240 239 241 if (plotFlag_ChlorophyllProfile==1)242 % chlorophyll profile...243 figure('Position', [500,500,1600,900]);244 ccplot(ptime_datenum, depth, chlor, chlorBounds, '.', 10);245 set(gca, 'fontsize', 12, 'ydir', 'reverse');246 datetick('x', 6, 'keeplimits', 'keepticks');247 hc = colorbar;248 set(hc, 'fontsize', 12);249 ylabel('Depth (m)', 'fontsize', 18);250 xlabel('Chlorophyll (ug/l)', 'fontsize', 18);251 title(['CHLOROPHYLL - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold');252 end240 % if (plotFlag_ChlorophyllProfile==1) 241 % % chlorophyll profile... 242 % figure('Position', [10,10,1600,900]); 243 % ccplot(ptime_datenum, depth, chlor, chlorBounds, '.', 10); 244 % set(gca, 'fontsize', 12, 'ydir', 'reverse'); 245 % datetick('x', 6, 'keeplimits', 'keepticks'); 246 % hc = colorbar; 247 % set(hc, 'fontsize', 12); 248 % ylabel('Depth (m)', 'fontsize', 18); 249 % xlabel('Chlorophyll (ug/l)', 'fontsize', 18); 250 % title(['CHLOROPHYLL - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold'); 251 % end 253 252 254 253 end gliderproc/trunk/gliderCTD_3DPlots.m
r496 r498 16 16 ztop, zbottom, gpsLat, gpsLon, depth, pres,... 17 17 salinCorrected, salinBounds, densCorrected, densBounds,... 18 temp, tempBounds, chlor, chlorBounds,...18 temp, tempBounds,... 19 19 plotFlag_Temperature3D, plotFlag_Salinity3D,... 20 plotFlag_Density3D, plotFlag_Chlorophyll3D,...20 plotFlag_Density3D,... 21 21 plotFlag_AllGliderTracks) 22 22 … … 36 36 salinCorrected = salinCorrected(nLegStart:nLegEnd); 37 37 densCorrected = densCorrected(nLegStart:nLegEnd); 38 chlor = chlor(nLegStart:nLegEnd);38 % chlor = chlor(nLegStart:nLegEnd); 39 39 40 40 % set strings for plot titles... … … 112 112 if (plotFlag_Temperature3D==1) 113 113 % 3D color plot of temperature (with bathymetry surface)... 114 figure('Position', [ 500,500,1600,900]);114 figure('Position', [10,10,1600,900]); 115 115 % plot the coastline... 116 116 plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); … … 175 175 if (plotFlag_Salinity3D==1) 176 176 % 3D color plot of salinity (with bathymetry surface)... 177 figure('Position', [ 500,500,1600,900]);177 figure('Position', [10,10,1600,900]); 178 178 % plot the coastline... 179 179 plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); … … 220 220 if (plotFlag_Density3D==1) 221 221 % 3D color plot of density (with bathymetry surface)... 222 figure('Position', [ 500,500,1600,900]);222 figure('Position', [10,10,1600,900]); 223 223 % plot the coastline... 224 224 plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); … … 263 263 264 264 %***** DRAW 3D CHLOROPHYLL PLOT ***************************************************** 265 if (plotFlag_Chlorophyll3D==1)266 % 3D color plot of chlorophyll (with bathymetry surface)...267 figure('Position', [500,500,1600,900]);268 % plot the coastline...269 plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]);270 hold on;271 % plot the bathymetry surface...272 HndlBATH = surf(XI, YI, Z);273 %set(HndlBATH, 'facecolor', [0.75 0.75 0.75], 'edgecolor', [0.5 0.5 0.5]);274 set(HndlBATH, 'facecolor', [0.75 0.75 0.75], 'edgecolor', 'none');275 set(gca, 'box', 'on', 'position', [0.1227 0.2024 0.7727 0.6235]);276 % lighting and shading bath...277 camlight right;278 lighting phong;279 material dull;280 set(HndlBATH, 'edgecolor', 'none');281 hold on;282 % vertical marker lines at mooring locations283 plot3(LB1_X, LB1_Y, LB1_Z, 'k', 'linewidth', 5);284 hold on;285 plot3(LB2_X, LB2_Y, LB2_Z, 'k', 'linewidth', 5);286 hold on;287 plot3(LB3_X, LB3_Y, LB3_Z, 'k', 'linewidth', 5);288 hold on;289 % surface marker symbol at mooring locations290 plot3(lb1Lon, lb1Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12);291 hold on;292 plot3(lb2Lon, lb2Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12);293 hold on;294 plot3(lb3Lon, lb3Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12);295 hold on;296 % plot chlorophyll profile297 hc = ccplot3(gpsLon, gpsLat, -depth, chlor, chlorBounds, '.', 10);298 grid on;299 axis([lonlim latlim zbottom ztop]);300 hc = colorbar;301 set(hc, 'fontsize', 12);302 xlabel('Longitude', 'fontsize', 18);303 ylabel('Latitude', 'fontsize', 18);304 zlabel('Depth (m)', 'fontsize', 18);305 title(['CHLOROPHYLL (ug/l) - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold');306 end265 % if (plotFlag_Chlorophyll3D==1) 266 % % 3D color plot of chlorophyll (with bathymetry surface)... 267 % figure('Position', [10,10,1600,900]); 268 % % plot the coastline... 269 % plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); 270 % hold on; 271 % % plot the bathymetry surface... 272 % HndlBATH = surf(XI, YI, Z); 273 % %set(HndlBATH, 'facecolor', [0.75 0.75 0.75], 'edgecolor', [0.5 0.5 0.5]); 274 % set(HndlBATH, 'facecolor', [0.75 0.75 0.75], 'edgecolor', 'none'); 275 % set(gca, 'box', 'on', 'position', [0.1227 0.2024 0.7727 0.6235]); 276 % % lighting and shading bath... 277 % camlight right; 278 % lighting phong; 279 % material dull; 280 % set(HndlBATH, 'edgecolor', 'none'); 281 % hold on; 282 % % vertical marker lines at mooring locations 283 % plot3(LB1_X, LB1_Y, LB1_Z, 'k', 'linewidth', 5); 284 % hold on; 285 % plot3(LB2_X, LB2_Y, LB2_Z, 'k', 'linewidth', 5); 286 % hold on; 287 % plot3(LB3_X, LB3_Y, LB3_Z, 'k', 'linewidth', 5); 288 % hold on; 289 % % surface marker symbol at mooring locations 290 % plot3(lb1Lon, lb1Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12); 291 % hold on; 292 % plot3(lb2Lon, lb2Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12); 293 % hold on; 294 % plot3(lb3Lon, lb3Lat, 0, 'ko', 'LineWidth', 3, 'MarkerEdgeColor','k', 'MarkerFaceColor','k', 'MarkerSize', 12); 295 % hold on; 296 % % plot chlorophyll profile 297 % hc = ccplot3(gpsLon, gpsLat, -depth, chlor, chlorBounds, '.', 10); 298 % grid on; 299 % axis([lonlim latlim zbottom ztop]); 300 % hc = colorbar; 301 % set(hc, 'fontsize', 12); 302 % xlabel('Longitude', 'fontsize', 18); 303 % ylabel('Latitude', 'fontsize', 18); 304 % zlabel('Depth (m)', 'fontsize', 18); 305 % title(['CHLOROPHYLL (ug/l) - ', strGliderName, ' , ', strDeployment, ' , ', strLeg, ' '], 'fontsize', 20, 'fontweight', 'bold'); 306 % end 307 307 308 308 … … 314 314 for i=1:3 315 315 % mat file path string... 316 strMatFilePath = strcat('GLIDER_DATA_LEVEL1/ CTD/Pelagia_CTD_Deployment', num2str(i), '.mat');316 strMatFilePath = strcat('GLIDER_DATA_LEVEL1/Pelagia_Deployment', num2str(i), '_CTD_L1.mat'); 317 317 % load glider sensor data from mat file... 318 318 load(strMatFilePath); … … 327 327 for i=1:3 328 328 % mat file path string... 329 strMatFilePath = strcat('GLIDER_DATA_LEVEL1/ CTD/Ramses_CTD_Deployment', num2str(i), '.mat');329 strMatFilePath = strcat('GLIDER_DATA_LEVEL1/Ramses_Deployment', num2str(i), '_CTD_L1.mat'); 330 330 % load glider sensor data from mat file... 331 331 load(strMatFilePath); … … 361 361 362 362 % plot of complete glider tracks (all 3 deployments) with contour lines... 363 figure('Position', [ 500,500,1200,1200]);363 figure('Position', [10,10,1200,1200]); 364 364 % plot the coastline... 365 365 plot(cillong, cillat, 'k-', 'linewidth', [5]); gliderproc/trunk/gliderCTD_DataViz.m
r495 r498 19 19 % Created: 18 June 2012 20 20 % 21 % Todo: Have tracks for individual legs instead of just all tracks. 22 % Get some better bathymetry. 23 % Move specification of leg endpoints to included .m file. 24 % Individualize axes bounds per glider but NOT per leg. 25 % Include legend for all legs TS plot. 26 % 21 27 %////////////////////////////////////////////////////////////////////////// 22 28 … … 35 41 global mPlotFlag_TS; 36 42 global mPlotFlag_TS_AllLegs; 37 global mPlotFlag_TS_Chlorophyll;43 % global mPlotFlag_TS_Chlorophyll; 38 44 global mPlotFlag_Temperature; 39 45 global mPlotFlag_Salinity; 40 46 global mPlotFlag_Density; 41 global mPlotFlag_Chlorophyll;47 % global mPlotFlag_Chlorophyll; 42 48 global mPlotFlag_TemperatureProfile; 43 49 global mPlotFlag_SalinityProfile; 44 50 global mPlotFlag_DensityProfile; 45 global mPlotFlag_ChlorophyllProfile;51 % global mPlotFlag_ChlorophyllProfile; 46 52 global mPlotFlag_Temperature3D; 47 53 global mPlotFlag_Salinity3D; 48 54 global mPlotFlag_Density3D; 49 global mPlotFlag_Chlorophyll3D;55 % global mPlotFlag_Chlorophyll3D; 50 56 global mPlotFlag_AllGliderTracks; 51 57 … … 99 105 mPlotFlag_TS = 0; 100 106 mPlotFlag_TS_AllLegs = 0; 101 mPlotFlag_TS_Chlorophyll = 0;107 % mPlotFlag_TS_Chlorophyll = 0; 102 108 mPlotFlag_Temperature = 0; 103 109 mPlotFlag_Salinity = 0; 104 110 mPlotFlag_Density = 0; 105 mPlotFlag_Chlorophyll = 0;111 % mPlotFlag_Chlorophyll = 0; 106 112 mPlotFlag_TemperatureProfile = 0; 107 113 mPlotFlag_SalinityProfile = 0; 108 114 mPlotFlag_DensityProfile = 0; 109 mPlotFlag_ChlorophyllProfile = 0;115 % mPlotFlag_ChlorophyllProfile = 0; 110 116 mPlotFlag_Temperature3D = 0; 111 117 mPlotFlag_Salinity3D = 0; 112 118 mPlotFlag_Density3D = 0; 113 mPlotFlag_Chlorophyll3D = 0;119 % mPlotFlag_Chlorophyll3D = 0; 114 120 mPlotFlag_AllGliderTracks = 0; 115 121 … … 168 174 figureWidth = 790; 169 175 %figureHeight = 690; 170 figureHeight = 770;171 172 titleTextPosFromLeft = 180;173 titleTextPosFromBottom = 720;174 titleTextWidth = 410;175 titleTextHeight = 25;176 figureHeight = 670; 177 178 titleTextPosFromLeft = 85; 179 titleTextPosFromBottom = 620; 180 titleTextWidth = 600; 181 titleTextHeight = 35; 176 182 177 183 gliderBGPosFromLeft = 20; 178 gliderBGPosFromBottom = 580;184 gliderBGPosFromBottom = 470; 179 185 gliderBGWidth = 200; 180 186 gliderBGHeight = 120; 181 187 182 188 deploymentBGPosFromLeft = 20; 183 deploymentBGPosFromBottom = 400;189 deploymentBGPosFromBottom = 290; 184 190 deploymentBGWidth = 200; 185 191 deploymentBGHeight = 160; 186 192 187 193 legBGPosFromLeft = 250; 188 legBGPosFromBottom = 400;194 legBGPosFromBottom = 290; 189 195 legBGWidth = 500; 190 196 legBGHeight = 300; … … 194 200 plotsBGWidth = 730; 195 201 %plotsBGHeight = 190; 196 plotsBGHeight = 270;202 plotsBGHeight = 160; 197 203 198 204 199 205 % create figure... 200 guih = figure('MenuBar', 'none', 'Position', [ 360, 500, figureWidth, figureHeight]);206 guih = figure('MenuBar', 'none', 'Position', [10, 10, figureWidth, figureHeight]); 201 207 202 208 % add title text... 203 uicontrol(guih, 'Style', 'text', 'String', ' Slocum Glider CTD Data Visualization', 'FontSize', 22,...209 uicontrol(guih, 'Style', 'text', 'String', ' Slocum Glider CTD Data Visualization', 'FontSize', 16,... 204 210 'FontWeight', 'bold', 'BackgroundColor', [0.8 0.8 0.8], 'Units', 'pixels',... 205 211 'Position', [titleTextPosFromLeft titleTextPosFromBottom titleTextWidth titleTextHeight]); … … 210 216 'SelectionChangeFcn', @hGliderSelectionChanged); 211 217 rbhGlider_Pelagia = uicontrol(bghGlider, 'Style', 'radiobutton', 'String', 'Pelagia', 'FontSize', 14,... 212 'Units', 'pixels', 'Position', [30 60 1 00 30]);218 'Units', 'pixels', 'Position', [30 60 120 30]); 213 219 rbhGlider_Ramses = uicontrol(bghGlider, 'Style', 'radiobutton', 'String', 'Ramses', 'FontSize', 14,... 214 'Units', 'pixels', 'Position', [30 20 1 00 30]);220 'Units', 'pixels', 'Position', [30 20 120 30]); 215 221 216 222 % add button group to select deployment number... … … 218 224 'Units', 'pixels', 'Position', [deploymentBGPosFromLeft deploymentBGPosFromBottom deploymentBGWidth deploymentBGHeight],... 219 225 'SelectionChangeFcn', @hDeploymentNumberSelectionChanged); 220 rbhDeployment_1 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', ' Deployment1', 'FontSize', 14,...226 rbhDeployment_1 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '1', 'FontSize', 14,... 221 227 'Units', 'pixels', 'Position', [30 100 140 30]); 222 rbhDeployment_2 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', ' Deployment2', 'FontSize', 14,...228 rbhDeployment_2 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '2', 'FontSize', 14,... 223 229 'Units', 'pixels', 'Position', [30 60 140 30]); 224 rbhDeployment_3 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', ' Deployment3', 'FontSize', 14,...230 rbhDeployment_3 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '3', 'FontSize', 14,... 225 231 'Units', 'pixels', 'Position', [30 20 140 30]); 226 232 … … 230 236 'SelectionChangeFcn', @hLegNumberSelectionChanged); 231 237 232 rbhLeg_0 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Complete', 'FontSize', 14,...233 'Units', 'pixels', 'Position', [30 235 100 30]);234 sthLeg_0 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrComplete_DateRange, 'FontSize', 1 4,...235 'Units', 'pixels', 'Position', [ 120 229 350 30]);236 237 rbhLeg_1 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg1', 'FontSize', 14,...238 'Units', 'pixels', 'Position', [30 200 70 30]);239 sthLeg_1 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg1_DateRange, 'FontSize', 1 4,...240 'Units', 'pixels', 'Position', [ 120 194 350 30]);238 rbhLeg_0 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'All', 'FontSize', 14,... 239 'Units', 'pixels', 'Position', [30 235 50 30]); 240 sthLeg_0 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrComplete_DateRange, 'FontSize', 10,... 241 'Units', 'pixels', 'Position', [90 240 380 20]); 242 243 rbhLeg_1 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '1', 'FontSize', 14,... 244 'Units', 'pixels', 'Position', [30 200 50 30]); 245 sthLeg_1 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg1_DateRange, 'FontSize', 10,... 246 'Units', 'pixels', 'Position', [90 205 380 20]); 241 247 242 rbhLeg_2 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg2', 'FontSize', 14,...243 'Units', 'pixels', 'Position', [30 165 70 30]);244 sthLeg_2 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg2_DateRange, 'FontSize', 1 4,...245 'Units', 'pixels', 'Position', [ 120 159 350 30]);248 rbhLeg_2 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '2', 'FontSize', 14,... 249 'Units', 'pixels', 'Position', [30 165 50 30]); 250 sthLeg_2 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg2_DateRange, 'FontSize', 10,... 251 'Units', 'pixels', 'Position', [90 170 380 20]); 246 252 247 rbhLeg_3 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg3', 'FontSize', 14,...248 'Units', 'pixels', 'Position', [30 130 70 30]);249 sthLeg_3 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg3_DateRange, 'FontSize', 1 4,...250 'Units', 'pixels', 'Position', [ 120 124 350 30]);253 rbhLeg_3 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '3', 'FontSize', 14,... 254 'Units', 'pixels', 'Position', [30 130 50 30]); 255 sthLeg_3 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg3_DateRange, 'FontSize', 10,... 256 'Units', 'pixels', 'Position', [90 135 380 20]); 251 257 252 rbhLeg_4 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg4', 'FontSize', 14,...253 'Units', 'pixels', 'Position', [30 95 70 30]);254 sthLeg_4 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg4_DateRange, 'FontSize', 1 4,...255 'Units', 'pixels', 'Position', [ 120 89 350 30]);256 257 rbhLeg_5 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg5', 'FontSize', 14,...258 'Units', 'pixels', 'Position', [30 60 70 30]);259 sthLeg_5 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg5_DateRange, 'FontSize', 1 4,...260 'Units', 'pixels', 'Position', [ 120 54 350 30]);258 rbhLeg_4 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '4', 'FontSize', 14,... 259 'Units', 'pixels', 'Position', [30 95 50 30]); 260 sthLeg_4 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg4_DateRange, 'FontSize', 10,... 261 'Units', 'pixels', 'Position', [90 100 380 20]); 262 263 rbhLeg_5 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '5', 'FontSize', 14,... 264 'Units', 'pixels', 'Position', [30 60 50 30]); 265 sthLeg_5 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg5_DateRange, 'FontSize', 10,... 266 'Units', 'pixels', 'Position', [90 65 380 20]); 261 267 262 rbhLeg_6 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', ' Leg6', 'FontSize', 14,...263 'Units', 'pixels', 'Position', [30 25 70 30]);264 sthLeg_6 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg6_DateRange, 'FontSize', 1 4,...265 'Units', 'pixels', 'Position', [ 120 19 350 30]);268 rbhLeg_6 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '6', 'FontSize', 14,... 269 'Units', 'pixels', 'Position', [30 25 50 30]); 270 sthLeg_6 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg6_DateRange, 'FontSize', 10,... 271 'Units', 'pixels', 'Position', [90 30 380 20]); 266 272 267 273 … … 280 286 bghPlotType = uibuttongroup('Parent', guih, 'Title', 'Data Plots', 'FontSize', 14, 'FontWeight', 'bold',... 281 287 'Units', 'pixels', 'Position', [plotsBGPosFromLeft plotsBGPosFromBottom plotsBGWidth plotsBGHeight]); 282 cbhPlot_1 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'All Glider Tracks', 'FontSize', 1 4,...283 'Units', 'pixels', 'Position', [30 210 160 30], 'Callback', @checkbox1_Callback);284 cbhPlot_2 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS', 'FontSize', 1 4,...285 'Units', 'pixels', 'Position', [30 175 160 30], 'Callback', @checkbox2_Callback);286 cbhPlot_3 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS (all legs)', 'FontSize', 1 4,...287 'Units', 'pixels', 'Position', [30 140 160 30], 'Callback', @checkbox3_Callback);288 cbhPlot_4 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS (with Chlorophyll)', 'FontSize', 14,...289 'Units', 'pixels', 'Position', [30 105 160 30], 'Callback', @checkbox4_Callback);290 cbhPlot_5 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature', 'FontSize', 1 4,...291 'Units', 'pixels', 'Position', [220 210 160 30], 'Callback', @checkbox5_Callback);292 cbhPlot_6 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity', 'FontSize', 1 4,...293 'Units', 'pixels', 'Position', [220 175 160 30], 'Callback', @checkbox6_Callback);294 cbhPlot_7 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density', 'FontSize', 1 4,...295 'Units', 'pixels', 'Position', [220 140 160 30], 'Callback', @checkbox7_Callback);296 cbhPlot_8 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Chlorophyll', 'FontSize', 14,...297 'Units', 'pixels', 'Position', [220 105 160 30], 'Callback', @checkbox8_Callback);298 cbhPlot_9 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature Profile', 'FontSize', 1 4,...299 'Units', 'pixels', 'Position', [370 210 160 30], 'Callback', @checkbox9_Callback);300 cbhPlot_10 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity Profile', 'FontSize', 1 4,...301 'Units', 'pixels', 'Position', [370 175 160 30], 'Callback', @checkbox10_Callback);302 cbhPlot_11 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density Profile', 'FontSize', 1 4,...303 'Units', 'pixels', 'Position', [370 140 160 30], 'Callback', @checkbox11_Callback);304 cbhPlot_12 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Chlorophyll Profile', 'FontSize', 14,...305 'Units', 'pixels', 'Position', [370 105 160 30], 'Callback', @checkbox12_Callback);306 cbhPlot_13 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Temperature', 'FontSize', 1 4,...307 'Units', 'pixels', 'Position', [560 210 160 30], 'Callback', @checkbox13_Callback);308 cbhPlot_14 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Salinity', 'FontSize', 1 4,...309 'Units', 'pixels', 'Position', [560 175 160 30], 'Callback', @checkbox14_Callback);310 cbhPlot_15 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Density', 'FontSize', 1 4,...311 'Units', 'pixels', 'Position', [560 140 160 30], 'Callback', @checkbox15_Callback);312 cbhPlot_16 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Chlorophyll', 'FontSize', 14,...313 'Units', 'pixels', 'Position', [560 105 160 30], 'Callback', @checkbox16_Callback);288 cbhPlot_1 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'All Glider Tracks', 'FontSize', 10,... 289 'Units', 'pixels', 'Position', [30 90 160 30], 'Callback', @checkbox1_Callback); 290 cbhPlot_2 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS', 'FontSize', 10,... 291 'Units', 'pixels', 'Position', [30 55 160 30], 'Callback', @checkbox2_Callback); 292 cbhPlot_3 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS (all legs)', 'FontSize', 10,... 293 'Units', 'pixels', 'Position', [30 20 160 30], 'Callback', @checkbox3_Callback); 294 % cbhPlot_4 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS (with Chlorophyll)', 'FontSize', 10,... 295 % 'Units', 'pixels', 'Position', [30 105 160 30], 'Callback', @checkbox4_Callback); 296 cbhPlot_5 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature', 'FontSize', 10,... 297 'Units', 'pixels', 'Position', [220 90 160 30], 'Callback', @checkbox5_Callback); 298 cbhPlot_6 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity', 'FontSize', 10,... 299 'Units', 'pixels', 'Position', [220 55 160 30], 'Callback', @checkbox6_Callback); 300 cbhPlot_7 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density', 'FontSize', 10,... 301 'Units', 'pixels', 'Position', [220 20 160 30], 'Callback', @checkbox7_Callback); 302 % cbhPlot_8 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Chlorophyll', 'FontSize', 10,... 303 % 'Units', 'pixels', 'Position', [220 105 160 30], 'Callback', @checkbox8_Callback); 304 cbhPlot_9 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature Profile', 'FontSize', 10,... 305 'Units', 'pixels', 'Position', [370 90 160 30], 'Callback', @checkbox9_Callback); 306 cbhPlot_10 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity Profile', 'FontSize', 10,... 307 'Units', 'pixels', 'Position', [370 55 160 30], 'Callback', @checkbox10_Callback); 308 cbhPlot_11 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density Profile', 'FontSize', 10,... 309 'Units', 'pixels', 'Position', [370 20 160 30], 'Callback', @checkbox11_Callback); 310 % cbhPlot_12 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Chlorophyll Profile', 'FontSize', 10,... 311 % 'Units', 'pixels', 'Position', [370 105 160 30], 'Callback', @checkbox12_Callback); 312 cbhPlot_13 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Temperature', 'FontSize', 10,... 313 'Units', 'pixels', 'Position', [560 90 160 30], 'Callback', @checkbox13_Callback); 314 cbhPlot_14 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Salinity', 'FontSize', 10,... 315 'Units', 'pixels', 'Position', [560 55 160 30], 'Callback', @checkbox14_Callback); 316 cbhPlot_15 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Density', 'FontSize', 10,... 317 'Units', 'pixels', 'Position', [560 20 160 30], 'Callback', @checkbox15_Callback); 318 % cbhPlot_16 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Chlorophyll', 'FontSize', 10,... 319 % 'Units', 'pixels', 'Position', [560 105 160 30], 'Callback', @checkbox16_Callback); 314 320 315 321 … … 352 358 radioButtonLabel = get(selected, 'String'); 353 359 354 if (strcmp(radioButtonLabel, ' Deployment1'))360 if (strcmp(radioButtonLabel, '1')) 355 361 mDeploymentNumber = 1; 356 elseif (strcmp(radioButtonLabel, ' Deployment2'))362 elseif (strcmp(radioButtonLabel, '2')) 357 363 mDeploymentNumber = 2; 358 364 else … … 371 377 radioButtonLabel = get(selected, 'String'); 372 378 373 if (strcmp(radioButtonLabel, ' Complete'))379 if (strcmp(radioButtonLabel, 'All')) 374 380 mLegNumber = 0; 375 elseif (strcmp(radioButtonLabel, ' Leg1'))381 elseif (strcmp(radioButtonLabel, '1')) 376 382 mLegNumber = 1; 377 elseif (strcmp(radioButtonLabel, ' Leg2'))383 elseif (strcmp(radioButtonLabel, '2')) 378 384 mLegNumber = 2; 379 elseif (strcmp(radioButtonLabel, ' Leg3'))385 elseif (strcmp(radioButtonLabel, '3')) 380 386 mLegNumber = 3; 381 elseif (strcmp(radioButtonLabel, ' Leg4'))387 elseif (strcmp(radioButtonLabel, '4')) 382 388 mLegNumber = 4; 383 elseif (strcmp(radioButtonLabel, ' Leg5'))389 elseif (strcmp(radioButtonLabel, '5')) 384 390 mLegNumber = 5; 385 391 else … … 421 427 422 428 %---------------------------------------------------------------------- 423 function checkbox4_Callback(hObject, eventdata, handles)424 % callback called when the TS-Chlorophyll plot checkbox is checked425 if (get(hObject,'Value') == get(hObject,'Max'))426 mPlotFlag_TS_Chlorophyll = 1;427 else428 mPlotFlag_TS_Chlorophyll = 0;429 end430 end429 % function checkbox4_Callback(hObject, eventdata, handles) 430 % % callback called when the TS-Chlorophyll plot checkbox is checked 431 % if (get(hObject,'Value') == get(hObject,'Max')) 432 % mPlotFlag_TS_Chlorophyll = 1; 433 % else 434 % mPlotFlag_TS_Chlorophyll = 0; 435 % end 436 % end 431 437 432 438 %---------------------------------------------------------------------- … … 461 467 462 468 %---------------------------------------------------------------------- 463 function checkbox8_Callback(hObject, eventdata, handles)464 % callback called when the chlorophyll plot checkbox is checked465 if (get(hObject,'Value') == get(hObject,'Max'))466 mPlotFlag_Chlorophyll = 1;467 else468 mPlotFlag_Chlorophyll = 0;469 end470 end469 % function checkbox8_Callback(hObject, eventdata, handles) 470 % % callback called when the chlorophyll plot checkbox is checked 471 % if (get(hObject,'Value') == get(hObject,'Max')) 472 % mPlotFlag_Chlorophyll = 1; 473 % else 474 % mPlotFlag_Chlorophyll = 0; 475 % end 476 % end 471 477 472 478 %---------------------------------------------------------------------- … … 501 507 502 508 %---------------------------------------------------------------------- 503 function checkbox12_Callback(hObject, eventdata, handles)504 % callback called when the chlorophyll profile plot checkbox is checked505 if (get(hObject,'Value') == get(hObject,'Max'))506 mPlotFlag_ChlorophyllProfile = 1;507 else508 mPlotFlag_ChlorophyllProfile = 0;509 end510 end509 % function checkbox12_Callback(hObject, eventdata, handles) 510 % % callback called when the chlorophyll profile plot checkbox is checked 511 % if (get(hObject,'Value') == get(hObject,'Max')) 512 % mPlotFlag_ChlorophyllProfile = 1; 513 % else 514 % mPlotFlag_ChlorophyllProfile = 0; 515 % end 516 % end 511 517 512 518 %---------------------------------------------------------------------- … … 541 547 542 548 %---------------------------------------------------------------------- 543 function checkbox16_Callback(hObject, eventdata, handles)544 % callback called when the 3D chlorophyll plot checkbox is checked545 if (get(hObject,'Value') == get(hObject,'Max'))546 mPlotFlag_Chlorophyll3D = 1;547 else548 mPlotFlag_Chlorophyll3D = 0;549 end550 end549 % function checkbox16_Callback(hObject, eventdata, handles) 550 % % callback called when the 3D chlorophyll plot checkbox is checked 551 % if (get(hObject,'Value') == get(hObject,'Max')) 552 % mPlotFlag_Chlorophyll3D = 1; 553 % else 554 % mPlotFlag_Chlorophyll3D = 0; 555 % end 556 % end 551 557 552 558 … … 662 668 663 669 gliderCTD_GeneratePlots(mGliderIndex, mDeploymentNumber, mLegNumber,... 664 mPlotFlag_TS, mPlotFlag_TS_AllLegs, mPlotFlag_TS_Chlorophyll,...670 mPlotFlag_TS, mPlotFlag_TS_AllLegs,... 665 671 mPlotFlag_Temperature, mPlotFlag_Salinity, mPlotFlag_Density,... 666 mPlotFlag_ Chlorophyll, mPlotFlag_TemperatureProfile,...672 mPlotFlag_TemperatureProfile,... 667 673 mPlotFlag_SalinityProfile, mPlotFlag_DensityProfile,... 668 mPlotFlag_ ChlorophyllProfile, mPlotFlag_Temperature3D,...674 mPlotFlag_Temperature3D,... 669 675 mPlotFlag_Salinity3D, mPlotFlag_Density3D,... 670 mPlotFlag_ Chlorophyll3D, mPlotFlag_AllGliderTracks);676 mPlotFlag_AllGliderTracks); 671 677 672 678 end gliderproc/trunk/gliderCTD_Generate_L1_Data.m
r497 r498 39 39 % other position measures for now. 40 40 % 41 % removed chlorophyll from processing, do separately 41 % removed chlorophyll from processing, do separately 42 42 43 43 44 clear all; … … 48 49 % 49 50 % SET THE GLIDER INDEX (Pelagia = 1, Ramses = 2) ... 50 gliderIndex = 1;51 gliderIndex = 2; 51 52 52 53 % SET THE DEPLOYMENT NUMBER (1, 2 or 3) ... 53 deploymentNumber = 1;54 deploymentNumber = 3; 54 55 55 56 % SET CORRECTION PARAMETERS STRUCTURE... … … 475 476 476 477 % set Level 1 data mat file name... 477 strMatFileName = strcat(strGliderName, '_Deployment', strDeploymentNumber, '_ DataL1.mat');478 strMatFileName = strcat(strGliderName, '_Deployment', strDeploymentNumber, '_CTD_L1.mat'); 478 479 479 480 gliderproc/trunk/gliderOptode_Generate_L1_Data.m
r496 r498 200 200 C4 = C4coef(1)+C4coef(2)*tempi+C4coef(3)*tempi.^2+C4coef(4)*tempi.^3; 201 201 202 o2 = C0+C1 *oxy_dphase+C2*oxy_dphase.^2+C3*oxy_dphase.^3+C4*oxy_dphase.^4;202 o2 = C0+C1.*oxy_dphase+C2.*oxy_dphase.^2+C3.*oxy_dphase.^3+C4.*oxy_dphase.^4; 203 203 204 204 % second, implement the salinity correction to DO concentration (page 31)