WIP: Pytides submodule #4
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR might replace #3, and also clawpack/geoclaw#532, following some offline discussion about how best to organize things.
This includes pytides as a submodule, with some modifications to make the import statements work in Python3. Similar changes have been suggested in an open PR on the original site, but original pytides does not seem to be actively developed.
These changes are also implemented in other forks, e.g.
but these seem to have some other potential problems, and also do not seem to be actively developed, so I suggest we just maintain our own fork within this module.
There are also some other changes that have been implemented in the forks above and/or suggested in open PRs on pytides that we might want to consider, in particular at least one typo in a value for K2.
This PR includes a local
tidetools.pywith the utilities fromtide.pyin clawpack/geoclaw#532, and some additional utilities we have developed for other projects. There is also apytides_tools.pythat maybe should be combined withtidetools.py.Currently this PR also contains a couple notebooks illustrating usage:
tidetoolsto download the constituents,tidetoolsandpytides.More examples to come.