Closed ZHANGGU closed 1 month ago
Hey @ZHANGGU,
In order to run the notebooks with leaflet maps you need the full installation. You can install pyTMD
directly from conda-forge, or by including [all]
with the pip
installation.
python -m pip install pyTMD[all]
That being said, I should update the documentation to clarify the requirements.
I tried but failed again. it seems [all] cannot be included
Oh a Windows build. I would recommend installing from conda. You need GDAL for the complete installation, which can be tricky to install.
I'm going to close this issue, feel free to reopen it.
Installed development version
Run the example as below
from future import print_function
import numpy as np import matplotlib.pyplot as plt import IPython.display
import tide programs
import pyTMD.crs import pyTMD.io import pyTMD.time import pyTMD.tools
available model list
model_list = sorted(pyTMD.io.model.ocean_elevation())
display widgets for setting directory and model
TMDwidgets = pyTMD.tools.widgets() TMDwidgets.model.options = model_list TMDwidgets.model.value = 'GOT4.10' TMDwidgets.VBox([ TMDwidgets.directory, TMDwidgets.model, TMDwidgets.atlas, TMDwidgets.compress ])