-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathShapeselector.m
32 lines (28 loc) · 1.38 KB
/
Shapeselector.m
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
function [S,SMF] = Shapeselector(satellite,fnameshape,Toggle,fname);
if strcmp(satellite,'Envisat')||strcmp(satellite,'Jason2') ||strcmp(satellite,'Jason1') ||strcmp(satellite,'Topex') ||strcmp(satellite,'Jason3')
if ~strcmp(satellite,'Jason1')&& ~strcmp(satellite,'Topex')&& ~strcmp(satellite,'Jason3')
S=shaperead(fnameshape);
else if strcmp(satellite,'Jason1')
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Jason1']))
else if strcmp(satellite,'Topex')
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Topex']))
else
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Jason3']))
end
end
end
SMF=[];%shapemodflag
else if strcmp(satellite,'TopexPos')
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Jason2' 'V2']));%need to pull in and modify J2 shape because thee are no Topex shapes
SMF= satellite;%shapemodflag
else if strcmp(satellite,'ERS1c')||strcmp(satellite,'ERS1g') ||strcmp(satellite,'ERS2')
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Envisat' 'V2']));
SMF= satellite;%shapemodflag
else if strcmp(satellite,'SARAL')
S=shaperead(fullfile(Toggle.Shapedir,[fname '_' 'Envisat' 'V2']));%need to pull in and modifyEnvi
SMF= satellite;%shapemodflag
end
end
end
end
end