필터 지우기
필터 지우기

Error reading netcdf file over internet

조회 수: 2 (최근 30일)
Khaled Hamed
Khaled Hamed 2024년 2월 20일
편집: Walter Roberson 2024년 2월 20일
The following code runs correctly without errors in online Matlab, Matlab Mobile, and even in this question box (when using the new RUN feature). Howver, on my Windows machines (10 and 11), the one-dimensional variable is read ok, but the three-dimensional variable throws the error shown below. Any idea how to fix this?
>> url='https://geo.public.data.uu.nl/vault-futurestreams/research-futurestreams%5B1633685642%5D/original/discharge/hist/gfdl/discharge_weekAvg_output_gfdl_hist_1986-01-07_to_1995-12-30.nc#mode=bytes';
>> aa=ncread(url,'longitude',1,3)
aa =
3×1 single column vector
-179.9583
-179.8750
-179.7917
>> bb=ncread(url,'discharge',[1, 1, 1 ],[1, 1, 10 ])
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of 'getVarsFloat' function - 'HDF error (NC_EHDFERR)'.
Error in netcdf.getVar (line 205)
data = matlab.internal.imagesci.netcdflib(funcstr,ncid,varid,varargin{:});
Error in internal.matlab.imagesci.nc/read (line 690)
data = netcdf.getVar(gid, varid, ...
Error in ncread (line 76)
vardata = ncObj.read(varName, varargin{:});

답변 (0개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by