Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Fortran C++ C M4 Pascal CMake Other
Latest commit 6c4af04 Mar 7, 2018
WardF Merge pull request #79 from Unidata/cdash-update.wif
Updates to netCDF fortran in support of the upcoming release.
Failed to load latest commit information.
CMakeExtras reverted inadvertant commit Feb 1, 2018
docs reverted inadvertant commit Feb 1, 2018
examples reverted inadvertant commit Feb 1, 2018
fortran reverted inadvertant commit Feb 1, 2018
libsrc reverted inadvertant commit Feb 1, 2018
m4 reverted inadvertant commit Feb 1, 2018
nf03_test reverted inadvertant commit Feb 1, 2018
nf_test reverted inadvertant commit Feb 1, 2018
.gitignore Updated gitignore with build directories. May 6, 2016
.travis.yml Updated travis to respect .wif and .dmh branches as 'do not test'. Mar 7, 2018
CMakeLists.txt Updated CMakeLists.txt with generic cdash pointer. Feb 1, 2018
COPYRIGHT Make Fortran CMakeLists.txt more like netcdf-c version Dec 6, 2013 Refactored variables used for custom CDash dashboard instance. Apr 1, 2016
F03Interfaces_LICENSE Incorporate Richard Weed's mods before testing Jun 18, 2014 Ensuring CMakeExtras are included in the tarball generated by 'make d… Jul 2, 2014 Updated dead link in README. Aug 1, 2016 Bumped the netcdf fortran SO version due to new symbols. May 13, 2016
acinclude.m4 Avoid compilation failure with -Werror=implicit-function-declaration Dec 4, 2016 Removed duplicate definition. Feb 2, 2017 Bumped the netcdf fortran SO version due to new symbols. May 13, 2016 Fix pkg-config for "--static --libs" to output "-lnetcdff -lnetcdf". Apr 7, 2013 Cleaned out old utility scripts. Changed name of cmake templates to f… Jun 16, 2014 Removed --libs option, to avoid confusion with --flibs option, which Apr 8, 2013

Unidata NetCDF Fortran Library


The Unidata network Common Data Form (netCDF) is an interface for scientific data access and a set of freely-distributed software libraries that provide an implementation of the interface. The netCDF library also defines a machine-independent format for representing scientific data. Together, the interface, library, and format support the creation, access, and sharing of scientific data. This software package provides Fortran application interfaces for accessing netCDF data. It depends on the netCDF C library, which must be installed first. Other separate software distributions available from Unidata provide C Java, C++, and Python. They have been tested on various common platforms.

NetCDF files are self-describing, network-transparent, directly accessible, and extendible. Self-describing means that a netCDF file includes information about the data it contains. Network-transparent means that a netCDF file is represented in a form that can be accessed by computers with different ways of storing integers, characters, and floating-point numbers. Direct-access means that a small subset of a large dataset may be accessed efficiently, without first reading through all the preceding data. Extendible means that data can be appended to a netCDF dataset without copying it or redefining its structure.

NetCDF is useful for supporting access to diverse kinds of scientific data in heterogeneous networking environments and for writing application software that does not depend on application-specific formats. For information about a variety of analysis and display packages that have been developed to analyze and display data in netCDF form, see

For more information about netCDF, see the netCDF Web page at

Code Status

NetCDF-Fortran uses Travis-CI for continuous integration testing. This helps to ensure that developer changes do not break the netCDF-Fortran code base.

Continuous Integration Testing Suite Status

Getting NetCDF

You can obtain a copy of the latest released versions of netCDF software from

Copyright and licensing information can be found here, as well as in the COPYRIGHT file accompanying the software

To install this package, please see the document:

Additional Documentation

The netCDF-3 C and FORTRAN-77 interfaces are documented at

User's Guides are also available in several forms from the same location.

Mailing List

A mailing list,, exists for discussion of the netCDF interface and announcements about netCDF bugs, fixes, and enhancements. For information about how to subscribe, see the URL

We appreciate feedback from users of this package. Please send comments, suggestions, and bug reports to Please identify the version of the package.