s(i),30);
0304     vname = [<span class="string">'Depth_'</span>,date(1:8),<span class="string">'_'</span>,date(10:15)];
0305     <span class="keyword">if</span>(exist(vname) == 0)
0306         <span class="comment">%fprintf('variable frame %s\n does not exist',vname)</span>
0307     <span class="keyword">else</span>
0308         nc{<span class="string">'d'</span>}(i,:) = eval(vname)';
0309     <span class="keyword">end</span>;
0310     
0311     <span class="comment">% wave dir</span>
0312     date = dates