-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathromsTimeAxis.m
More file actions
20 lines (20 loc) · 916 Bytes
/
romsTimeAxis.m
File metadata and controls
20 lines (20 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if exist(filename_child)
set(gca, 'xtick', [time_child(1):1/8:time_child(end)])
set(gca,'XTickLabel',{datestr(time_child(1),'ddmmm'),'','','',...
datestr(time_child(1)+0.5,'ddmmm'),'','','',...
datestr(time_child(1)+1,'ddmmm'),'','','',...
datestr(time_child(1)+1.5,'ddmmm'),'','','',...
datestr(time_child(1)+2,'ddmmm')});
else
set(gca, 'xtick', [time_parent(1):1/8:time_parent(end)])
set(gca,'XTickLabel',{datestr(time_parent(1),'ddmmm'),'','','',...
datestr(time_parent(1)+0.5,'ddmmm'),'','','',...
datestr(time_parent(1)+1,'ddmmm'),'','','',...
datestr(time_parent(1)+1.5,'ddmmm'),'','','',...
datestr(time_parent(1)+2,'ddmmm')});
end
xlim([time_parent(1),time_parent(end)])
legend('ROMS','location','southwest')
set(gca, 'fontsize', 12)
title(['SSH ' stationName ': ' datestr(time_parent(1),'yyyymmdd')])
ylabel('HF elevation [m]')