readtidemodel.py
March 27, 2020 ยท View on GitHub
- Reads OTIS format tidal solutions provided by Ohio State University and ESR
- Spatially interpolates tidal constituents to input coordinates
Calling Sequence
from pyTMD.read_tide_model import read_tide_model
amp,ph,D,c = read_tide_model(ilon, ilat, grid_file, model_file, EPSG, type,
METHOD='spline', GRID='OTIS')
Inputs
ilon: longitude to interpolateilat: latitude to interpolategrid_file: grid file for modelmodel_file: model file containing each constituentEPSG: projection of tide model datatype: tidal variable to run- 'z': heights
- 'u': horizontal transport velocities
- 'v': vertical transport velocities
Options
METHOD: interpolation methodspline: scipy bivariate spline interpolationlinear,cubic,nearest: scipy griddata interpolations
GRID: binary file type to read- 'ATLAS': reading a global solution with high-resolution local solutions
- 'OTIS': combined global solution
Outputs
amplitude: amplitudes of tidal constituentsphase: phases of tidal constituentsD: bathymetry of tide modelconstituents: list of model constituents