GISBox

NC (NetCDF, Network Common Data Form)

GISBox is a one-stop 3D GIS data editing, conversion and publishing platform that supports editing in multiple GIS formats such as OSGB/GEOTIFF/RVT, converting to 3DTiles/Terrain and publishing.

Introduction

NC (NetCDF, Network Common Data Form) is a self-describing, cross-platform scientific data format, widely used in meteorology, oceanography, earth science and other fields, for storing multidimensional array data (such as temperature, rainfall, wind speed, etc.). NetCDF is developed and maintained by Unidata and is one of the important standards in the field of scientific computing and analysis. It uses a hierarchical data model to store data in the form of variables, dimensions and attributes, making it flexible to represent complex scientific data sets while being efficient and easy to use.

File Structure

The main file format versions include: the early standard (NetCDF-3), which uses a simple and efficient binary format and is widely compatible; the extended version (NetCDF-4), based on HDF5 (Hierarchical Data Format), supports data compression, larger files, and complex structures. Its file structure is as follows:

  1. Global attributes: describe file meta information, such as title, time range, data source, etc.
  2. Dimensions: define the shape of the data, such as time, longitude, latitude, and altitude.
  3. Variables: store actual data, such as temperature fields or wind speed fields, usually multidimensional arrays.
  4. Local attributes: provide additional meta information for variables, such as units or valid value ranges.

Pros

**1. Self-descriptive: **Data and meta-information are stored in the same file, which is easy to parse and understand.

**2. Efficiency: **Optimized for multidimensional array data, supports fast random access and efficient reading.

**3. Cross-platform and compatibility: **Widely supported in various operating systems and programming languages (such as Python, C, Java, R).

**4. Support for big data: **NetCDF-4 version can handle very large data sets and supports data compression to save storage space.

**5. Community standard: **It is the de facto standard format in the fields of earth science and atmospheric science, with a wide user base and tool support.

Cons

1. High learning curve: The complex file structure may be difficult for beginners, especially for multi-dimensional data operations.

2. File editing restrictions: Once a NetCDF-3 file is created, the structure cannot be adjusted dynamically; the file needs to be recreated to modify the dimension or variable.

3. Dependence on specific libraries: Parsing and manipulating NetCDF files requires the installation of specific libraries (such as netCDF4, xarray), which is not friendly to some environments.

4. Limited visualization tools: Although scientific visualization tools are supported, the threshold for use is high for non-professional users.

Application Scenario

NC files are widely used in scenarios involving spatiotemporal data in scientific research and engineering applications. For example, in meteorology and climatology, NC files are used to store long-term observation data such as global temperature, precipitation, and ocean salinity, which facilitates the analysis of climate change and the prediction of weather patterns. In oceanography, NC files are often used to record data such as ocean temperature, ocean current speed, and buoy position to support marine resource management and shipping planning.

Example

  1. The NetCDF4 format is self-describing.

  1. Including netCDF Dimension Values in the Name of an Output Layer or Table

File Opening Mode

  1. NC file raster layer generated by ArcGIS.

  1. Overview diagram of netCDF.

Related GIS files

MBTiles

GPKG

MDB

TAB

References

  1. https://en.wikipedia.org/wiki/NetCDF
  2. https://www.ogc.org/publications/standard/netcdf/
  3. https://gdal.org/en/stable/drivers/raster/netcdf.html