Skip to content

ncread

io · scripts/io/ncread.m

NCREAD  Read a variable from a NetCDF file (classic CDF-1/2/5 and NetCDF-4).
  DATA = NCREAD (FILENAME, VARNAME) reads the whole variable.
  DATA = NCREAD (FILENAME, VARNAME, START, COUNT, STRIDE) reads a
  hyperslab; START is 1-based and COUNT may contain Inf.  Dimensions
  are in MATLAB order (the reverse of the file's CDL order).  Variables
  with scale_factor/add_offset are returned as double; _FillValue and
  missing_value entries of floating-point results become NaN.