uptide is a python package for tidal calculations. It computes the tidal
free surface height or velocities from the amplitudes and phases of the
tidal constituents. These amplitudes and phases can be read from global
tidal solutions such as OSU/OTIS
They can be read directly from the netCDF files provided by these
sources. Some limited functionality for tidal harmonic analysis is also
- python 2.6 or 2.7 (not tested for python 3)
- to read from netCDF sources: python netCDF support. This can be
either: netCDF4, or
or scipy.io.netcdf. netCDF4 is the
recommended package and is required for FES2012 that comes in netcdf4
format. To install:
sudo CC=mpicc pip install netcdf4
For Ubuntu Precise, see this
So there, either use Scientific (sudo apt-get install
python-scientific), or install a newer version of netcdf4 (>=4.1.2).
- Given the phase and amplitudes of the harmonic constituents (M2, S2,
etc.) reconstruct the tidal signal at an arbitrary date and time
(including nodal corrections).
- Read the phases and amplitudes on a regular Cartesian grid from a
netCDF file and interpolate the tidal signal at any arbitrary point
in the domain, for any date and time. Phases and amplitudes can be
read directly from netCDF files as provided by the [FES2004] and
[OTPSnc] global and regional tidal data bases.
TODO: Brief introduction on what you do with files - including link to relevant help section.