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

Issue loading YAML file in pyfes: "The configuration file defines no tide wave" #37

Open
Misiorama opened this issue Dec 27, 2024 · 0 comments

Comments

@Misiorama
Copy link

Hello,

I am using pyfes in a Windows environment (Python 3.8) to load a YAML file with tidal data, but I am encountering the following error when trying to initialize a Handler:

RuntimeError: The configuration file defines no tide wave

Context:

Installation:
    I installed pyfes in a Conda environment using the fbriol channel:

conda install pyfes -c fbriol

I confirmed that pyfes is installed correctly and appears in site-packages.

Files:

My .nc files contain valid data in the variables Ua (amplitude) and Ug (phase), with dimensions lat (180) and lon (360), covering the longitude range -180 to 180.

YAML file: Here is a simplified example of my YAML file for testing:

tide:
cartesian:
amplitude: Ua
latitude: lat
longitude: lon
paths:
M2: C:/path/to/my/file/m2.nc
phase: Ug

Test script: I am running the following Python script to test pyfes:

import pyfes

yaml_path = "C:/path/to/my/file/test_eastward_velocity.yaml"

try:
    handler = pyfes.Handler('ocean', 'memory', yaml_path)
    print("YAML file successfully loaded.")
except Exception as e:
    print(f"Error: {e}")

Results:

The error persists:

RuntimeError: The configuration file defines no tide wave

Questions:

Could this issue be related to the structure of the .nc files or the attributes expected by pyfes?
Is there a way to debug this error to identify exactly what part of the YAML file or .nc files is not being recognized?
Are there official YAML examples available to validate whether my configuration is compatible?

I appreciate any guidance on how to resolve this issue. Thank you in advance for your help!

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

1 participant