Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utide.solve and utide.construct #90

Closed
JueLinYe opened this issue Mar 4, 2021 · 2 comments
Closed

utide.solve and utide.construct #90

JueLinYe opened this issue Mar 4, 2021 · 2 comments

Comments

@JueLinYe
Copy link

JueLinYe commented Mar 4, 2021

Greetings! May I ask a question about utide.reconstruct? I have a 1-d data of sea level and I am trying to obtain the astronomical tide by using uTide. My code more or less looks like this.

 time1=mdates.date2num(data.index.to_pydatetime())
    
    coef1=utide.solve(time1,data['SeaLevel'].values,
                      lat=lat1,
                      method='irls',
                      conf_int='MC',
                      nodal=True,#include satellite corrections to improve results
                      constit=harmNames
                      )
   
    harmNames_sorted=coef1.name
    tide_aux=utide.reconstruct(time1,coef1,constit=harmNames_sorted)

I am getting a time series, of the tide, that looks like it has much smaller frequency than the astromical tide obtained with Foreman. I see that, in my case, I get a frequency in radians/hour from utide.solve, but utide.reconstruct is using this frequency in cycle per hour (as I can see from the comments in the source code). Hence the smaller frequency. I must have dropped some option somewhere.

Thanks in advance,

Jue

@efiring
Copy link
Collaborator

efiring commented Mar 4, 2021

Please supply a very minimal, but still complete, example that illustrates the question. Also, look at tests/test_solve.py, which illustrates a round-trip in which the results of solve are used in reconstruct.

@JueLinYe
Copy link
Author

Thank you so much for the prompt reply. I have been running test_solve.py and looking into my code and data. I think that the technical problem is mine, and it does not seem to do with utide, for now. I have some issues with SA and SSA, but I will ask again if I am sure that there is something that I could contribute to utide.

Best regards,

Jue

@efiring efiring closed this as completed Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants