NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 498

Show
Ignore:
Timestamp:
03/19/13 15:33:48
Author:
cbc
Message:

Initial Calloway revisions to Seim revisions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gliderproc/trunk/gliderCTD_2DPlots.m

    r496 r498  
    1616                           dens, densBounds, densCorrected, depth, pres,... 
    1717                           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,... 
    2020                           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) 
    2423                        
    2524                        
     
    3736        % TS plot for all legs (separate color for each leg)... 
    3837        lastLeg = length(nLegEndPoints); 
    39         figure('Position', [500,500,1600,900]); 
     38        figure('Position', [10,10,1600,900]); 
    4039        for i=2:lastLeg 
    4140            % get start/end points strings and indices for this leg... 
     
    8685    dens = dens(nLegStart:nLegEnd); 
    8786    densCorrected = densCorrected(nLegStart:nLegEnd); 
    88     chlor = chlor(nLegStart:nLegEnd); 
     87    % chlor = chlor(nLegStart:nLegEnd); 
    8988     
    9089    % set leg strings for plot titles... 
     
    9897    if (plotFlag_TS==1) 
    9998        % TS plot... 
    100         figure('Position', [500,500,1600,900]); 
     99        figure('Position', [10,10,1600,900]); 
    101100        % set marker color and plot TS for this leg... 
    102101        if legNumber==0 
     
    123122 
    124123     
    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     end 
     124    % 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 
    145144     
    146145    if (plotFlag_Temperature==1) 
    147146        % temperature vs depth... 
    148         figure('Position', [500,500,1600,900]); 
     147        figure('Position', [10,10,1600,900]); 
    149148        plot(temp, depth, 'b.'); 
    150149        grid on; 
     
    160159    if (plotFlag_Salinity==1) 
    161160        % corrected salinity vs depth... 
    162         figure('Position', [500,500,1600,900]); 
     161        figure('Position', [10,10,1600,900]); 
    163162        plot(salinCorrected, depth, 'b.'); 
    164163        grid on; 
     
    174173    if (plotFlag_Density==1) 
    175174        % corrected density vs depth... 
    176         figure('Position', [500,500,1600,900]); 
     175        figure('Position', [10,10,1600,900]); 
    177176        plot(densCorrected, depth, 'b.'); 
    178177        grid on; 
     
    186185    end 
    187186     
    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     end 
     187    % 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 
    201200         
    202201    if (plotFlag_TemperatureProfile==1) 
    203202        % temperature profile... 
    204         figure('Position', [500,500,1600,900]); 
     203        figure('Position', [10,10,1600,900]); 
    205204        ccplot(ptime_datenum, depth, temp, tempBounds, '.', 10); 
    206205        set(gca, 'fontsize', 12, 'ydir', 'reverse'); 
     
    215214    if (plotFlag_SalinityProfile==1) 
    216215        % corrected salinity profile... 
    217         figure('Position', [500,500,1600,900]); 
     216        figure('Position', [10,10,1600,900]); 
    218217        ccplot(ptime_datenum, depth, salinCorrected, salinBounds, '.', 10); 
    219218        set(gca, 'fontsize', 12, 'ydir', 'reverse'); 
     
    228227    if (plotFlag_DensityProfile==1) 
    229228        % corrected density profile... 
    230         figure('Position', [500,500,1600,900]); 
     229        figure('Position', [10,10,1600,900]); 
    231230        ccplot(ptime_datenum, depth, densCorrected, densBounds, '.', 10); 
    232231        set(gca, 'fontsize', 12, 'ydir', 'reverse'); 
     
    239238    end 
    240239 
    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     end 
     240    % 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 
    253252         
    254253end 
  • gliderproc/trunk/gliderCTD_3DPlots.m

    r496 r498  
    1616                           ztop, zbottom, gpsLat, gpsLon, depth, pres,... 
    1717                           salinCorrected, salinBounds, densCorrected, densBounds,... 
    18                            temp, tempBounds, chlor, chlorBounds,... 
     18                           temp, tempBounds,... 
    1919                           plotFlag_Temperature3D, plotFlag_Salinity3D,... 
    20                            plotFlag_Density3D, plotFlag_Chlorophyll3D,... 
     20                           plotFlag_Density3D,... 
    2121                           plotFlag_AllGliderTracks) 
    2222 
     
    3636    salinCorrected = salinCorrected(nLegStart:nLegEnd); 
    3737    densCorrected = densCorrected(nLegStart:nLegEnd); 
    38     chlor = chlor(nLegStart:nLegEnd); 
     38    % chlor = chlor(nLegStart:nLegEnd); 
    3939     
    4040    % set strings for plot titles... 
     
    112112    if (plotFlag_Temperature3D==1) 
    113113        % 3D color plot of temperature (with bathymetry surface)... 
    114         figure('Position', [500,500,1600,900]); 
     114        figure('Position', [10,10,1600,900]); 
    115115        % plot the coastline... 
    116116        plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); 
     
    175175    if (plotFlag_Salinity3D==1) 
    176176        % 3D color plot of salinity (with bathymetry surface)... 
    177         figure('Position', [500,500,1600,900]); 
     177        figure('Position', [10,10,1600,900]); 
    178178        % plot the coastline... 
    179179        plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); 
     
    220220    if (plotFlag_Density3D==1) 
    221221        % 3D color plot of density (with bathymetry surface)... 
    222         figure('Position', [500,500,1600,900]); 
     222        figure('Position', [10,10,1600,900]); 
    223223        % plot the coastline... 
    224224        plot3(cillong, cillat, 0*ones(size(cillong)), 'k-', 'linewidth', [3]); 
     
    263263     
    264264    %***** 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 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 
     265    % 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 
    307307     
    308308     
     
    314314        for i=1:3 
    315315            % 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'); 
    317317            % load glider sensor data from mat file... 
    318318            load(strMatFilePath); 
     
    327327        for i=1:3 
    328328            % 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'); 
    330330            % load glider sensor data from mat file... 
    331331            load(strMatFilePath); 
     
    361361 
    362362        % 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]); 
    364364        % plot the coastline... 
    365365        plot(cillong, cillat, 'k-', 'linewidth', [5]); 
  • gliderproc/trunk/gliderCTD_DataViz.m

    r495 r498  
    1919%   Created: 18 June 2012 
    2020% 
     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% 
    2127%////////////////////////////////////////////////////////////////////////// 
    2228 
     
    3541global mPlotFlag_TS; 
    3642global mPlotFlag_TS_AllLegs; 
    37 global mPlotFlag_TS_Chlorophyll; 
     43% global mPlotFlag_TS_Chlorophyll; 
    3844global mPlotFlag_Temperature; 
    3945global mPlotFlag_Salinity; 
    4046global mPlotFlag_Density; 
    41 global mPlotFlag_Chlorophyll; 
     47% global mPlotFlag_Chlorophyll; 
    4248global mPlotFlag_TemperatureProfile; 
    4349global mPlotFlag_SalinityProfile; 
    4450global mPlotFlag_DensityProfile; 
    45 global mPlotFlag_ChlorophyllProfile; 
     51% global mPlotFlag_ChlorophyllProfile; 
    4652global mPlotFlag_Temperature3D; 
    4753global mPlotFlag_Salinity3D; 
    4854global mPlotFlag_Density3D; 
    49 global mPlotFlag_Chlorophyll3D; 
     55% global mPlotFlag_Chlorophyll3D; 
    5056global mPlotFlag_AllGliderTracks; 
    5157 
     
    99105mPlotFlag_TS = 0; 
    100106mPlotFlag_TS_AllLegs = 0; 
    101 mPlotFlag_TS_Chlorophyll = 0; 
     107% mPlotFlag_TS_Chlorophyll = 0; 
    102108mPlotFlag_Temperature = 0; 
    103109mPlotFlag_Salinity = 0; 
    104110mPlotFlag_Density = 0; 
    105 mPlotFlag_Chlorophyll = 0; 
     111% mPlotFlag_Chlorophyll = 0; 
    106112mPlotFlag_TemperatureProfile = 0; 
    107113mPlotFlag_SalinityProfile = 0; 
    108114mPlotFlag_DensityProfile = 0; 
    109 mPlotFlag_ChlorophyllProfile = 0; 
     115% mPlotFlag_ChlorophyllProfile = 0; 
    110116mPlotFlag_Temperature3D = 0; 
    111117mPlotFlag_Salinity3D = 0; 
    112118mPlotFlag_Density3D = 0; 
    113 mPlotFlag_Chlorophyll3D = 0; 
     119% mPlotFlag_Chlorophyll3D = 0; 
    114120mPlotFlag_AllGliderTracks = 0; 
    115121 
     
    168174figureWidth = 790; 
    169175%figureHeight = 690; 
    170 figureHeight = 770; 
    171  
    172 titleTextPosFromLeft = 180
    173 titleTextPosFromBottom = 720; 
    174 titleTextWidth = 410; 
    175 titleTextHeight = 25; 
     176figureHeight = 670; 
     177 
     178titleTextPosFromLeft = 85
     179titleTextPosFromBottom = 620; 
     180titleTextWidth = 600; 
     181titleTextHeight = 35; 
    176182 
    177183gliderBGPosFromLeft = 20; 
    178 gliderBGPosFromBottom = 580; 
     184gliderBGPosFromBottom = 470; 
    179185gliderBGWidth = 200; 
    180186gliderBGHeight = 120; 
    181187 
    182188deploymentBGPosFromLeft = 20; 
    183 deploymentBGPosFromBottom = 400; 
     189deploymentBGPosFromBottom = 290; 
    184190deploymentBGWidth = 200; 
    185191deploymentBGHeight = 160; 
    186192 
    187193legBGPosFromLeft = 250; 
    188 legBGPosFromBottom = 400; 
     194legBGPosFromBottom = 290; 
    189195legBGWidth = 500; 
    190196legBGHeight = 300; 
     
    194200plotsBGWidth = 730; 
    195201%plotsBGHeight = 190; 
    196 plotsBGHeight = 270; 
     202plotsBGHeight = 160; 
    197203 
    198204 
    199205% create figure... 
    200 guih = figure('MenuBar', 'none', 'Position', [360, 500, figureWidth, figureHeight]); 
     206guih = figure('MenuBar', 'none', 'Position', [10, 10, figureWidth, figureHeight]); 
    201207 
    202208% add title text... 
    203 uicontrol(guih, 'Style', 'text', 'String', ' Slocum Glider CTD Data Visualization', 'FontSize', 22,... 
     209uicontrol(guih, 'Style', 'text', 'String', ' Slocum Glider CTD Data Visualization', 'FontSize', 16,... 
    204210          'FontWeight', 'bold', 'BackgroundColor', [0.8 0.8 0.8], 'Units', 'pixels',... 
    205211          'Position', [titleTextPosFromLeft titleTextPosFromBottom titleTextWidth titleTextHeight]); 
     
    210216                          'SelectionChangeFcn', @hGliderSelectionChanged); 
    211217rbhGlider_Pelagia = uicontrol(bghGlider, 'Style', 'radiobutton', 'String', 'Pelagia', 'FontSize', 14,... 
    212                               'Units', 'pixels', 'Position', [30 60 100 30]); 
     218                              'Units', 'pixels', 'Position', [30 60 120 30]); 
    213219rbhGlider_Ramses = uicontrol(bghGlider, 'Style', 'radiobutton', 'String', 'Ramses', 'FontSize', 14,... 
    214                              'Units', 'pixels', 'Position', [30 20 100 30]); 
     220                             'Units', 'pixels', 'Position', [30 20 120 30]); 
    215221 
    216222% add button group to select deployment number... 
     
    218224                              'Units', 'pixels', 'Position', [deploymentBGPosFromLeft deploymentBGPosFromBottom deploymentBGWidth deploymentBGHeight],... 
    219225                              'SelectionChangeFcn', @hDeploymentNumberSelectionChanged);                              
    220 rbhDeployment_1 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', 'Deployment 1', 'FontSize', 14,... 
     226rbhDeployment_1 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '1', 'FontSize', 14,... 
    221227                            'Units', 'pixels', 'Position', [30 100 140 30]); 
    222 rbhDeployment_2 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', 'Deployment 2', 'FontSize', 14,... 
     228rbhDeployment_2 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '2', 'FontSize', 14,... 
    223229                           'Units', 'pixels', 'Position', [30 60 140 30]); 
    224 rbhDeployment_3 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', 'Deployment 3', 'FontSize', 14,... 
     230rbhDeployment_3 = uicontrol(bghDeployment, 'Style', 'radiobutton', 'String', '3', 'FontSize', 14,... 
    225231                           'Units', 'pixels', 'Position', [30 20 140 30]); 
    226232                          
     
    230236                       'SelectionChangeFcn', @hLegNumberSelectionChanged); 
    231237                    
    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', 14,... 
    235                      'Units', 'pixels', 'Position', [120 229 350 30]); 
    236  
    237 rbhLeg_1 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 1', 'FontSize', 14,... 
    238                      'Units', 'pixels', 'Position', [30 200 70 30]); 
    239 sthLeg_1 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg1_DateRange, 'FontSize', 14,... 
    240                      'Units', 'pixels', 'Position', [120 194 350 30]); 
     238rbhLeg_0 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'All', 'FontSize', 14,... 
     239                     'Units', 'pixels', 'Position', [30 235 50 30]); 
     240sthLeg_0 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrComplete_DateRange, 'FontSize', 10,... 
     241                     'Units', 'pixels', 'Position', [90 240 380 20]); 
     242 
     243rbhLeg_1 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '1', 'FontSize', 14,... 
     244                     'Units', 'pixels', 'Position', [30 200 50 30]); 
     245sthLeg_1 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg1_DateRange, 'FontSize', 10,... 
     246                     'Units', 'pixels', 'Position', [90 205 380 20]); 
    241247                  
    242 rbhLeg_2 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 2', 'FontSize', 14,... 
    243                     'Units', 'pixels', 'Position', [30 165 70 30]); 
    244 sthLeg_2 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg2_DateRange, 'FontSize', 14,... 
    245                      'Units', 'pixels', 'Position', [120 159 350 30]); 
     248rbhLeg_2 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '2', 'FontSize', 14,... 
     249                    'Units', 'pixels', 'Position', [30 165 50 30]); 
     250sthLeg_2 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg2_DateRange, 'FontSize', 10,... 
     251                     'Units', 'pixels', 'Position', [90 170 380 20]); 
    246252                 
    247 rbhLeg_3 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 3', 'FontSize', 14,... 
    248                      'Units', 'pixels', 'Position', [30 130 70 30]); 
    249 sthLeg_3 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg3_DateRange, 'FontSize', 14,... 
    250                      'Units', 'pixels', 'Position', [120 124 350 30]); 
     253rbhLeg_3 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '3', 'FontSize', 14,... 
     254                     'Units', 'pixels', 'Position', [30 130 50 30]); 
     255sthLeg_3 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg3_DateRange, 'FontSize', 10,... 
     256                     'Units', 'pixels', 'Position', [90 135 380 20]); 
    251257                  
    252 rbhLeg_4 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 4', 'FontSize', 14,... 
    253                      'Units', 'pixels', 'Position', [30 95 70 30]); 
    254 sthLeg_4 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg4_DateRange, 'FontSize', 14,... 
    255                      'Units', 'pixels', 'Position', [120 89 350 30]); 
    256  
    257 rbhLeg_5 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 5', 'FontSize', 14,... 
    258                      'Units', 'pixels', 'Position', [30 60 70 30]); 
    259 sthLeg_5 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg5_DateRange, 'FontSize', 14,... 
    260                      'Units', 'pixels', 'Position', [120 54 350 30]); 
     258rbhLeg_4 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '4', 'FontSize', 14,... 
     259                     'Units', 'pixels', 'Position', [30 95 50 30]); 
     260sthLeg_4 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg4_DateRange, 'FontSize', 10,... 
     261                     'Units', 'pixels', 'Position', [90 100 380 20]); 
     262 
     263rbhLeg_5 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '5', 'FontSize', 14,... 
     264                     'Units', 'pixels', 'Position', [30 60 50 30]); 
     265sthLeg_5 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg5_DateRange, 'FontSize', 10,... 
     266                     'Units', 'pixels', 'Position', [90 65 380 20]); 
    261267                  
    262 rbhLeg_6 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', 'Leg 6', 'FontSize', 14,... 
    263                      'Units', 'pixels', 'Position', [30 25 70 30]); 
    264 sthLeg_6 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg6_DateRange, 'FontSize', 14,... 
    265                      'Units', 'pixels', 'Position', [120 19 350 30]); 
     268rbhLeg_6 = uicontrol(bghLeg, 'Style', 'radiobutton', 'String', '6', 'FontSize', 14,... 
     269                     'Units', 'pixels', 'Position', [30 25 50 30]); 
     270sthLeg_6 = uicontrol(bghLeg, 'Style', 'text', 'String', mStrLeg6_DateRange, 'FontSize', 10,... 
     271                     'Units', 'pixels', 'Position', [90 30 380 20]); 
    266272 
    267273                  
     
    280286bghPlotType = uibuttongroup('Parent', guih, 'Title', 'Data Plots', 'FontSize', 14, 'FontWeight', 'bold',... 
    281287                            'Units', 'pixels', 'Position', [plotsBGPosFromLeft plotsBGPosFromBottom plotsBGWidth plotsBGHeight]); 
    282 cbhPlot_1 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'All Glider Tracks', 'FontSize', 14,... 
    283                       'Units', 'pixels', 'Position', [30 210 160 30], 'Callback', @checkbox1_Callback); 
    284 cbhPlot_2 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS', 'FontSize', 14,... 
    285                       'Units', 'pixels', 'Position', [30 175 160 30], 'Callback', @checkbox2_Callback); 
    286 cbhPlot_3 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS (all legs)', 'FontSize', 14,... 
    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', 14,... 
    291                       'Units', 'pixels', 'Position', [220 210 160 30], 'Callback', @checkbox5_Callback);                  
    292 cbhPlot_6 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity', 'FontSize', 14,... 
    293                       'Units', 'pixels', 'Position', [220 175 160 30], 'Callback', @checkbox6_Callback); 
    294 cbhPlot_7 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density', 'FontSize', 14,... 
    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', 14,... 
    299                       'Units', 'pixels', 'Position', [370 210 160 30], 'Callback', @checkbox9_Callback); 
    300 cbhPlot_10 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity Profile', 'FontSize', 14,... 
    301                       'Units', 'pixels', 'Position', [370 175 160 30], 'Callback', @checkbox10_Callback); 
    302 cbhPlot_11 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Density Profile', 'FontSize', 14,... 
    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', 14,... 
    307                        'Units', 'pixels', 'Position', [560 210 160 30], 'Callback', @checkbox13_Callback); 
    308 cbhPlot_14 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Salinity', 'FontSize', 14,... 
    309                        'Units', 'pixels', 'Position', [560 175 160 30], 'Callback', @checkbox14_Callback); 
    310 cbhPlot_15 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Density', 'FontSize', 14,... 
    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); 
     288cbhPlot_1 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'All Glider Tracks', 'FontSize', 10,... 
     289                      'Units', 'pixels', 'Position', [30 90 160 30], 'Callback', @checkbox1_Callback); 
     290cbhPlot_2 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'TS', 'FontSize', 10,... 
     291                      'Units', 'pixels', 'Position', [30 55 160 30], 'Callback', @checkbox2_Callback); 
     292cbhPlot_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); 
     296cbhPlot_5 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature', 'FontSize', 10,... 
     297                      'Units', 'pixels', 'Position', [220 90 160 30], 'Callback', @checkbox5_Callback);                  
     298cbhPlot_6 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity', 'FontSize', 10,... 
     299                      'Units', 'pixels', 'Position', [220 55 160 30], 'Callback', @checkbox6_Callback); 
     300cbhPlot_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); 
     304cbhPlot_9 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Temperature Profile', 'FontSize', 10,... 
     305                      'Units', 'pixels', 'Position', [370 90 160 30], 'Callback', @checkbox9_Callback); 
     306cbhPlot_10 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', 'Salinity Profile', 'FontSize', 10,... 
     307                      'Units', 'pixels', 'Position', [370 55 160 30], 'Callback', @checkbox10_Callback); 
     308cbhPlot_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); 
     312cbhPlot_13 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Temperature', 'FontSize', 10,... 
     313                       'Units', 'pixels', 'Position', [560 90 160 30], 'Callback', @checkbox13_Callback); 
     314cbhPlot_14 = uicontrol(bghPlotType, 'Style', 'checkbox', 'String', '3D Salinity', 'FontSize', 10,... 
     315                       'Units', 'pixels', 'Position', [560 55 160 30], 'Callback', @checkbox14_Callback); 
     316cbhPlot_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); 
    314320 
    315321                  
     
    352358        radioButtonLabel = get(selected, 'String'); 
    353359         
    354         if (strcmp(radioButtonLabel, 'Deployment 1')) 
     360        if (strcmp(radioButtonLabel, '1')) 
    355361            mDeploymentNumber = 1; 
    356         elseif (strcmp(radioButtonLabel, 'Deployment 2')) 
     362        elseif (strcmp(radioButtonLabel, '2')) 
    357363            mDeploymentNumber = 2; 
    358364        else 
     
    371377        radioButtonLabel = get(selected, 'String'); 
    372378         
    373         if (strcmp(radioButtonLabel, 'Complete')) 
     379        if (strcmp(radioButtonLabel, 'All')) 
    374380            mLegNumber = 0; 
    375         elseif (strcmp(radioButtonLabel, 'Leg 1')) 
     381        elseif (strcmp(radioButtonLabel, '1')) 
    376382            mLegNumber = 1; 
    377         elseif (strcmp(radioButtonLabel, 'Leg 2')) 
     383        elseif (strcmp(radioButtonLabel, '2')) 
    378384            mLegNumber = 2; 
    379         elseif (strcmp(radioButtonLabel, 'Leg 3')) 
     385        elseif (strcmp(radioButtonLabel, '3')) 
    380386            mLegNumber = 3; 
    381         elseif (strcmp(radioButtonLabel, 'Leg 4')) 
     387        elseif (strcmp(radioButtonLabel, '4')) 
    382388            mLegNumber = 4; 
    383         elseif (strcmp(radioButtonLabel, 'Leg 5')) 
     389        elseif (strcmp(radioButtonLabel, '5')) 
    384390            mLegNumber = 5; 
    385391        else 
     
    421427 
    422428    %---------------------------------------------------------------------- 
    423     function checkbox4_Callback(hObject, eventdata, handles) 
    424         % callback called when the TS-Chlorophyll plot checkbox is checked 
    425         if (get(hObject,'Value') == get(hObject,'Max')) 
    426             mPlotFlag_TS_Chlorophyll = 1; 
    427         else 
    428             mPlotFlag_TS_Chlorophyll = 0; 
    429         end 
    430     end 
     429    % 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 
    431437 
    432438    %---------------------------------------------------------------------- 
     
    461467 
    462468    %---------------------------------------------------------------------- 
    463     function checkbox8_Callback(hObject, eventdata, handles) 
    464         % callback called when the chlorophyll plot checkbox is checked 
    465         if (get(hObject,'Value') == get(hObject,'Max')) 
    466             mPlotFlag_Chlorophyll = 1; 
    467         else 
    468             mPlotFlag_Chlorophyll = 0; 
    469         end 
    470     end 
     469    % 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 
    471477 
    472478    %---------------------------------------------------------------------- 
     
    501507 
    502508    %---------------------------------------------------------------------- 
    503     function checkbox12_Callback(hObject, eventdata, handles) 
    504         % callback called when the chlorophyll profile plot checkbox is checked 
    505         if (get(hObject,'Value') == get(hObject,'Max')) 
    506             mPlotFlag_ChlorophyllProfile = 1; 
    507         else 
    508             mPlotFlag_ChlorophyllProfile = 0; 
    509         end 
    510     end 
     509    % 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 
    511517 
    512518    %---------------------------------------------------------------------- 
     
    541547 
    542548    %---------------------------------------------------------------------- 
    543     function checkbox16_Callback(hObject, eventdata, handles) 
    544         % callback called when the 3D chlorophyll plot checkbox is checked 
    545         if (get(hObject,'Value') == get(hObject,'Max')) 
    546             mPlotFlag_Chlorophyll3D = 1; 
    547         else 
    548             mPlotFlag_Chlorophyll3D = 0; 
    549         end 
    550     end 
     549    % 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 
    551557 
    552558 
     
    662668         
    663669        gliderCTD_GeneratePlots(mGliderIndex, mDeploymentNumber, mLegNumber,... 
    664                                 mPlotFlag_TS, mPlotFlag_TS_AllLegs, mPlotFlag_TS_Chlorophyll,... 
     670                                mPlotFlag_TS, mPlotFlag_TS_AllLegs,... 
    665671                                mPlotFlag_Temperature, mPlotFlag_Salinity, mPlotFlag_Density,... 
    666                                 mPlotFlag_Chlorophyll, mPlotFlag_TemperatureProfile,... 
     672                                mPlotFlag_TemperatureProfile,... 
    667673                                mPlotFlag_SalinityProfile, mPlotFlag_DensityProfile,... 
    668                                 mPlotFlag_ChlorophyllProfile, mPlotFlag_Temperature3D,... 
     674                                mPlotFlag_Temperature3D,... 
    669675                                mPlotFlag_Salinity3D, mPlotFlag_Density3D,... 
    670                                 mPlotFlag_Chlorophyll3D, mPlotFlag_AllGliderTracks); 
     676                                mPlotFlag_AllGliderTracks); 
    671677                            
    672678    end 
  • gliderproc/trunk/gliderCTD_Generate_L1_Data.m

    r497 r498  
    3939% other position measures for now. 
    4040% 
    41 % removed chlorophyll from processing, do separately  
     41% removed chlorophyll from processing, do separately 
     42 
    4243 
    4344clear all; 
     
    4849% 
    4950% SET THE GLIDER INDEX (Pelagia = 1, Ramses = 2) ... 
    50 gliderIndex = 1
     51gliderIndex = 2
    5152 
    5253% SET THE DEPLOYMENT NUMBER (1, 2 or 3) ... 
    53 deploymentNumber = 1
     54deploymentNumber = 3
    5455 
    5556% SET CORRECTION PARAMETERS STRUCTURE... 
     
    475476 
    476477% set Level 1 data mat file name... 
    477 strMatFileName = strcat(strGliderName, '_Deployment', strDeploymentNumber, '_DataL1.mat'); 
     478strMatFileName = strcat(strGliderName, '_Deployment', strDeploymentNumber, '_CTD_L1.mat'); 
    478479 
    479480 
  • gliderproc/trunk/gliderOptode_Generate_L1_Data.m

    r496 r498  
    200200C4 = C4coef(1)+C4coef(2)*tempi+C4coef(3)*tempi.^2+C4coef(4)*tempi.^3; 
    201201 
    202 o2 = C0+C1*oxy_dphase+C2*oxy_dphase.^2+C3*oxy_dphase.^3+C4*oxy_dphase.^4; 
     202o2 = C0+C1.*oxy_dphase+C2.*oxy_dphase.^2+C3.*oxy_dphase.^3+C4.*oxy_dphase.^4; 
    203203 
    204204% second, implement the salinity correction to DO concentration (page 31)