Home

NetCDFFortran

NetCDF Fortran is the Fortran interface to the NetCDF data model and libraries, enabling Fortran programs to read, write, and manage scientific array data stored in NetCDF files. It is part of the NetCDF project maintained by Unidata and is designed to work with the NetCDF-C library. NetCDF files can use the classic NetCDF format or the enhanced NetCDF-4 format, which supports hierarchical groups, richer metadata, and optional data compression.

The Fortran interface provides modules such as nf90 (and the older nf) to access NetCDF data. Developers

Usage typically involves creating or opening a NetCDF file, entering define mode to declare dimensions and

Licensing is open source under the NetCDF license (a BSD-style license). The project is maintained by Unidata,

can
define
dimensions
and
variables,
attach
attributes,
and
perform
data
input/output
using
a
Fortran-friendly
API.
The
interface
supports
two
levels
of
compatibility:
a
classic
interface
preserving
behavior
for
older
code
and
a
modern
Fortran
90/2003
interface
that
integrates
with
ISO_BINDING
for
interoperability.
It
supports
features
common
to
NetCDF-4,
including
groups,
unlimited
dimensions,
and
chunking,
where
available.
variables,
writing
attributes,
exiting
define
mode,
and
then
reading
or
writing
data
arrays.
The
API
is
designed
to
be
cross-platform
and
interoperable
with
C
and
other
language
bindings
via
the
NetCDF
library.
with
community
contributions
and
documentation,
and
is
distributed
through
the
NetCDF
website
and
common
package
managers.