Home > ctdcal > compare_oxy.m

compare_oxy

PURPOSE ^

COMPARE_OXY - Diagnostics plots to compare CTD and samples dissolved oxygen values.

SYNOPSIS ^

function compare_oxy(cruiseid)

DESCRIPTION ^

 COMPARE_OXY -  Diagnostics plots to compare CTD and samples dissolved oxygen values.

 CTD Calibration toolbox.

 USAGE:
 compare_cond(cruiseid);

INPUT: cruiseid: Cruise identification name.
   
 OUTPUT: A series of plots to compare CTD and bottle samples dissolved oxygen values 
          
 DESCRIPTION: This function uses the summary conductivity calibration file created by  
 make_oxy_sum and do a series of diagnostics plots to compare CTD and
 bottle samples dissolved oxygen values to evaluate the quality of the data
 that we are coleecting, as well, any potential problems with
 niskin/sample bottles or sensors.
 AUTHORS:Carlos Fonseca 
         UM/CIMAS
         Derrick Snowden
         NOAA/AOML/PhOD
         Tue May 11 11:23:37 EDT 2004
 CHANGELOG: 
   23-Jul-2004, Version 1.0
        * Initial version.
 Retrieve the necessary preferences for this cruise

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function compare_oxy(cruiseid)
0002 % COMPARE_OXY -  Diagnostics plots to compare CTD and samples dissolved oxygen values.
0003 %
0004 % CTD Calibration toolbox.
0005 %
0006 % USAGE:
0007 % compare_cond(cruiseid);
0008 %
0009 %INPUT: cruiseid: Cruise identification name.
0010 %
0011 % OUTPUT: A series of plots to compare CTD and bottle samples dissolved oxygen values
0012 %
0013 % DESCRIPTION: This function uses the summary conductivity calibration file created by
0014 % make_oxy_sum and do a series of diagnostics plots to compare CTD and
0015 % bottle samples dissolved oxygen values to evaluate the quality of the data
0016 % that we are coleecting, as well, any potential problems with
0017 % niskin/sample bottles or sensors.
0018 % AUTHORS:Carlos Fonseca
0019 %         UM/CIMAS
0020 %         Derrick Snowden
0021 %         NOAA/AOML/PhOD
0022 %         Tue May 11 11:23:37 EDT 2004
0023 % CHANGELOG:
0024 %   23-Jul-2004, Version 1.0
0025 %        * Initial version.
0026 % Retrieve the necessary preferences for this cruise
0027 group = group_name(cruiseid);
0028 
0029 % cruise_dir is the main calibration data directory
0030 if ispref(group,'cal_data_dir')
0031     cruise_dir=getpref(group,'cal_data_dir');
0032 else
0033     error(['The cal_data_dir preference was not set for cruise: ' cruiseid '.  Run register_cruise.m']);
0034 end
0035 
0036 % Load data from the cruise database
0037 db_file = fullfile(cruise_dir,[cruiseid '_db.mat']);
0038 if exist(db_file)==2
0039     load(db_file);
0040 else
0041     error(['The cruise data base file was not found on the path.  ' db_file]);
0042 end
0043 n=who('oxy_cal');
0044  if isempty(n)==1
0045  error(['oxy_cal not found. Run make_oxy_sumfile.m ']);
0046  return;
0047  end
0048 
0049 figure;
0050 plot(oxy_cal.btloxy,oxy_cal.ctdoxy1,'r+')
0051 hold on;
0052 xlabel('Bottle Dissolved Oxygen (ml/l)')
0053 ylabel('CTD Dissolved Oxygen (ml/l)')
0054 title('Primary Sensor')
0055 
0056 figure
0057 plot(oxy_cal.btloxy,oxy_cal.ctdoxy1,'r+')
0058 text(oxy_cal.btloxy,oxy_cal.ctdoxy1,int2str(oxy_cal.stnnbr))
0059 hold on;
0060 xlabel('Bottle Dissolved Oxygen (ml/l)')
0061 ylabel('CTD Dissolved Oxygen (ml/l)')
0062 title('Primary Sensor - Station Number')
0063 
0064 figure
0065 plot(oxy_cal.stnnbr,oxy_cal.btloxy-oxy_cal.ctdoxy1,'r+')
0066 xlabel('Station number')
0067 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0068 title('Primary Sensor') 
0069  
0070 figure
0071 plot(oxy_cal.niskinbtlpos,oxy_cal.btloxy-oxy_cal.ctdoxy1,'r+')
0072 xlabel('Niskin number')
0073 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0074 title('Primary Sensor') 
0075  
0076 figure
0077 plot(oxy_cal.sampnbr,oxy_cal.btloxy-oxy_cal.ctdoxy1,'r+')
0078 xlabel('Sample Bottle number')
0079 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0080 title('Primary Sensor') 
0081   
0082 figure
0083 plot(oxy_cal.ctdprs,oxy_cal.btloxy-oxy_cal.ctdoxy1,'r+')
0084 xlabel('Pressure')
0085 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0086 title('Primary Sensor')
0087   
0088 pause
0089 
0090 figure;
0091 plot(oxy_cal.btloxy,oxy_cal.ctdoxy2,'r+')
0092 hold on;
0093 xlabel('Bottle Dissolved Oxygen (ml/l)')
0094 ylabel('CTD Dissolved Oxygen (ml/l)')
0095 title('Secondary Sensor')
0096 
0097 figure
0098 plot(oxy_cal.btloxy,oxy_cal.ctdoxy2,'r+')
0099 text(oxy_cal.btloxy,oxy_cal.ctdoxy2,int2str(oxy_cal.stnnbr))
0100 hold on;
0101 xlabel('Bottle Dissolved Oxygen (ml/l)')
0102 ylabel('CTD Dissolved Oxygen (ml/l)')
0103 title('Secondary Sensor - Station Number')
0104 
0105 figure
0106 plot(oxy_cal.stnnbr,oxy_cal.btloxy-oxy_cal.ctdoxy2,'r+')
0107 xlabel('Station number')
0108 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0109 title('Secondary Sensor') 
0110  
0111 figure
0112 plot(oxy_cal.niskinbtlpos,oxy_cal.btloxy-oxy_cal.ctdoxy2,'r+')
0113 xlabel('Niskin number')
0114 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0115 title('Secondary Sensor') 
0116  
0117 figure
0118 plot(oxy_cal.sampnbr,oxy_cal.btloxy-oxy_cal.ctdoxy2,'r+')
0119 xlabel('Sample Bottle number')
0120 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0121 title('Secondary Sensor') 
0122   
0123 figure
0124 plot(oxy_cal.ctdprs,oxy_cal.btloxy-oxy_cal.ctdoxy2,'r+')
0125 xlabel('Pressure')
0126 ylabel('Bottle Dissolved Oxygen - CTD Dissolved Oxygen')
0127 title('Secondary Sensor')

Generated on Fri 08-Oct-2004 11:57:17 by m2html © 2003