Previous: NetCDF Format Versions Next: Classic API Performance Tips Table of contents Frames User guide
2008 Unidata NetCDF Workshop for Developers and Data Providers > Formats and Performance

7.1 Classic File Format
Understanding the netCDF classic format can make clear why modifying the schema of an existing netCDF file may be expensive.

A netCDF classic or 64-bit offset file is stored in three parts:

  1. The header, containing information about dimensions, attributes, and variables (the schema
  2. The fixed-size data, containing data values for variables that don't have an unlimited dimension
  3. The record data, containing data values for variables that have an unlimited dimension

By default, the header has almost no extra space; it is just large enough to contain the dimensions, attributes (including all attribute values), and variable metadata, rounded up to a whole number of disk blocks.

To avoid copying data when the file schema changes

NetCDF-4 note:  NetCDF-4 files do not have a contiguous header for schema, so none of this is necessary for netCDF-4! Schema additions are efficient.

 


Previous: NetCDF Format Versions Next: Classic API Performance Tips Table of contents Frames User guide
2008 Unidata NetCDF Workshop for Developers and Data Providers > Formats and Performance