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

Running CoastSat on Google Colab - Problem with pyfes: module 'pyfes' has no attribute 'Handler' #35

Open
cianfabio opened this issue Jan 17, 2024 · 1 comment

Comments

@cianfabio
Copy link

Hi,
I'm trying to run CoastSat on Colab. I managed to get it running until the point where pyfes is needed. I managed to install pyfes but when I run the following line:

# Option 1. if FES2014 global tide model is setup
# point to the folder where you downloaded the .nc files
filepath = r'/content/drive/MyDrive/aviso-fes-main/data/fes2014'
config_ocean = os.path.join(filepath, 'ocean_tide.ini') # change to ocean_tide.ini
config_load =  os.path.join(filepath, 'load_tide.ini')  # change to load_tide.ini
ocean_tide = pyfes.Handler("ocean", "io", config_ocean)
load_tide = pyfes.Handler("radial", "io", config_load)

I get the following error:

AttributeError                            Traceback (most recent call last)
[<ipython-input-14-f2ca7493019e>](https://localhost:8080/#) in <cell line: 7>()
      5 config_ocean = os.path.join(filepath, 'ocean_tide.ini') # change to ocean_tide.ini
      6 config_load =  os.path.join(filepath, 'load_tide.ini')  # change to load_tide.ini
----> 7 ocean_tide = pyfes.Handler("ocean", "io", config_ocean)
      8 load_tide = pyfes.Handler("radial", "io", config_load)
      9 

AttributeError: module 'pyfes' has no attribute 'Handler'

Any idea?
Thanks

@kvos
Copy link
Owner

kvos commented May 23, 2024

hi @cianfabio , I'm not sure how I can help here. How did you install pyfes? with https://anaconda.org/fbriol/pyfes?

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