Skip to content
Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Fortran M4 Pascal C CMake Makefile Other
Branch: master
Clone or download
WardF Merge pull request #193 from wkliao/unused_var
remove an unused variable 'counter'
Latest commit 25fd8cc Jul 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMakeExtras check Fortran data type integer*8 Jun 26, 2019
docs added logging Jul 9, 2019
examples Add $(srcdir) when doing VPATH build Jun 25, 2019
fortran remove an unused variable 'counter' Jul 14, 2019
libsrc clean up Apr 26, 2019
m4 reverted inadvertant commit Feb 1, 2018
nf03_test add test programs tst_int64.F and tst_fill_int64.F90 for int64 data type Jun 26, 2019
nf03_test4 fix errors in CMakeLists.txt when netCDF-4 is ON Jun 26, 2019
nf_test add test programs tst_int64.F and tst_fill_int64.F90 for int64 data type Jun 26, 2019
nf_test4 Fortran stop statement: STOP [str] where str is a Jun 25, 2019
.gitignore Updated gitignore with build directories. May 6, 2016
.travis.yml Updated to travis testing for netcdf-fortran. Jul 31, 2018
CMakeLists.txt When parallel I/O feature in NetCDF C library is detected enabled, Jul 14, 2019
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 moving F90 test from nf_test to nf03_test4 Apr 21, 2019 updated README Mar 16, 2019 updated release notes Apr 26, 2019
acinclude.m4 check Fortran data type integer*8 Jun 26, 2019 Removed duplicate definition. Feb 2, 2017 Merge pull request #194 from wkliao/check_mpi_io Jul 17, 2019 Cleaned out old utility scripts. Changed name of cmake templates to f… Jun 16, 2014 bugfix in Feb 25, 2019

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

The netCDF Fortran libraries contain both F77 and F90 APIs. For documentation see

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

Previous varsions of the netCDF-3 C and FORTRAN-77 interfaces are documented at

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.

You can’t perform that action at this time.