Expand description
NetCDF-3 files, classic and 64-bit offset (SciPy’s io.netcdf_file).
A NetCDF-3 file is big-endian: the magic CDF and a version byte (1 classic, 2 with 64-bit
offsets), the number of records, then lists of dimensions (one may be unlimited, the record
dimension), global attributes and variables (name, dimensions, attributes, type, size and the
offset of the data). Fixed-size variables are stored one after another; variables along the
record dimension are interleaved record by record. Types are bytes, characters, 16- and
32-bit integers and 32- and 64-bit floats.
See the book entry Scientific data files.
Structs§
- NcVariable
- A variable: its dimensions (indices into the file’s dimension list), attributes and data in C order (the record dimension, if any, first).
- NetCdf
- The contents of a NetCDF-3 file.
Enums§
- NcValue
- Values of one NetCDF type, in C order.
Functions§
- netcdf_
decode - Parses a NetCDF-3 file (SciPy’s
netcdf_file(..., "r")), classic or 64-bit offset. - netcdf_
encode - Writes a NetCDF-3 file (SciPy’s
netcdf_file(..., "w")) in the declared version: the header, then the fixed-size variables, then the records. The number of records is taken from the record variables’ data, which must agree. - read_
netcdf_ file - Reads a NetCDF-3 file.
- write_
netcdf_ file - Writes a NetCDF-3 file.