Skip to content

Example constructed elevation not matching original #17

@LaurieWilkinson

Description

@LaurieWilkinson

Hi,

I have tried the example from the docstring with the 'real' data, i.e.

import ttide as tt
import numpy as np

t = np.arange(1001)
m2_freq = 2 * np.pi / 12.42
elev = 5 * np.cos(m2_freq * t)
tfit_e = tt.t_tide(elev)
elev_fit = tfit_e(t)

When comparing the original elevation, 'elev', to the reconstructed one, 'elev_fit', the phases and frequencies are different, as shown in the figure below. Shouldn't these be the same or am I missing something?

Figure_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions