Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
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

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690