Installing TMD3.0 is pretty straightforward. There are a few ways you can do it, but here's the easiest:
If you're signed in with a MathWorks account, just click Add-Ons → Get Add-Ons from the MATLAB Home menu. Here's what it looks like:
After clicking Get Add-Ons, search for "Tide Model Driver", then click Add to MATLAB. That's it. You should be good to go.
Depending on how you interact with GitHub, you may have downloaded the TMD3.0 files directly, or you may have them in a local folder on your computer. If either of these apply to you, I recommend adding a startup.m
file to your MATLAB home directory, which runs every time MATLAB starts.
Inside startup.m
, include a line that adds the path to your TMD3.0 folder, let's assume you've called it TMD_functions
. Use genpath()
to add all the folders within folders. You may also want to add a path to wherever you have placed your tide model data. The lines you'll put in your startup.m
should look something like:
% On my computer I have one directory for TMD functions...
addpath(genpath('/Users/cgreene/Documents/TMD_functions'))
% ...and another directory where I keep the model data:
addpath(genpath('/Users/cgreene/Documents/TideModelData'))
After installing TMD3.0, be sure to download your favorite tide model data, unzip it, and then you should be ready to predict some tides.
This page was written by Chad A. Greene, June 2022.