0001 function varargout = oxy_struct
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 units = struct('cruiseid','None',...
0035 'stnnbr','None', ...
0036 'castnbr','None',...
0037 'sampnbr','None',...
0038 'btlnbr','None',...
0039 'niskinbtlpos','None' ,...
0040 'fireorder','None',...
0041 'btloxy','ml/l',...
0042 'ctdraw','dbar',...
0043 'ctdprs','dbar',...
0044 'ctdtemp1','degC',...
0045 'ctdtemp2','degC',...
0046 'ctdoxy1','ml/l',...
0047 'ctdoxy2','ml/l',...
0048 'ctdcon1','User defined',...
0049 'ctdcon2','User defined' );
0050
0051 description = struct('cruiseid','Character array identifying cruise e.g. file naming etc.',...
0052 'stnnbr','Station number', ...
0053 'castnbr','Cast number if there are multiple casts per station',...
0054 'sampnbr','Cell array with the alphanumeric label on the sample bottle',...
0055 'btlnbr','Permanent unique serial number on the sample bottle',...
0056 'niskinbtlpos','The position of the Niskin bottle on the rosette.',...
0057 'fireorder','The order in which the bottle was fired.', ...
0058 'btloxy','Bottle sample oxygen',...
0059 'ctdraw','Optional: nominal ctd pressure recorded at bottle closure. Uncalibrated pressure.',...
0060 'ctdprs','Pressure ',...
0061 'ctdtmp1','Temperature in ITS-90 (Primary Sensor)',...
0062 'ctdtmp2','Temperature in ITS-90 (Secondary Sensor)',...
0063 'ctdoxy1','CTD Oxygen (Primary Sensor)',...
0064 'ctdoxy2','CTD Oxygen (Secondary Sensor)',...
0065 'ctdcon1','CTD Conductivity (Primary Sensor)',...
0066 'ctdcon2','CTD Conductivity (Secondary Sensor)' );
0067
0068 out = struct('cruiseid', [NaN], ...
0069 'stnnbr', [NaN], ...
0070 'castnbr', [NaN],...
0071 'sampnbr',{NaN},...
0072 'btlnbr', [NaN],...
0073 'niskinbtlpos', [NaN],...
0074 'fireorder', [NaN],...
0075 'btloxy', [NaN],...
0076 'ctdraw', [NaN],...
0077 'ctdprs', [NaN],...
0078 'ctdtmp1', [NaN],...
0079 'ctdtmp2', [NaN],...
0080 'ctdoxy1', [NaN],...
0081 'ctdoxy2', [NaN],...
0082 'ctdcon1', [NaN],...
0083 'ctdcon2', [NaN],...
0084 'units',units,...
0085 'description',description) ;
0086
0087
0088 if nargout ~= 1
0089 assignin('caller','ans',out)
0090 disp(out.description)
0091 return
0092 else
0093 varargout{1} = out;
0094 return
0095 end
0096