- Reads netCDF format tidal solutions provided by Ohio State University and ESR
- Spatially interpolates tidal constituents to input coordinates
from pyTMD.read_netcdf_model import read_netcdf_model
ht = read_netcdf_model(ilon,ilat,directory,model_files,type,METHOD='spline')
ilon
: longitude to interpolate
ilat
: latitude to interpolate
directory
: data directory for tide data files
grid_file
: grid file for model
model_files
: list of model files for each constituent
type
: tidal variable to run
- 'z': heights
- 'u': horizontal transport velocities
- 'v': vertical transport velocities
METHOD
: interpolation method
spline
: scipy bivariate spline interpolation
linear
, cubic
, nearest
: scipy griddata interpolations
GZIP
: input netCDF4 files are compressed
SCALE
: scaling factor for converting to output units
amplitude
: amplitudes of tidal constituents
phase
: phases of tidal constituents
D
: bathymetry of tide model
constituents
: list of model constituents