forked from perrysou/saga-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_el.m
28 lines (25 loc) · 786 Bytes
/
plot_el.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
function [] = plot_el(DATA_el, kk, dt, color, tlim)
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
sv_el = find(DATA_el(:, 4) == kk);
if ~isempty(sv_el)
ortw_el = DATA_el(sv_el, 1);
orts_el = DATA_el(sv_el, 2);
el = DATA_el(sv_el, 3);
time_el = gps2utc([ortw_el, orts_el], 0);
time_el = datenum(time_el);
[time_el_e, el_e] = discont_proc(time_el, el, dt);
plot(time_el_e, el_e/90, 'LineWidth', 1, 'Color', color);
set(gca, 'FontSize', 8, 'YTick', 1/90*[30, 90], ... ,
'YTickLabel', {'30,1/3', '90,1'}, 'YGrid', 'on');
ylim([0, 1.1]);
xlabel(['PRN', num2str(kk)]);
end
if isempty(tlim)
datetick('x', 'HH', 'keeplimits');
else
xlim(tlim);
datetick('x', 'HH', 'keeplimits');
end
hold on;
end