0001 function varargout = sample_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 'btlsal','psu',...
0042 'btloxy','ml/l',...
0043 'btlcon1','User defined',...
0044 'btlcon2','User defined',...
0045 'ctdraw','dbar',...
0046 'ctdprs','dbar',...
0047 'ctdtemp1','degC',...
0048 'ctdtemp2','degC',...
0049 'ctdsal1','psu',...
0050 'ctdsal2','psu',...
0051 'ctdcon1','User defined',...
0052 'ctdcon2','User defined',...
0053 'dcdp1','User defined',...
0054 'dcdp2','User defined' );
0055 description = struct('cruiseid','Character array identifying cruise e.g. file naming etc.',...
0056 'stnnbr','Station number', ...
0057 'castnbr','Cast number if there are multiple casts per station',...
0058 'sampnbr','Cell array with the alphanumeric label on the sample bottle',...
0059 'btlnbr','Permanent unique serial number on the sample bottle',...
0060 'niskinbtlpos','The position of the Niskin bottle on the rosette.',...
0061 'fireorder','The order in which the bottle was fired.', ...
0062 'btlsal','Bottle sample salinity PSS-78',...
0063 'btlcon1','Bottle conductivity based on salinity/primary ctd temperature',...
0064 'btlcon2','Bottle conductivity based on salinity/secondary ctd temperature',...
0065 'ctdraw','Optional: nominal ctd pressure recorded at bottle closure. Uncalibrated pressure.',...
0066 'ctdprs','Pressure ',...
0067 'ctdtmp1','Temperature in ITS-90 (Primary Sensor)',...
0068 'ctdtmp2','Temperature in ITS-90 (Secondary Sensor)',...
0069 'ctdsal1','Salinity PSS-78 (Primary Sensor)',...
0070 'ctdsal2','Salinity PSS-78 (Secondary Sensor)',...
0071 'ctdcon1','CTD Conductivity (Primary Sensor)',...
0072 'ctdcon2','CTD Conductivity (Secondary Sensor)',...
0073 'dcdp1','CTD Pressure rate of change in conductivity (Primary Sensor)',...
0074 'dcdp2','CTD Pressure rate of change in conductivity (Secondary Sensor)' );
0075 out = struct('cruiseid', [NaN], ...
0076 'stnnbr', [NaN], ...
0077 'castnbr', [NaN],...
0078 'sampnbr',{NaN},...
0079 'btlnbr', [NaN],...
0080 'niskinbtlpos', [NaN],...
0081 'fireorder', [NaN],...
0082 'btlsal', [NaN],...
0083 'btlcon1', [NaN],...
0084 'btlcon2', [NaN],...
0085 'ctdraw', [NaN],...
0086 'ctdprs', [NaN],...
0087 'ctdtmp1', [NaN],...
0088 'ctdtmp2', [NaN],...
0089 'ctdsal1', [NaN],...
0090 'ctdsal2', [NaN],...
0091 'ctdcon1', [NaN],...
0092 'ctdcon2', [NaN],...
0093 'dcdp1', [NaN],...
0094 'dcdp2', [NaN],...
0095 'units',units,...
0096 'description',description) ;
0097
0098
0099 if nargout ~= 1
0100 assignin('caller','ans',out)
0101 disp(out.description)
0102 return
0103 else
0104 varargout{1} = out;
0105 return
0106 end
0107