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

FES2022.YML config #557

Open
leandrof-ing opened this issue Dec 30, 2024 · 1 comment
Open

FES2022.YML config #557

leandrof-ing opened this issue Dec 30, 2024 · 1 comment

Comments

@leandrof-ing
Copy link

Hi Kilian!, I was trying to run the line of code that requests the fes2022.yml file, but I have a problem that it cannot find the path where I saved it. What would be the exact path for the code to take?

Best regards

@kvos
Copy link
Owner

kvos commented Jan 6, 2025

hi @leandrof-ing , here's an example of how I have set it up:

  • I have a folder in Documents with my fes2022.yaml file and the /load_tide and /ocean_tide subfolders. Each subfolder contains netcdf files for the 34 tidal constituents, obtained from AVISO.
    image
  • Then I have edited the fes2022.yaml file to have the absolute paths to each netcdf file.
    image
  • Once this is done, I can open it in python with (this last command should take 4-5 minutes and consume quite a lot of RAM but manageable on a normal laptop):
filepath = r"C:\Users\KilianVos\Documents\fes2022b\fes2022.yaml"
handlers = pyfes.load_config(filepath)

Let me know if this helps.

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