We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test_download_hycom fails for newer python versions, with "RuntimeError: NetCDF: file not found"
test_download_hycom
"RuntimeError: NetCDF: file not found"
Warning messages from test_download_hycom:
xarray opening opendap dataset like: https://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_19.1/2010.html (1 urls/years) oc_open: server error retrieving url: code=? message="Error { code = 500; message = "-1008324796"; }"xarray subsetting data (variable 'surf_el' and lon/lat extents) available time range in dataset from 2010-01-01 00:00:00 to 2010-12-31 00:00:00 xarray subsetting data per <Day>: 2010-01-01 xarray writing netcdf file: hycom_surf_el_2010-01-01.nc oc_open: server error retrieving url: code=? message="Error { code = 500; message = "-1008324796"; }
Reproducible code:
import dfm_tools as dfmt import pandas as pd longitude_min, longitude_max, latitude_min, latitude_max = 2, 3, 51, 52 #test domain date_min = '2010-01-01' date_max = '2010-01-02' year = pd.Timestamp(date_min).year dataset_url = [f'https://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_19.1/{year}'] varkey = 'surf_el' dfmt.download_OPeNDAP(dataset_url=dataset_url, varkey=varkey, longitude_min=longitude_min, longitude_max=longitude_max, latitude_min=latitude_min, latitude_max=latitude_max, date_min=date_min, date_max=date_max, dir_output=".", overwrite=True)
Interestingly enough, this issue does not occur when passing dataset_url as a string instead of a list of one string.
dataset_url
Some different versions (py39 vs py311):
py39_success.txt py311_fail.txt
The text was updated successfully, but these errors were encountered:
Was suddenly resolved with fresh environment created on 21-1-2025, changes:
Not sure what the cause was, but if it works it works
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
test_download_hycom
fails for newer python versions, with"RuntimeError: NetCDF: file not found"
Warning messages from
test_download_hycom
:Reproducible code:
Interestingly enough, this issue does not occur when passing
dataset_url
as a string instead of a list of one string.Some different versions (py39 vs py311):
py39_success.txt
py311_fail.txt
The text was updated successfully, but these errors were encountered: