UTide icon indicating copy to clipboard operation
UTide copied to clipboard

Tidal prediction using coef from Utide

Open datpthus opened this issue 1 year ago • 2 comments

Hi, I am using 1-month observed sea level to extract about 28 harmonic constituents and then can produce a tidal signal for that month. However, when I use coef to predict tide at a timeseries (I use pd.date_range) it seems that I can not predict longer period than 1 month (e.g 6 months or 1 year).

Is that due to I use too short observed SL or is there something else I need to change in the code?

Many thanks. Dat Pham

datpthus avatar Oct 31 '23 17:10 datpthus

I don't see any reason it shouldn't work. A quick test with a modification of https://github.com/wesleybowman/UTide/blob/master/notebooks/utide_uv_example.ipynb shows that one can call reconstruct with a much longer time series than was used in solve.

efiring avatar Oct 31 '23 18:10 efiring

I don't see any reason it shouldn't work. A quick test with a modification of https://github.com/wesleybowman/UTide/blob/master/notebooks/utide_uv_example.ipynb shows that one can call reconstruct with a much longer time series than was used in solve.

Many thanks. I did not set "trend=False" and the predicted tide was added up to very high values. Now it is ok with longer timeseries.

datpthus avatar Nov 01 '23 16:11 datpthus