You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize a GFSForecast object with time range and rad variables: gfs_rad = GFSForecast(("2022-03-01 00:00:00", "2022-03-01 23:00:00"), variables=Cocip.rad_variables, show_progress=True)
Download and open the respective metdataset: rad = gfs_rad.open_metdataset()
Additional Notes
Running the steps above with the parameter pressure_levels returns ValueError, because it expects a met_variable.
Met data can be downloaded and opened correctly. Only rad data is broken.
The text was updated successfully, but these errors were encountered:
it looks to me like the error is in gfs.py in the definition of _download_file.
After downloading the file to tmp, the function tries to declare the dataset using
In _open_gfs_dataset, it checks if ds is None, and if so, sets it to tmpds, which is constructed using the temp_grib_name above. However, the file usually no longer exists by then, and ds is still None.
The line
Description
When running CoCiP with GFS (see https://py.contrails.org/notebooks/GFS.html#Run-CoCiP-with-GFS), opening a rad dataset results in the following error:
This worked until the last update on the 8th of October (v0.54.1). It seems that the loaded dataset is empty.
Details
Steps to Reproduce
gfs_rad = GFSForecast(("2022-03-01 00:00:00", "2022-03-01 23:00:00"), variables=Cocip.rad_variables, show_progress=True)
rad = gfs_rad.open_metdataset()
Additional Notes
Running the steps above with the parameter
pressure_levels
returns ValueError, because it expects a met_variable.Met data can be downloaded and opened correctly. Only rad data is broken.
The text was updated successfully, but these errors were encountered: