This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Alan,
The last dimensions varies fastest, as is described in the "NetCDF Utilities"
chapter of the netCDF Users Guide:
The optional data section of a CDL description is where netCDF
variables may be initialized. The syntax of an initialization is
simple:
variable = value_1, value_2, ...;
The comma-delimited list of constants may be separated by spaces,
tabs, and newlines. For multidimensional arrays, the last dimension
varies fastest. Thus, row-order rather than column order is used for
matrices. ...
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf.html#NetCDF-Utilities
You can always use the annotation arguments [-b lang] or [-f lang] for
brief or full annotation in comments relative to C or Fortran
index order to see what the values correspond to, as in
ncdump -f fortran foo.nc
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: TWZ-216539
Department: Support netCDF
Priority: Normal
Status: Closed