-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
RuntimeError: Unable to load latest weather data for GFS #205
Comments
@git-akihakune Thanks for letting us know that you are having an issue. We recently became aware of this and it seems to be a problem relating the netCDF4 library and Colab. We have not been able to reproduce the error locally so far. I will perform further investigations and let you know. Regarding you not seeing the any "gfs20220717", this is because RocketPy tries to retrieve data from each day up until 10 days in the past. This is done so that previous forecasts can be retrieved in case there is a temporary problem with GFS. |
I have just confirmed that running on a linux server (GitHub Codespaces) works properly. It really seems to be a problem specific to Google Colab. Furthermore, I have tested a simple netCDF4 example using Colab and also got an error. You can see the example here: https://colab.research.google.com/drive/17juZulxoz8sahoDJVuU4uOMSnBC_xXDA?usp=sharing On other systems, the example runs fine. This maybe a related issue: Unidata/netcdf4-python#753 |
I have created a new issue on netCDF4's repo for us to track while we investigate this: Unidata/netcdf4-python#1179 |
@git-akihakune I found a quick workaraound: installing an earlier version of You can try by running |
The workaround was great. I've tested on a few different Colab notebooks and no error was reported. As for this issue, I suggest leaving it open until the problem is entirely solved. |
Agreed!! |
Env.setAtmosphericModel(type='Forecast', file='GFS', dictionary='NOAA') Having the same problem here: With netCDF4-1.6.1 the same error (date in url different) With netcdf4-1.5.8 it works |
Everything seems to be working now, @giovaniceotto shall we close this one or wait for a resolution on Unidata/netcdf4-python#753 ? imo we can already close |
The issue we are tracking is actually Unidata/netcdf4-python#1179 Yes, let's leave it open until the problem is fully resolved. |
It seems like the referred issue is going to be closed in the short-term future, just waiting for someone else to confirm that the |
Solved, everything is running on |
Describe the bug
Running the code in Colab Notebook preview led to an error.
To Reproduce
Just run the default code in the preview.
Expected behavior
It's expected to run the demo smoothly.
Screenshots
Additional context
Checking the GrADS Data Server, indeed, I'm currently not seeing any "gfs20220717" dir. Maybe fixing the link can solve this issue.
The text was updated successfully, but these errors were encountered: