FILE = ...
['t078y1993_a_mld.d';...
't078y1993_a_mld.d';...
't078y1993_c_mld.d';...
't078y1993_d_mld.d';...
't078y1993_e_mld.d';...
't078y1993_f_mld.d';...
't078y1993_g_mld.d';...
't078y1993_h_mld.d';...
't078y1993_i_mld.d';...
't078y1993_j_mld.d';...
't078y1993_k_mld.d';...
't078y1993_l_mld.d';...
't078y1994_a_mld.d';...
't078y1994_b_mld.d';...
't078y1994_c_mld.d';...
't078y1994_d_mld.d';...
't078y1994_e_mld.d';...
't078y1994_f_mld.d';...
't078y1994_g_mld.d';...
't078y1994_h_mld.d';...
't078y1994_i_mld.d';...
't078y1994_j_mld.d';...
't078y1994_k_mld.d';...
't078y1994_l_mld.d';...
't078y1995_a_mld.d';...
't078y1995_b_mld.d';...
't078y1995_c_mld.d';...
't078y1995_d_mld.d';...
't078y1995_e_mld.d';...
't078y1995_f_mld.d';...
't078y1995_g_mld.d';...
't078y1995_h_mld.d';...
't078y1995_i_mld.d';...
't078y1995_j_mld.d';...
't078y1995_k_mld.d';...
't078y1995_l_mld.d';...
't078y2001_a_mld.d';...
't078y2001_b_mld.d';...
't078y2001_c_mld.d';...
't078y2001_d_mld.d';...
't078y2001_e_mld.d';...
't078y2001_f_mld.d';...
't078y2001_g_mld.d';...
't078y2001_h_mld.d';...
't078y2001_i_mld.d';...
't078y2001_j_mld.d';...
't078y2001_k_mld.d';...
't078y2001_l_mld.d'];

FILE2 = ...
['MLD1993_a.mat';...
'MLD1993_a.mat';...
'MLD1993_c.mat';...
'MLD1993_d.mat';...
'MLD1993_e.mat';...
'MLD1993_f.mat';...
'MLD1993_g.mat';...
'MLD1993_h.mat';...
'MLD1993_i.mat';...
'MLD1993_j.mat';...
'MLD1993_k.mat';...
'MLD1993_l.mat';...
'MLD1994_a.mat';...
'MLD1994_b.mat';...
'MLD1994_c.mat';...
'MLD1994_d.mat';...
'MLD1994_e.mat';...
'MLD1994_f.mat';...
'MLD1994_g.mat';...
'MLD1994_h.mat';...
'MLD1994_i.mat';...
'MLD1994_j.mat';...
'MLD1994_k.mat';...
'MLD1994_l.mat';...
'MLD1995_a.mat';...
'MLD1995_b.mat';...
'MLD1995_c.mat';...
'MLD1995_d.mat';...
'MLD1995_e.mat';...
'MLD1995_f.mat';...
'MLD1995_g.mat';...
'MLD1995_h.mat';...
'MLD1995_i.mat';...
'MLD1995_j.mat';...
'MLD1995_k.mat';...
'MLD1995_l.mat';...
'MLD2001_a.mat';...
'MLD2001_b.mat';...
'MLD2001_c.mat';...
'MLD2001_d.mat';...
'MLD2001_e.mat';...
'MLD2001_f.mat';...
'MLD2001_g.mat';...
'MLD2001_h.mat';...
'MLD2001_i.mat';...
'MLD2001_j.mat';...
'MLD2001_k.mat';...
'MLD2001_l.mat'];

for i = 1:60
  [mld(:,1), mld(:,2), mld(:,3), mld(:,4), mld(:,5), mld(:,6)] = textread(FILE(i,:),'%f %f %f %f %f %f',27577);
  mld_2 = reshape(transpose(mld),165462,1);
  mld_2(165462+1) = 1e10;
  mld_2(165462+2) = 1e10;
  mixeddepth = transpose(reshape(mld_2,344,481));
  [x,y] = meshgrid(39.867187:(100.16016-39.867187)/343:100.16016,-30:0.125:30);
  % x = 39.867187:(100.16016-39.867187)/343:100.16016;
  % y = -30:0.125:30;
  eval(['save ' FILE2(i,:) ' mixeddepth x y'])
end

