Network Common Data Form (.nc)

OGC Standard

Network Common Data Form (NetCDF) is a widely used format for scientific array data, including atmospheric, climate, and ocean research. Other formats are also used, and conventions vary by project.

Convert NETCDF to CSV

Free in-browser NETCDF to CSV converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify NetCDF files by inspecting the leading binary byte sequence:

Select or drop files here

Private - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify NetCDF files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

43 44 46 01 / 43 44 46 02

ASCII REPRESENTATION: CDF\x01 / CDF\x02

Standardization: OGC NetCDF Core Standard / NASA ESDS Standard

Technical Specifications

Container ArchitectureClassic CDF format (magic 'CDF\x01' or 'CDF\x02' 64-bit offset) or NetCDF-4 (HDF5 container with Climate and Forecast CF conventions)
CompressionUncompressed (classic) or Deflate/Zstd chunk compression (NetCDF-4)
Byte EndiannessBig-Endian (classic) or Little/Big-Endian (NetCDF-4 HDF5)
Color SpacesN/A (Multi-dimensional Climate & Oceanographic Arrays)
Channels & StructureMulti-dimensional variables (temperature, salinity, pressure) mapped against dimensions (time, lat, lon, depth)
Max DimensionsClassic limited to 2 GB per variable; NetCDF-4 practically unlimited
TransparencyNone
Streaming & ProgressiveRecord variable streaming allows continuously appending new timesteps

Technical Comparison Matrix: NetCDF vs Competitors

Technical AttributeNetCDF (Current)HDF5GRIBFITS
Primary DomainMeteorology, Oceanography, ClimateGeneral supercomputing & AIOperational numerical weather gridsAstronomy & Astrophysics
Physical Units StandardsCF Conventions ('units' attribute)No standardized unit schemaFixed WMO table parametersFITS standard astronomical units
Underlying EngineClassic CDF or HDF5 (NetCDF-4)Native HDF5 B-tree containerPacked bitstream frames2880-byte header/data blocks
OGC StandardOfficial OGC Earth Science StandardNot an OGC standardWMO international standardIAU international standard

Common Corruption Modes & Hex Recovery Guide

Software reports 'NetCDF: Unknown file format'.

Root Cause: NetCDF-4 file opened with legacy NetCDF-3 library, or missing CDF magic bytes.

Recovery: Inspect header version or convert with File2File.app NetCDF Converter.

Security Analysis & Parser Attack Vectors

Classic NetCDF and NetCDF-4 libraries process untrusted dimension counts where integer overflow can cause memory corruption.

Known Attack Vectors

  • Integer overflow during dimension product calculations in libnetcdf.
  • Buffer over-read when parsing corrupted attribute text strings.
  • Denial of service through malformed record dimension offsets.

Defensive Best Practices: Process NetCDF files using memory-safe sandboxed WebAssembly engines.

Historical Origins & Milestones

2011Open Geospatial Consortium (OGC) adopts NetCDF Core as an official International Geospatial Standard.
2008NetCDF-4 released, adopting HDF5 as its underlying high-performance storage layer.
1989Glenn Davis and Russ Rew create NetCDF at Unidata to allow scientists to share weather data across different computers.

Key Advantages & Pros

  • NetCDF is used in climate and meteorology research, including some climate-model workflows; adoption varies by project and organization.
  • Self-describing: variables explicitly state their physical units ('degrees_Celsius', 'hPa') and geographic coordinate axes.
  • Appendable record dimensions: weather monitoring stations can continuously append new hourly measurements over years.

Technical Limitations & Cons

  • Dual architecture: classic NetCDF-3 uses custom binary CDF framing, while modern NetCDF-4 uses HDF5 under the hood.
  • Requires geographic visualization software (Panoply, QGIS, Python xarray) to view properly.
  • Large datasets can span tens of gigabytes per simulation run.

Interesting Technical Trivia

  • The first three magic bytes 'CDF' stand for 'Common Data Form', honoring NASA's earlier 1980s data format that inspired NetCDF.
  • The Climate and Forecast (CF) Metadata Conventions standardize variable names so that computer models worldwide understand each other.
  • Weather centers use a range of forecast models, computing systems, and data formats; NetCDF and GRIB are both used in operational meteorology.

Frequently Asked Technical Questions

What is a NetCDF (.nc) file?

A NetCDF file is a scientific data format used by meteorologists and oceanographers to store multi-dimensional weather, temperature, ocean current, and climate data.

How can I view a NetCDF file?

You can view and plot NetCDF data using NASA Panoply, QGIS, Python (xarray/matplotlib), or convert it to CSV/GeoJSON with File2File.app.

What is the difference between NetCDF-3 and NetCDF-4?

NetCDF-3 is the original binary format with 2 GB variable limits. NetCDF-4 uses HDF5 technology under the hood, supporting compression and unlimited file sizes.