Skip to content

nexus_nc_core

io · scripts/io/nexus_nc_core.m

NEXUS_NC_CORE  Native NetCDF classic (CDF-1, CDF-2 64-bit offset, CDF-5)
  reader/writer behind ncinfo, ncread, ncdisp, ncwrite, nccreate,
  ncreadatt, ncwriteatt and ncwriteschema.  Pure M code on top of
  fopen/fread/fwrite; no external program or library is involved.
  NetCDF-4 (HDF5-based) files are read and written through the built-in
  h5info/h5read/h5write functions and the internal __h5_nc4__ helper
  that creates the dimension scales and creation-order tracking.
  Not a user-facing function.

  File layout (all numbers big-endian): "CDF" + version byte, numrecs,
  dimension list, global attribute list, variable list, then the data of
  the fixed-size variables followed by interleaved records.