-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconcatenar_flotadores.m
More file actions
32 lines (27 loc) · 909 Bytes
/
concatenar_flotadores.m
File metadata and controls
32 lines (27 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
clear all;
close all;
clc;
path01='D:\CIO\Kelvin-cromwell\float_demo\float_2020011\perfiles';
hdir=dir(fullfile(path01,'20*'));
for ifloat=1:1:size(hdir,1)
fname=hdir(ifloat).name;
floto=fname(22:28);
hdirflot=dir(fullfile(path01,sprintf('*%s*',floto)));
for iselect=1:1:size(hdirflot,1)
floto_selected=hdirflot(iselect).name;
load(floto_selected,'loni','lati','cycle_number','time','depth')
depth(isnan(depth))=0;
d=max(depth);
%variables
lonis(iselect,:)=loni;
latis(iselect,:)=lati;
ciclo(iselect,:)=cycle_number;
timeis(iselect,:)=time;
depthi(iselect,:)=d;
end
float=str2num(floto);
MD='D:\CIO\Kelvin-cromwell\float_demo\float_2020011\perfiles\flotos';
mkdir(MD);
mfile=fullfile(MD,['f_',floto]);
save(mfile,'ciclo','lonis','latis','ciclo','timeis','float','depthi');
end