LOAD_OXY - Load a *.oxy file from the AOML Winkler titration system. USAGE: oxy = load_oxy(filename); INPUT: in_file: string containing path and name of input file OUTPUT: oxy: struct with fields date: time and data of titration (usually wrong on AOML computer) station: string indicating station/cast depth: depth field in the titration computer, frequently Niskin bottle Rosette position sample_bottle: label of the sample bottle in which the titration was done. thio_vol: solume of Thiosulphate in the titration. oxygen: oxygen in units of micromoles per liter. See ox_units for conversion to other more standard units for analysis. units: 'mmmperl' DESCRIPTION: BUGS: NOTE: TO BE DONE: VERSION: 0.1 AUTHOR: Derrick Snowden NOAA/AOML/PhOD CALLER: DEPENDENCIES:
0001 function oxy = load_oxy(in_file) 0002 % LOAD_OXY - Load a *.oxy file from the AOML Winkler titration system. 0003 % 0004 % USAGE: 0005 % oxy = load_oxy(filename); 0006 % 0007 % INPUT: 0008 % in_file: string containing path and name of input file 0009 % 0010 % OUTPUT: 0011 % oxy: struct with fields 0012 % date: time and data of titration (usually wrong on AOML computer) 0013 % station: string indicating station/cast 0014 % depth: depth field in the titration computer, frequently Niskin bottle Rosette position 0015 % sample_bottle: label of the sample bottle in which the titration was done. 0016 % thio_vol: solume of Thiosulphate in the titration. 0017 % oxygen: oxygen in units of micromoles per liter. See ox_units for conversion to other 0018 % more standard units for analysis. 0019 % units: 'mmmperl' 0020 % 0021 % DESCRIPTION: 0022 % 0023 % BUGS: 0024 % 0025 % NOTE: 0026 % 0027 % TO BE DONE: 0028 % 0029 % 0030 % VERSION: 0.1 0031 % 0032 % AUTHOR: Derrick Snowden 0033 % NOAA/AOML/PhOD 0034 % 0035 % CALLER: 0036 % 0037 % DEPENDENCIES: 0038 % 0039 0040 %Read in file 0041 [m,d,y,hr,min,station,depth,samp_bot,thio,ox]= ... 0042 textread(in_file,'%d/%d/%d %d:%d %d %f %d %f %f','headerlines',9); 0043 0044 dat = datenum(y,m,d,hr,min,0); 0045 oxy = struct('date',dat,'station',station,'depth',depth,... 0046 'sample_bottle',samp_bot,'thio_vol',thio,'oxygen',ox,'units','mmperl'); 0047 return 0048 0049 % ox is in units of micromole per liter