Open cianfabio opened 10 months ago
hi @cianfabio , I'm not sure how I can help here. How did you install pyfes? with https://anaconda.org/fbriol/pyfes?
hi @cianfabio , I'm not sure how I can help here. How did you install pyfes? with https://anaconda.org/fbriol/pyfes? Hi @kvos, I installed successful pyfes but I still get error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[7], 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) 10 # coordinates of the location (always select a point 1-2km offshore from the beach) 11 # if the model returns NaNs, change the location of your point further offshore.
AttributeError: module 'pyfes' has no attribute 'Handler'.
My pyfes: Loading channels: done
pyfes 2024.6.0 py310hf888d8c_0 conda-forge pyfes 2024.6.0 py310hf888d8c_1 conda-forge pyfes 2024.6.0 py311h9e06789_0 conda-forge pyfes 2024.6.0 py311h9e06789_1 conda-forge pyfes 2024.6.0 py312hae45661_0 conda-forge pyfes 2024.6.0 py312hae45661_1 conda-forge
Can you give me ideas to solve it?
HI @Phuongtran75 , I have solved this question. Through checking the API of FES(https://cnes.github.io/aviso-fes/pyfes.html#confguration-file), the latest version of FES makes use of 'pyfes.config.load(path: str | PathLike) ' to load tide model. And I find the file type of config file changed from ini to yaml.
hi all, there is a problem as the fes package has completely change as you observed. I haven't updated the CoastSat.slope package yet, but I incorporated FES2022 into the main CoastSat toolbox so you should be able to run the slope estimation from there. Check https://github.com/kvos/CoastSat/blob/master/doc/FES2022_setup.md
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:
I get the following error:
Any idea? Thanks