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

Spain break fetch forecast issue #28

Open
Zedzor opened this issue Nov 8, 2024 · 2 comments
Open

Spain break fetch forecast issue #28

Zedzor opened this issue Nov 8, 2024 · 2 comments

Comments

@Zedzor
Copy link

Zedzor commented Nov 8, 2024

Hi, congratulations on such a great project.

I'm trying to use the examples/fetch_forecast.py for a break in spain however I get 0 in every value inside data (except inside 'time'). I tried different coordinates a bit further or closer to the coast and i don't manage to get any different value.

{'time': [datetime.datetime(2024, 11, 7, 18, 0), datetime.datetime(2024, 11, 7, 21, 0), datetime.datetime(2024, 11, 8, 0, 0), datetime.datetime(2024, 11, 8, 3, 0), datetime.datetime(2024, 11, 8, 6, 0), datetime.datetime(2024, 11, 8, 9, 0), datetime.datetime(2024, 11, 8, 12, 0), datetime.datetime(2024, 11, 8, 15, 0), datetime.datetime(2024, 11, 8, 18, 0)], 'ws': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'wdir': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'u': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'v': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swh': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'perpw': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'dirpw': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'shww': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swell': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swell_2': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swell_3': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'mpww': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swper': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swper_2': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swper_3': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'wvdir': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swdir': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swdir_2': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'swdir_3': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]}

I'd really appreciate your help.
Thanks in advance

@pheidler
Copy link
Contributor

I think Spain is out of range for the exported models. You'll need to add another one, like this:

global_wave_model = surfpy.WaveModel(
        name='gfswave',
        subset='global.0p16',
        description='GFS Wave Model: Global 0.16 degree',
        bottom_left=surfpy.Location(-15.00, 0.00),
        top_right=surfpy.Location(52.5, 359.83),
        location_resolution=0.167,
        time_resolution=0.125,
        max_index=384,
        hourly_cutoff_index=0
    )

I found a list of models here: https://polar.ncep.noaa.gov/waves/Model_Description.pdf

For example, here's the raw data from a one hour forecast for Mundaka:

{'time': [datetime.datetime(2024, 11, 15, 12, 0)], 'ws': [5.25], 'wdir': [92.75], 'u': [-5.24], 'v': [0.25], 'swh': [0.795], 'perpw': [5.575], 'dirpw': [20.97], 'shww': [0.0], 'shts': [0.735], 'shts_2': [0.29000000000000004], 'shts_3': [0.095], 'mpww': [0.0], 'mpts': [5.575], 'mpts_2': [14.095], 'mpts_3': [14.105], 'wvdir': [0.0], 'swdir': [37.01], 'swdir_2': [325.03499999999997], 'swdir_3': [356.315]}

@Zedzor
Copy link
Author

Zedzor commented Nov 21, 2024

Thank you so much <3

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