[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #ECA-828008]: Reading netcdf

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #ECA-828008]: Reading netcdf
  • Date: Mon, 05 May 2014 12:46:04 -0600

Hi Silva,

> Could you please let me know the fortran format to read very large netcdf
> files.

The netCDF format is not associated with particular programming languages, so
a netCDF file written from a Fortran, C, Python, or Java program can be read by
a program written in Fortran, C, Python, or Java, as long as its linked against
the right library for that language.

To read small or large netCDF files from Fortran requires several steps:

  1. Install the netCDF C library, either from a package management system
     or by building it from source.  See
       http://www.unidata.ucar.edu/netcdf/docs/getting_and_building_netcdf.html

  2. Install the netCDF Fortran library, either from a package management
     system or by building it from source.  The netCDF Fortran library uses
     and requires the netCDF C library, so you have to do step 1 first. See
       http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html

  3. Write your Fortran program to call functions from the netCDF Fortran
     library, and link to the netCDF Fortran library installed in step 2.

There are no limits on the size of the netCDF file you can read from Fortran.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: ECA-828008
Department: Support netCDF
Priority: High
Status: Closed