JimP
JimP

Reputation: 83

array size limit for matlab ncread

I've found when trying to access a large(ish) array via OPeNDAP using Matlab and ncread, the result returns all zeros at some array size limit.
I'm trying to figure out if this is a Matlab/ncread limit or OPeNDAP issue.

I'm accessing a data set served via OPeNDAP (GrADS-DODS to be exact) via Matlab's ncread function.

% matlab R2018b 64-bit (maci64)

URL = 'http://apdrc.soest.hawaii.edu:80/dods/public_data/Reanalysis_Data/NCEP/NCEP2/6_hourly/gaussian_grid/uwnd_10m';

lat = ncread(URL,'lat');

lon = ncread(URL,'lon');

% this returns valid data

uwind = ncread(URL,'uwnd_10m',[1 1 1],[Inf Inf 29746]);

% this returns all zeros

uwind = ncread(URL,'uwnd_10m',[1 1 1],[Inf Inf 29747]);

% as does this (note there are 192x94x58676 values)

uwind = ncread(URL,'uwnd_10m');

Upvotes: 1

Views: 303

Answers (0)

Related Questions