Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Clone or download
WardF Merge pull request #102 from NetCDF-World-Domination-Council/ejh_conf…

fixed for static builds
Latest commit e20775a Dec 7, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMakeExtras add paralle I/O tests for PnetCDF Jul 28, 2018
docs reverted inadvertant commit Feb 1, 2018
examples reverted inadvertant commit Feb 1, 2018
fortran fixed status of as CLEANFILE Nov 14, 2018
libsrc fixed status of as CLEANFILE Nov 14, 2018
m4 reverted inadvertant commit Feb 1, 2018
nf03_test Oops wrong flag for nc_open_mem Oct 7, 2018
nf_test Cleaning up scratch files for make dist. Aug 20, 2018
.gitignore Updated gitignore with build directories. May 6, 2016
.travis.yml Updated to travis testing for netcdf-fortran. Jul 31, 2018
CMakeLists.txt Corrected a typo. Aug 20, 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 Remove example option from ac-based builds for time being. Aug 20, 2018 Updated dead link in README. Aug 1, 2016 Updated release notes. Aug 20, 2018
acinclude.m4 Avoid compilation failure with -Werror=implicit-function-declaration Dec 4, 2016 Removed duplicate definition. Feb 2, 2017 fixed for static builds Nov 14, 2018 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.