What is the NC file format?
.nc files store various types of data, typically science-related. .nc files store multidimensional data organized in arrays, combining variables, dimensions, and metadata attributes in a single container. .nc is an open, platform-independent binary format developed and managed by Unidata (part of UCAR). Through APIs and libraries, the format is supported by many popular programming languages and facilitates the creation and sharing of scientific data. The reference implementation is written in C, with official libraries and interfaces available for C++, Fortran, Java, and Python, and community bindings for R and Julia. .nc files are supported by tools available for most operating systems and hardware platforms.
NetCDF tools store data in files with the .nc extension, which replaced the original .cdf extension in 1994 to avoid confusion with other popular file formats. The format has evolved through several versions: Classic (32-bit, ~2 GB limit), 64-bit Offset, CDF5, and netCDF-4 - the last of which uses HDF5 as its underlying storage layer and supports chunking and compression. .nc files are defined as:
- Self-describing - the file contains information about the data it stores,
- Platform-independent - such files can be opened on various platforms by default,
- Scalable - able to store small and large amounts of data,
- Appendable - new data can be added without rebuilding the file structure,
- Shareable,
- Easy to archive and backwards-compatible - all versions of the
.ncformat are supported by dedicated libraries, including future releases.
The Open Geospatial Consortium recognizes the .nc format as an international standard for data exchange. .nc files typically contain meteorological, geographical (GIS), climatological, or oceanographic data, and are a cornerstone of climate science and weather modeling workflows.
Security & safety
RISK: LOWA netCDF file is binary scientific data, not a program - it doesn't execute on your PC, so opening it to view is safe. The realistic risk is domain-specific rather than malware: parsers for netCDF/HDF5 have occasionally had CVEs, so keep your scientific tools (Panoply, the netCDF/HDF5 libraries, Python packages) updated when handling files from untrusted sources. Files can also be very large, so subset with CDO/NCO or xarray rather than loading everything into memory.
Format details
in a nutshell- CNC / Numerical Control program (G-code) - Plain-text RS-274 G-code that drives a milling/turning machine, produced by CAM software such as Mastercam; viewed in a text editor or G-code viewer.
Programs that open NC files
Technical details
deep spec| MIME type | application/x-netcdf |
| Magic bytes - Classic | 43 44 46 + version byte: 01 (Classic), 02 (64-bit Offset), 05 (CDF5); ASCII prefix "CDF" at offset 0 |
| Magic bytes - netCDF-4 | 89 48 44 46 0D 0A 1A 0A at offset 0 (HDF5 superblock signature) |
| Format versions | Classic (32-bit), 64-bit Offset, CDF5, and netCDF-4 (HDF5-based) |
| Primary data model | Named multi-dimensional variables sharing declared dimensions, plus per-variable and global metadata attributes |
| Byte order | Big-endian for Classic, 64-bit Offset, and CDF5; HDF5-native (configurable) for netCDF-4 |
| Maximum file size | ~2 GB (Classic 32-bit); ~8 EiB (64-bit Offset and CDF5); effectively unlimited for netCDF-4 |
| Reference implementation | Written in C; maintained by Unidata as the netCDF-C library |
| Language bindings | C, C++, Fortran, Java (netCDF-Java), Python (netCDF4-python, xarray), R (ncdf4), Julia (NetCDF.jl) |
| Chunking and compression | Available in netCDF-4 via HDF5 chunked storage; supports deflate (zlib) and Zstandard filters |
| Metadata convention | CF (Climate and Forecast) Conventions widely used to standardize coordinate variables, units, and grid mappings |
| Extension history | `.nc` replaced `.cdf` in 1994 to avoid confusion with unrelated formats using the same extension |
| OGC recognition | Recognized by the Open Geospatial Consortium as an international standard for gridded scientific data exchange |
| Developer | Unidata / UCAR (University Corporation for Atmospheric Research), introduced 1988 |
| Released | 1988 (Unidata) |
| Open standard | Yes · royalty-free |
| Specification | docs.unidata.ucar.edu |
NC conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about NC files.