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

How to get a datum and a datum value? #197

Open
kafran opened this issue May 1, 2023 · 2 comments
Open

How to get a datum and a datum value? #197

kafran opened this issue May 1, 2023 · 2 comments

Comments

@kafran
Copy link

kafran commented May 1, 2023

Hello everybody. I'm new to tide prediction and have no idea what I'm doing :). I just had this crazy idea to try to create a Tide app for iOS and since then I have been playing with XTide. I'm trying to get the harmonics for my location with pyTMD to use on XTide. This is what I have so far: https://colab.research.google.com/drive/1CwNd0J0w_8of11B1cPLugUs_8NxjcG-2

How can I get a datum and its value from FES2014 or EOT20?

Sorry for posting this kind of question here. I didn't find a more appropriate place.
Thank you for this splendid library.

@tsutterley
Copy link
Owner

Hey @kafran, your notebook looks super cool! I like what you did with pandas to show the constituent amplitude and phase.
I'm a little confused on what you're after. Are you wanting the mean sea surface height or dynamic topography? Those can be found on AVISO similar to the FES constituents.

@kafran
Copy link
Author

kafran commented Jul 10, 2023

Hi @tsutterley,

Thanks for your response and for your patience as I've been pouring some energy into the actual building of the app, which has diverted me slightly from my tide prediction endeavor.

I'm building a tide prediction app designed for casual beachgoers. It's in the early stages of development, and you can check it out here: https://testflight.apple.com/join/xrVUbTOm. At present, I've taken the approach of sourcing data from a 3rd party API. However, my ultimate goal is to have the app handle the tide predictions locally on the user's device and free ourselves from 3rd party dependencies.

To this end, I've been delving into how pyTMD works and trying to understand how it makes predictions. My plan is to translate its core functionality into Swift, so it can be used natively in iOS, preferably with FES2014/EOT20 models. I'm aware that these models are pretty heavy, so I'm also trying to comprehend how pyTMD only reads parts of these models, which would allow me to implement a similar strategy. In other words, the app would only need to pull in the relevant regional data from the models for tide predictions, thereby keeping it lightweight on the user's device.

I'm quite invested in learning more about tide prediction and would really appreciate your advice and guidance. Is this approach feasible in your opinion? If so, could you guide me towards some resources that would allow me to learn more about tide prediction and gain the necessary skills to wean off 3rd party APIs in the long run?

I truly appreciate your time and the excellent library you've developed.

Best regards.

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