# netCDF — Network Common Data Form (vector features)

> netCDF (Network Common Data Form (vector features)): Scientific array format that can store point, line and polygon features using CF geometry and UGRID mesh conventions. Specs, software and free sample files; convert netCDF to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/netcdf

> netCDF files can also contain raster data. [Read about netCDF raster](https://beta.mygeodata.cloud/formats/netcdf-raster) — Self-describing binary format for multidimensional scientific arrays such as climate, ocean and atmospheric grids. [Convert netCDF raster](https://beta.mygeodata.cloud/converter/netcdf-raster)



## What is a netCDF file?

netCDF (Network Common Data Form) is a self-describing, machine-independent binary format for array-oriented scientific data, developed and maintained by Unidata at UCAR. It is mainly used for gridded climate, ocean and atmospheric data, but conventions built on top of it allow feature-type content to be stored. The CF conventions define discrete sampling geometries for point, time series, profile and trajectory data, and later CF versions add encodings for simple point, line and polygon geometries. The separate UGRID convention describes unstructured meshes.

Vector features are expressed through dimensions, coordinate variables and attributes rather than as dedicated geometry records. Coordinate reference systems are declared with CF grid mapping variables. Support for these geometry encodings varies considerably between applications. As a result, netCDF is better suited to the scientific exchange of observation and model data than to general-purpose vector editing.

netCDF files with vector content usually come from climate, ocean, hydrology or meteorology teams that exchange observation or model output. Geometries are stored as arrays plus attributes, so the result depends on whether the sender followed the CF conventions. Before using a file, check which convention it uses, which variables hold coordinates, and whether a grid mapping variable defines the coordinate reference system.

### Technical details

| | |
|---|---|
| Full name | Network Common Data Form (vector features) |
| Data type | Vector · GIS vector |
| File extension | .nc |
| Files | Single file |
| Media type | application/x-netcdf |
| Geometry types | Point, LineString, Polygon |
| Multiple layers | Yes |
| Mixed geometry in a layer | No |
| Attribute names | — |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | GDAL/OGR, QGIS, ArcGIS Pro, FME |
| Specification | https://www.unidata.ucar.edu/software/netcdf |

### Specifications & references

- https://www.unidata.ucar.edu/software/netcdf
- https://cfconventions.org/cf-conventions/cf-conventions.html
- https://gdal.org/en/stable/drivers/vector/netcdf.html

### Sample netCDF files — free download

- [Places (CF point features)](https://beta.mygeodata.cloud/static/landing/samples/v1/netcdf_vector/st-helena-places.nc) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. netCDF-4 with CF-1.8 point geometries. (29.2 kB, EPSG:4326)
- [Basemap (one group per layer)](https://beta.mygeodata.cloud/static/landing/samples/v1/netcdf_vector/st-helena-basemap.nc) — Places, roads, waterways and land cover as CF-1.8 simple geometries, one netCDF-4 group per layer. (330 kB, EPSG:4326)

### Convert netCDF to other formats

- [netCDF to CSV](https://beta.mygeodata.cloud/converter/netcdf-to-csv)
- [netCDF to DXF](https://beta.mygeodata.cloud/converter/netcdf-to-dxf)
- [netCDF to XLSX](https://beta.mygeodata.cloud/converter/netcdf-to-xlsx)
- [netCDF to GeoPDF](https://beta.mygeodata.cloud/converter/netcdf-to-geopdf)
- [netCDF to KML](https://beta.mygeodata.cloud/converter/netcdf-to-kml)
- [netCDF to SHP](https://beta.mygeodata.cloud/converter/netcdf-to-shp)
- [netCDF to KMZ](https://beta.mygeodata.cloud/converter/netcdf-to-kmz)
- [netCDF to GeoJSON](https://beta.mygeodata.cloud/converter/netcdf-to-geojson)
- [netCDF to GPX](https://beta.mygeodata.cloud/converter/netcdf-to-gpx)
- [netCDF to GPKG](https://beta.mygeodata.cloud/converter/netcdf-to-gpkg)
- [netCDF to TopoJSON](https://beta.mygeodata.cloud/converter/netcdf-to-topojson)
- [netCDF to SVG](https://beta.mygeodata.cloud/converter/netcdf-to-svg)
- [netCDF to MapInfo](https://beta.mygeodata.cloud/converter/netcdf-to-mapinfo)
- [netCDF to Parquet](https://beta.mygeodata.cloud/converter/netcdf-to-parquet)
- [netCDF to MBTiles](https://beta.mygeodata.cloud/converter/netcdf-to-mbtiles)
- [netCDF to MIF](https://beta.mygeodata.cloud/converter/netcdf-to-mif)
- [netCDF to DGN](https://beta.mygeodata.cloud/converter/netcdf-to-dgn)
- [netCDF to SQLite](https://beta.mygeodata.cloud/converter/netcdf-to-sqlite)

## Frequently asked questions

### Why does my netCDF file open without any vector features?

Many .nc files hold only gridded arrays and contain no feature geometries. Vector content appears only when the file follows a feature encoding such as CF discrete sampling geometries or CF geometry containers, and not every application reads these.

### How is netCDF different from GeoJSON or Shapefile for vector data?

GeoJSON and Shapefile have dedicated geometry records. netCDF stores coordinates in dimensions, variables and attributes, and relies on conventions to interpret them. It suits scientific data exchange better than general-purpose vector editing.

### What is the difference between CF and UGRID in a netCDF file?

CF conventions describe how to store coordinates, time and feature types such as points, profiles, trajectories and simple geometries. UGRID is a separate convention that describes unstructured meshes. A file may follow one, both, or neither.

### What is a netCDF file?

netCDF (Network Common Data Form) is a self-describing, machine-independent binary format for array-oriented scientific data, developed and maintained by Unidata at UCAR. It is mainly used for gridded climate, ocean and atmospheric data, but conventions built on top of it allow feature-type content to be stored. The CF conventions define discrete sampling geometries for point, time series, profile and trajectory data, and later CF versions add encodings for simple point, line and polygon geometries. The separate UGRID convention describes unstructured meshes.

Vector features are expressed through dimensions, coordinate variables and attributes rather than as dedicated geometry records. Coordinate reference systems are declared with CF grid mapping variables. Support for these geometry encodings varies considerably between applications. As a result, netCDF is better suited to the scientific exchange of observation and model data than to general-purpose vector editing.

### How do I open a netCDF file?

netCDF files can be opened in GDAL/OGR, QGIS, ArcGIS Pro and FME. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert netCDF to?

Popular conversions are CSV, DXF, XLSX, GeoPDF, KML and SHP. In total the Converter writes netCDF data to 39 formats.

### How do I create a netCDF file?

Convert existing data to netCDF — for example from GeoPDF, DXF, KMZ, KML and GPKG. Upload the file, choose netCDF as output and download the result.

### Is a netCDF file vector or raster?

A netCDF file can store vector data or raster data, depending on how it was created. This page describes the vector variant; the other variant has separate specifications and conversion options.

