NetCDF explained

Network Common Data Form
Extension:.nc
Nomimecode:on
Mime:application/netcdf
application/x-netcdf
Magic:CDF\001
\211HDF\r\n\032\n
Developer:UCAR
Genre:scientific binary data
Extended From:CDF
HDF
Standards:-->

NetCDF (Network Common Data Form) is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. The project homepage[1] is hosted by the Unidata program at the University Corporation for Atmospheric Research (UCAR). They are also the chief source of netCDF software, standards development, updates, etc. The format is an open standard. NetCDF Classic and 64-bit Offset Format are an international standard of the Open Geospatial Consortium.[2]

The project started in 1988 and is still actively supported by UCAR. The original netCDF binary format (released in 1990, now known as "netCDF classic format") is still widely used across the world and continues to be fully supported in all netCDF releases. Version 4.0 (released in 2008) allowed the use of the HDF5 data file format. Version 4.1 (2010) added support for C and Fortran client access to specified subsets of remote data via OPeNDAP. Version 4.3.0 (2012) added a CMake build system for Windows builds. Version 4.7.0 (2019) added support for reading Amazon S3 objects. Further releases are planned to improve performance, add features, and fix bugs.

History

The format was originally based on the conceptual model of the Common Data Format developed by NASA, but has since diverged and is not compatible with it.[3] [4]

Format description

The netCDF libraries support multiple different binary formats for netCDF files:

All formats are "self-describing". This means that there is a header which describes the layout of the rest of the file, in particular the data arrays, as well as arbitrary file metadata in the form of name/value attributes. The format is platform independent, with issues such as endianness being addressed in the software libraries. The data are stored in a fashion that allows efficient subsetting.

Starting with version 4.0, the netCDF API[5] allows the use of the HDF5 data format. NetCDF users can create HDF5 files with benefits not available with the netCDF format, such as much larger files and multiple unlimited dimensions.

Full backward compatibility in accessing old netCDF files and using previous versions of the C and Fortran APIs is supported.

Software

Access libraries

The software libraries supplied by UCAR provide read-write access to netCDF files, encoding and decoding the necessary arrays and metadata. The core library is written in C, and provides an API for C, C++ and two APIs for Fortran applications, one for Fortran 77, and one for Fortran 90. An independent implementation, also developed and maintained by Unidata, is written in 100% Java, which extends the core data model and adds additional functionality. Interfaces to netCDF based on the C library are also available in other languages including R (ncdf,[6] ncvar and RNetCDF[7] packages), Perl, Python, Ruby, Haskell,[8] Mathematica, MATLAB, IDL, Julia and Octave. The specification of the API calls is very similar across the different languages, apart from inevitable differences of syntax. The API calls for version 2 were rather different from those in version 3, but are also supported by versions 3 and 4 for backward compatibility. Application programmers using supported languages need not normally be concerned with the file structure itself, even though it is available as open formats.

Applications

A wide range of application software has been written which makes use of netCDF files. These range from command line utilities to graphical visualization packages. A number are listed below, and a longer list[9] is on the UCAR website.

Common uses

It is commonly used in climatology, meteorology and oceanography applications (e.g., weather forecasting, climate change) and GIS applications.

It is an input/output format for many GIS applications, and for general scientific data exchange. To quote from their site:[25]

"NetCDF (network Common Data Form) is a set of interfaces for array-oriented data access and a freely-distributed collection of data access libraries for C, Fortran, C++, Java, and other languages. The netCDF libraries support a machine-independent format for representing scientific data. Together, the interfaces, libraries, and format support the creation, access, and sharing of scientific data."

Conventions

See main article: article and Climate and Forecast Metadata Conventions. The Climate and Forecast (CF) conventions are metadata conventions for earth science data, intended to promote the processing and sharing of files created with the NetCDF Application Programmer Interface (API). The conventions define metadata that are included in the same file as the data (thus making the file "self-describing"), that provide a definitive description of what the data in each variable represents, and of the spatial and temporal properties of the data (including information about grids, such as grid cell bounds and cell averaging methods). This enables users of data from different sources to decide which data are comparable, and allows building applications with powerful extraction, regridding, and display capabilities.

Parallel-NetCDF

An extension of netCDF for parallel computing called Parallel-NetCDF (or PnetCDF) has been developed by Argonne National Laboratory and Northwestern University.[26] This is built upon MPI-IO, the I/O extension to MPI communications. Using the high-level netCDF data structures, the Parallel-NetCDF libraries can make use of optimizations to efficiently distribute the file read and write applications between multiple processors. The Parallel-NetCDF package can read/write only classic and 64-bit offset formats. Parallel-NetCDF cannot read or write the HDF5-based format available with netCDF-4.0. The Parallel-NetCDF package uses different, but similar APIs in Fortran and C.

Parallel I/O in the Unidata netCDF library has been supported since release 4.0, for HDF5 data files. Since version 4.1.1 the Unidata NetCDF C library supports parallel I/O to classic and 64-bit offset files using the Parallel-NetCDF library, but with the NetCDF API.

Interoperability of C/Fortran/C++ libraries with other formats

The netCDF C library, and the libraries based on it (Fortran 77 and Fortran 90, C++, and all third-party libraries) can, starting with version 4.1.1, read some data in other data formats. Data in the HDF5 format can be read, with some restrictions. Data in the HDF4 format can be read by the netCDF C library if created using the HDF4 Scientific Data (SD) API.

NetCDF-Java common data model

The NetCDF-Java library currently reads the following file formats and remote access protocols:

There are a number of other formats in development. Since each of these is accessed transparently through the NetCDF API, the NetCDF-Java library is said to implement a common data model for scientific datasets.

The Java common data model has three layers, which build on top of each other to add successively richer semantics:

  1. The data access layer, also known as the syntactic layer, handles data reading.
  2. The coordinate system layer identifies the coordinates of the data arrays. Coordinates are a completely general concept for scientific data; specialized georeferencing coordinate systems, important to the Earth Science community, are specially annotated.
  3. The scientific data type layer identifies specific types of data, such as grids, images, and point data, and adds specialized methods for each kind of data.

The data model of the data access layer is a generalization of the NetCDF-3 data model, and substantially the same as the NetCDF-4 data model. The coordinate system layer implements and extends the concepts in the Climate and Forecast Metadata Conventions. The scientific data type layer allows data to be manipulated in coordinate space, analogous to the Open Geospatial Consortium specifications. The identification of coordinate systems and data typing is ongoing, but users can plug in their own classes at runtime for specialized processing.

See also

External links

Notes and References

  1. Web site: NetCDF Home Page. Unidata/UCAR. 2017-12-05. https://web.archive.org/web/20171206074551/https://www.unidata.ucar.edu/software/netcdf/. 2017-12-06. live.
  2. Web site: OGC standard netCDF Classic and 64-bit Offset . Opengeospatial.org . 2017-12-05 . https://web.archive.org/web/20171130022138/http://www.opengeospatial.org/standards/netcdf . 2017-11-30 . live .
  3. Web site: Background - The NetCDF Users' Guide . Unidata.ucar.edu . 2013-11-27.
  4. Web site: CDF - Frequently asked questions. 2018-11-02. NASA. https://web.archive.org/web/20180619212258/https://cdf.gsfc.nasa.gov/html/faq.html. 2018-06-19. live.
  5. Web site: Version 4.0 of the netCDF API . Unidata.ucar.edu . 2013-11-27 . https://web.archive.org/web/20150617165533/http://www.unidata.ucar.edu/software/netcdf/netcdf-4/ . 2015-06-17 . dead .
  6. Web site: ncdf . Cirrus.ucsd.edu . 2013-08-06 . 2013-11-27 . https://web.archive.org/web/20131203023916/http://cirrus.ucsd.edu/~pierce/ncdf/ . 2013-12-03 . live .
  7. Web site: Rnetcdf . Cran.r-project.org . 2012-07-19 . 2013-11-27 . https://web.archive.org/web/20131202221930/http://cran.r-project.org/web/packages/RNetCDF/index.html . 2013-12-02 . live .
  8. Web site: hnetcdf: Haskell NetCDF library . hackage.haskell.org . 2014-07-10 . 2014-07-10 . https://web.archive.org/web/20140709080200/http://hackage.haskell.org/package/hnetcdf . 2014-07-09 . live .
  9. Web site: Software for Manipulating or Displaying NetCDF Data . Unidata.ucar.edu . 2020-10-23 .
  10. Web site: ncBrowse . Epic.noaa.gov . 2013-11-27 . dead . https://web.archive.org/web/20131203012747/http://www.epic.noaa.gov/java/ncBrowse/ . 2013-12-03 .
  11. Web site: ncview . Meteora.ucsd.edu . 2013-11-27 . https://web.archive.org/web/20140212143204/http://meteora.ucsd.edu/~pierce/ncview_home_page.html . 2014-02-12 . live .
  12. Web site: Panoply . Giss.nasa.gov . . 2013-11-27 . https://web.archive.org/web/20140620075427/http://www.giss.nasa.gov/tools/panoply/ . 2014-06-20 . live .
  13. Web site: PyNIO . Pyngl.ucar.edu . 2011-07-28 . 2013-11-27 . https://web.archive.org/web/20131125054733/http://www.pyngl.ucar.edu/Nio.shtml . 2013-11-25 . live .
  14. Web site: netCDF4 . 2017-12-04 . https://web.archive.org/web/20171129043927/http://unidata.github.io/netcdf4-python/ . 2017-11-29 . live .
  15. Web site: xarray: N-D labeled arrays and datasets in Python . 2016-09-07 . https://web.archive.org/web/20160901231759/http://xarray.pydata.org/en/stable/ . 2016-09-01 . live .
  16. Web site: GrADS Home Page . 2018-04-10 . https://web.archive.org/web/20160213015526/http://cola.gmu.edu/grads/ . 2016-02-13 . live .
  17. Web site: Coyote's Guide to IDL Programming . Dfanning.com . 2013-11-23 . 2013-11-27 . https://web.archive.org/web/20150923214032/http://www.dfanning.com/programs/ncdf_browser.zip . 2015-09-23 . dead .
  18. Web site: Coyote Library . Dfanning.com . 2013-11-23 . 2013-11-27 . https://web.archive.org/web/20150923214031/http://www.dfanning.com/documents/programs.html . 2015-09-23 . dead .
  19. Web site: ArcGIS version 9.2 . Esri.com . 2013-11-27 . https://web.archive.org/web/20131122023914/http://www.esri.com/software/arcgis . 2013-11-22 . live .
  20. Web site: NetCDF Importing and Processing . originlab.com . 2021-05-11.
  21. Web site: NetCDF network Common Data Form . Gdal.org . 2013-11-27 . https://web.archive.org/web/20130606071318/http://www.gdal.org/frmt_netcdf.html . 2013-06-06 . live .
  22. David Pierce (2014). ncdf4: Interface to Unidata netCDF (version 4 or earlier) format data files. R package version 1.13. https://cran.r-project.org/package=ncdf4
  23. Pavel Michna and with contributions from Milton Woods (2015). RNetCDF: Interface to NetCDF Datasets. R package version 1.7-3. https://cran.r-project.org/package=RNetCDF
  24. OpenChrom: a cross-platform open source software for the mass spectrometric analysis of chromatographic data, Philip Wenig, Juergen Odermatt, BMC Bioinformatics; 2010;
  25. Web site: What Is netCDF?. Unidata Program Center. 2012-11-26. https://web.archive.org/web/20130315005738/http://www.unidata.ucar.edu/software/netcdf/docs/faq.html#whatisit. 2013-03-15. live.
  26. Web site: parallel-netcdf . Mcs.anl.gov . 2013-11-17 . 2013-11-27 . https://web.archive.org/web/20081201204038/http://www.mcs.anl.gov/parallel-netcdf/ . 2008-12-01 . live .
  27. Web site: BUFR FORMAT DOCUMENTATION . February 2, 2008 . dead . https://web.archive.org/web/20071009233507/http://dss.ucar.edu/docs/formats/bufr/ . October 9, 2007 .
  28. http://www.unidata.ucar.edu/software/netcdf-java/v2.2.20/javadocAll/ucar/nc2/iosp/cinrad/package-summary.html
  29. http://dmsp.ngdc.noaa.gov/
  30. http://www.atd.ucar.edu/rsf/UserGuides/ELDORA/DataAnalysis/DataAnalysis.html
  31. Web site: GINI Satellite Format . Weather.unisys.com . 2013-11-27 . https://web.archive.org/web/20131202221829/http://weather.unisys.com/wxp/Appendices/Formats/GINI.html . 2013-12-02 . live .
  32. Web site: Unidata | GEMPAK . Unidata.ucar.edu . 2013-11-27 . https://web.archive.org/web/20131104142746/http://www.unidata.ucar.edu/software/gempak/ . 2013-11-04 . live .
  33. http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html
  34. Web site: NetCDF . Unidata.ucar.edu . 2013-11-27 . https://web.archive.org/web/20131129104539/http://www.unidata.ucar.edu/software/netcdf/index.html . 2013-11-29 . live .
  35. Web site: NetCDF-4 . Unidata.ucar.edu . 2013-11-27 . https://web.archive.org/web/20150617165533/http://www.unidata.ucar.edu/software/netcdf/netcdf-4/ . 2015-06-17 . dead .
  36. Web site: Steve Ansari . NCDC: Radar Resources . Ncdc.noaa.gov . 2013-11-27 . https://web.archive.org/web/20131202225738/http://www.ncdc.noaa.gov/oa/radar/radarresources.html . 2013-12-02 . live .