function metsys_concat

%nc_directory = 'c:/ocr3000/NC_ascii/netcdf';
nc_directory = '/hosts/tornado/ssdsdata/deployments/m0/200607';

nc_filename1 = 'm0_metsys_20060801_original.nc';

nc_filename2 = 'm0_metsys_20061108_original.nc';

txt_filename = 'm0_metsys_20060801.txt';



[data1, header1, meta_data1] = nc_to_ascii_metsys (nc_directory, nc_filename1);
[data2, header2, meta_data2] = nc_to_ascii_metsys (nc_directory, nc_filename2);

header = header1;
data = [data1; data2];
meta_data = [meta_data1; meta_data2];

delete ([nc_directory '/' txt_filename]);
tblwrite_smb(data, header, meta_data, [nc_directory '/' txt_filename],'\t',12)


end