tsutterley / pyTMD

Python-based tidal prediction software
https://pytmd.readthedocs.io
MIT License
135 stars 40 forks source link

pyTMD.tools.py has a bug #338

Closed ZHANGGU closed 1 month ago

ZHANGGU commented 2 months ago

Installed development version

Run the example as below 2024-09-12_09-47-44 2024-09-12_09-48-24

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 ])

tsutterley commented 2 months 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]
tsutterley commented 2 months ago

That being said, I should update the documentation to clarify the requirements.

ZHANGGU commented 2 months ago

I tried but failed again. it seems [all] cannot be included image

tsutterley commented 2 months ago

Oh a Windows build. I would recommend installing from conda. You need GDAL for the complete installation, which can be tricky to install.

tsutterley commented 1 month ago

I'm going to close this issue, feel free to reopen it.