Commit f6e4d1a40fc6ac7673aaa334674ba2ef846cdada

Authored by Dany Dumont
1 parent 0a12a48d
Exists in master

mise a jour de tr_sort sur mingan

Showing 1 changed file with 8 additions and 4 deletions   Show diff stats
tr_sort.m
... ... @@ -21,10 +21,12 @@ function tr_sort(num_spot,mission,debut,h1,fin,h2)
21 21 % Enregistrements sous forme de structure sur Brandypot:
22 22 % sas/usagers/share_lasso/data/MEOPAR/drifter
23 23  
24   -rootdir = '/sas/usagers/share_lasso/data/MEOPAR';
  24 +%rootdir = '/sas/usagers/share_lasso/data/MEOPAR';
  25 +rootdir = '/share/archives/partage_lasso/spot';
25 26  
26   -fid1 = fopen([ rootdir 'spots_pos_clean.csv']);
27   -spot_clean = textscan(fid1,'%f %f %f %f %s', 'delimiter',';');
  27 +fid1 = fopen([ rootdir '/spots_pos_flag_clean.csv']);
  28 +header = textscan(fid1,'%s;%s;%s;%s;%s;%s',1);
  29 +spot_clean = textscan(fid1,'%f %f %f %f %s %s','Delimiter',';');
28 30 fclose(fid1);
29 31  
30 32 spot = spot_clean{1,1};
... ... @@ -67,7 +69,9 @@ for i = 1:length(num_spot);
67 69 'start',{''},'end',{''},'mission',{''},...
68 70 'name',{''},'spot',{''});
69 71  
70   - data.timeM = tmp(K,1); data.lon = tmp(K,2); data.lat = tmp(K,3);
  72 + data.timeM = tmp(K,1);
  73 + data.lon = tmp(K,2);
  74 + data.lat = tmp(K,3);
71 75 data.timeU = tmp(K,4);
72 76  
73 77 data.start = [datestr(data.timeM(1)) ' UTC'];
... ...