LevelPredictor

LevelPredictor(self, constituent_repo)

Predict tidal levels timeseries (surface elevation)

Parameters

Name Type Description Default
constituent_repo ConstituentRepository Repository required

Methods

Name Description
predict Predict tide levels or currents using utide.

predict

LevelPredictor.predict(lon, lat, start, end, interval=timedelta(hours=1))

Predict tide levels or currents using utide.

Parameters

Name Type Description Default
lon float The longitude. required
lat float The latitude. required
start datetime The start date. required
end datetime The end date. required
interval timedelta The interval between predictions. timedelta(hours=1)

Returns

Name Type Description
pl.DataFrame The predicted tide levels or currents.

Notes

The workhorse of this functions the reconstruct function from UTide