Abstract classes#
- class pyfes.core.AbstractTidalModelComplex64#
Bases:
pybind11_object
Abstract class for a tidal model.
- __init__(*args, **kwargs)#
- accelerator(self: pyfes.core.AbstractTidalModelComplex64, formulae: pyfes.core.Formulae = <Formulae.kSchuremanOrder1: 0>, time_tolerance: float = 0.0) pyfes.core.Accelerator #
Get the accelerator used to speed up the interpolation of the tidal model.
- Returns:
The accelerator.
- add_constituent(self: pyfes.core.AbstractTidalModelComplex64, name: str, wave: numpy.ndarray[numpy.complex64[m, 1]]) None #
Add a tidal constituent to the model.
- Parameters:
name – The name of tidal constituent to add. Search is not case sensitive. So
Msqm
,MSQM
andmsqm
are equivalent.wave – The wave model.
- clear(self: pyfes.core.AbstractTidalModelComplex64) None #
Clear the loaded wave models from memory.
- property dynamic#
Dynamic tidal constituents that are not interpolated by the model. The constituents declared here will be considered as part of the model components and will not be calculated by admittance and excluded from the long-period equilibrium wave calculation routine (lpe_minus_n_waves).
- identifiers(self: pyfes.core.AbstractTidalModelComplex64) list[pyfes.core.Constituent] #
Return the identifiers of the loaded wave models.
- interpolate(*args, **kwargs)#
Overloaded function.
interpolate(self: pyfes.core.AbstractTidalModelComplex64, lon: numpy.ndarray[numpy.float64[m, 1]], lat: numpy.ndarray[numpy.float64[m, 1]], num_threads: int = 0) -> tuple[dict[pyfes.core.Constituent, numpy.ndarray[numpy.complex128[m, 1]]], numpy.ndarray[numpy.int8[m, 1]]]
Interpolate the wave models loaded at the given coordinates.
- Parameters:
lon – The longitude of the point to interpolate at.
lat – The latitude of the point to interpolate at.
num_threads – The number of threads to use. If 0, the number of threads is determined by the number of cores.
- Returns:
A tuple containing the interpolated wave models stored in a dictionary and a flag indicating if the point was extrapolated, interpolated or if the model is undefined.
interpolate(self: pyfes.core.AbstractTidalModelComplex64, lon: float, lat: float, wave_table: pyfes.core.WaveTable) -> pyfes.core.Quality
Interpolate the wave models loaded at the given position.
- Parameters:
lon – The longitude of the point to interpolate at.
lat – The latitude of the point to interpolate at.
wave_table – The wave table to store the interpolated wave models.
- Returns:
A flag indicating if the point was extrapolated, interpolated or if the model is undefined.
- property tide_type#
Return the type of tide.
- class pyfes.core.AbstractTidalModelComplex128#
Bases:
pybind11_object
Abstract class for a tidal model.
- __init__(*args, **kwargs)#
- accelerator(self: pyfes.core.AbstractTidalModelComplex128, formulae: pyfes.core.Formulae = <Formulae.kSchuremanOrder1: 0>, time_tolerance: float = 0.0) pyfes.core.Accelerator #
Get the accelerator used to speed up the interpolation of the tidal model.
- Returns:
The accelerator.
- add_constituent(self: pyfes.core.AbstractTidalModelComplex128, name: str, wave: numpy.ndarray[numpy.complex128[m, 1]]) None #
Add a tidal constituent to the model.
- Parameters:
name – The name of tidal constituent to add. Search is not case sensitive. So
Msqm
,MSQM
andmsqm
are equivalent.wave – The wave model.
- clear(self: pyfes.core.AbstractTidalModelComplex128) None #
Clear the loaded wave models from memory.
- property dynamic#
Dynamic tidal constituents that are not interpolated by the model. The constituents declared here will be considered as part of the model components and will not be calculated by admittance and excluded from the long-period equilibrium wave calculation routine (lpe_minus_n_waves).
- identifiers(self: pyfes.core.AbstractTidalModelComplex128) list[pyfes.core.Constituent] #
Return the identifiers of the loaded wave models.
- interpolate(*args, **kwargs)#
Overloaded function.
interpolate(self: pyfes.core.AbstractTidalModelComplex128, lon: numpy.ndarray[numpy.float64[m, 1]], lat: numpy.ndarray[numpy.float64[m, 1]], num_threads: int = 0) -> tuple[dict[pyfes.core.Constituent, numpy.ndarray[numpy.complex128[m, 1]]], numpy.ndarray[numpy.int8[m, 1]]]
Interpolate the wave models loaded at the given coordinates.
- Parameters:
lon – The longitude of the point to interpolate at.
lat – The latitude of the point to interpolate at.
num_threads – The number of threads to use. If 0, the number of threads is determined by the number of cores.
- Returns:
A tuple containing the interpolated wave models stored in a dictionary and a flag indicating if the point was extrapolated, interpolated or if the model is undefined.
interpolate(self: pyfes.core.AbstractTidalModelComplex128, lon: float, lat: float, wave_table: pyfes.core.WaveTable) -> pyfes.core.Quality
Interpolate the wave models loaded at the given position.
- Parameters:
lon – The longitude of the point to interpolate at.
lat – The latitude of the point to interpolate at.
wave_table – The wave table to store the interpolated wave models.
- Returns:
A flag indicating if the point was extrapolated, interpolated or if the model is undefined.
- property tide_type#
Return the type of tide.
- class pyfes.core.Accelerator#
Bases:
pybind11_object
Accelerator used to speed up the interpolation of tidal models.