nd it>, and 
% then enter the location and times that you want to predict tides. 
% 
%% Single-location time series
% Use the Gr1kmTM_v1 tide model to predict tides in Baffin Bay (74.6°N,68.2°W) for the month of January,
% 2020, at hourly resolution: 

% Define a time array: 
t = datetime('jan 1, 2020'):hours(1):datetime('jan 31, 2020'); 

% Predict the tide time series:
z = tmd_predict('Gr1kmTM_v1.nc',74.6,-68.2,t); 

figure
plot(t,z) 
box off
ylabel('tide height (m)') 

%% Drift-track time series
% Pred