Home > ctdcal > old > compare_cond.m

compare_cond

PURPOSE ^

COMPARE_COND - Diagnostics plots to compare CTD and samples conductivity values.

SYNOPSIS ^

function compare_cond(cruiseid)

DESCRIPTION ^

 COMPARE_COND -  Diagnostics plots to compare CTD and samples conductivity values.

 CTD Calibration toolbox.

 USAGE:
 compare_cond(cruiseid);

INPUT: cruiseid: Cruise identification name.
   
 OUTPUT: A series of plots to compare CTD and bottle samples conductivity values 
          
 DESCRIPTION: This function uses the summary conductivity calibration file created by  
 make_cond_sum and do a series of diagnostics plots to compare CTD and
 bottle samples conductivity 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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function compare_cond(cruiseid)
0002 % COMPARE_COND -  Diagnostics plots to compare CTD and samples conductivity 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 conductivity values
0012 %
0013 % DESCRIPTION: This function uses the summary conductivity calibration file created by
0014 % make_cond_sum and do a series of diagnostics plots to compare CTD and
0015 % bottle samples conductivity 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 cruise_dir=cruiseid;
0027 sd=['cd ',cruise_dir];
0028 eval(sd);
0029 fname=[cruiseid,'_db.mat'];
0030 ld_file=(['load ',fname]);
0031 eval(ld_file);
0032 n=who('cond_cal');
0033 if isempty(n)==1
0034 error(['cond_cal not found. Run make_cond_sum.m ']);
0035 return;
0036 end
0037 
0038 figure;
0039 plot(cond_cal.btlsal,cond_cal.ctdsal1,'r+')
0040 hold on;
0041 xlabel('Bottle Salinity (psu)')
0042 ylabel('CTD Salinity (psu)')
0043 title('Primary Sensor')
0044 
0045 figure
0046 plot(cond_cal.btlsal,cond_cal.ctdsal1,'r+')
0047 text(cond_cal.btlsal,cond_cal.ctdsal1,int2str(cond_cal.stnnbr))
0048 hold on;
0049 xlabel('Bottle Salinity')
0050 ylabel('CTD Salinity')
0051 title('Primary Sensor - Station Number')
0052 
0053 figure
0054 plot(cond_cal.stnnbr,cond_cal.btlsal-cond_cal.ctdsal1,'r+')
0055 xlabel('Station number')
0056 ylabel('Bottle Salinity - CTD Salinity')
0057 title('Primary Sensor') 
0058  
0059 figure
0060 plot(cond_cal.niskinbtlpos,cond_cal.btlsal-cond_cal.ctdsal1,'r+')
0061 xlabel('Niskin number')
0062 ylabel('Bottle Salinity - CTD Salinity')
0063 title('Primary Sensor') 
0064  
0065 figure
0066 plot(cond_cal.sampnbr,cond_cal.btlsal-cond_cal.ctdsal1,'r+')
0067 xlabel('Sample Bottle number')
0068 ylabel('Bottle Salinity - CTD Salinity')
0069 title('Primary Sensor') 
0070   
0071 figure
0072 plot(cond_cal.ctdprs,cond_cal.btlsal-cond_cal.ctdsal1,'r+')
0073 xlabel('Pressure')
0074 ylabel('Bottle Salinity - CTD Salinity')
0075 title('Primary Sensor')
0076   
0077 pause
0078 
0079 figure;
0080 plot(cond_cal.btlsal,cond_cal.ctdsal2,'r+')
0081 hold on;
0082 xlabel('Bottle Salinity (psu)')
0083 ylabel('CTD Salinity (psu)')
0084 title('Secondary Sensor')
0085 
0086 figure
0087 plot(cond_cal.btlsal,cond_cal.ctdsal2,'r+')
0088 text(cond_cal.btlsal,cond_cal.ctdsal2,int2str(cond_cal.stnnbr))
0089 hold on;
0090 xlabel('Bottle Salinity')
0091 ylabel('CTD Salinity')
0092 title('Secondary Sensor - Station Number')
0093 
0094 figure
0095 plot(cond_cal.stnnbr,cond_cal.btlsal-cond_cal.ctdsal2,'r+')
0096 xlabel('Station number')
0097 ylabel('Bottle Salinity - CTD Salinity')
0098 title('Secondary Sensor') 
0099  
0100 figure
0101 plot(cond_cal.niskinbtlpos,cond_cal.btlsal-cond_cal.ctdsal2,'r+')
0102 xlabel('Niskin number')
0103 ylabel('Bottle Salinity - CTD Salinity')
0104 title('Secondary Sensor') 
0105  
0106 figure
0107 plot(cond_cal.sampnbr,cond_cal.btlsal-cond_cal.ctdsal2,'r+')
0108 xlabel('Sample Bottle number')
0109 ylabel('Bottle Salinity - CTD Salinity')
0110 title('Secondary Sensor') 
0111   
0112 figure
0113 plot(cond_cal.ctdprs,cond_cal.btlsal-cond_cal.ctdsal2,'r+')
0114 xlabel('Pressure')
0115 ylabel('Bottle Salinity - CTD Salinity')
0116 title('Secondary Sensor')
0117   
0118 figure
0119 plot(cond_cal.ctdprs,cond_cal.ctdsal1-cond_cal.ctdsal2,'r+')
0120   xlabel('Pressure, dbar')
0121   ylabel('Primary - Secondary Sensor Salinity')
0122   title('Primary  - Secondary Sensor')

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