<span class="keyword">for</span> j=1:nSiglay
0170             temp(i,j,:) = obc_temp;
0171             salt(i,j,:) = obc_salt;
0172         <span class="keyword">end</span>
0173     <span class="keyword">end</span>
0174 <span class="keyword">else</span>
0175     <span class="comment">% We have a 3D array already so we just need a couple of stats.</span>
0176     temp = in_temp;
0177     salt = in_salt;
0178 
0179     <span class="keyword">if</span> nargin == 6 &amp;&amp; isfield(Mobj, <span class="string">'