Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
[Next] [Previous] [Top] [Contents] [Index] [netCDF Home Page] [Unidata Home Page]

NetCDF User's Guide for Fortran 90

1 Introduction

1.1 The NetCDF Interface
1.2 NetCDF Is Not a Database Management System
1.3 File Format
1.4 What about Performance?
1.5 Is NetCDF a Good Archive Format?
1.6 Creating Self-Describing Data conforming to Conventions
1.7 Background and Evolution of the NetCDF Interface
1.8 What's New Since the Previous Release?
1.9 Limitations of NetCDF
1.10 Future Plans for NetCDF

2 Components of a NetCDF Dataset

2.1 The NetCDF Data Model
2.1.1 Naming Conventions 9
2.1.2 Network Common Data Form Language (CDL)
2.2 Dimensions
2.3 Variables
2.3.1 Coordinate Variables
2.4 Attributes
2.5 Differences between Attributes and Variables

3 Data

3.1 NetCDF external data types
3.2 Data Access
3.2.1 Forms of Data Access 16
3.2.2 An Example of Array-Section Access
3.2.3 More on General Array Section Access
3.3 Type Conversion
3.4 Data Structures

4 Use of the NetCDF Library

4.1 Creating a NetCDF Dataset
4.2 Reading a NetCDF Dataset with Known Names
4.3 Reading a netCDF Dataset with Unknown Names
4.4 Writing Data in an Existing NetCDF Dataset
4.5 Adding New Dimensions, Variables, Attributes
4.6 Error Handling
4.7 Compiling and Linking with the NetCDF Library

5 Datasets

5.1 NetCDF Library Interface Descriptions
5.2 Get error message corresponding to error status: NF90_STRERROR
5.3 Get netCDF library version: NF90_INQ_LIBVERS
5.4 Create a NetCDF dataset: NF90_CREATE
5.5 Open a NetCDF Dataset for Access: NF90_OPEN
5.6 Put Open NetCDF Dataset into Define Mode: NF90_REDEF
5.7 Leave Define Mode: NF90_ENDDEF
5.8 Close an Open NetCDF Dataset: NF90_CLOSE
5.9 Inquire about an Open NetCDF Dataset: NF90_Inquire
5.10 Synchronize an Open NetCDF Dataset to Disk: NF90_SYNC
5.11 Back Out of Recent Definitions: NF90_ABORT
5.12 Set Fill Mode for Writes: NF90_SET_FILL

6 Dimensions

6.1 Create a Dimension: NF90_DEF_DIM
6.2 Get a Dimension ID from Its Name: NF90_INQ_DIMID
6.3 Inquire about a Dimension: NF90_Inquire_Dimension
6.4 Rename a Dimension: NF90_RENAME_DIM

7 Variables

7.1 Language Types Corresponding to NetCDF External Data Types
7.2 Create a Variable: NF90_DEF_VAR
7.3 Get a Variable ID from Its Name: NF90_INQ_VARID
7.4 Get Information about a Variable from Its ID: NF90_Inquire_Variable
7.5 Writing Data Values: NF90_PUT_VAR
7.6 Reading Data Values: NF90_GET_VAR
7.7 Reading and Writing Character String Values
7.8 Fill Values
7.9 Rename a Variable: NF90_RENAME_VAR

8 Attributes

8.1 Attribute Conventions
8.2 Create an Attribute: NF90_PUT_ATT
8.3 Get Information about an Attribute: NF90_Inquire_Att and NF90_INQ_ATTNAME
8.4 Get Attribute's Values: NF90_GET_ATT
8.5 Copy Attribute from One NetCDF to Another: NF90_COPY_ATT
8.6 Rename an Attribute: NF90_RENAME_ATT
8.7 Delete an Attribute: NF90_DEL_ATT

9 NetCDF File Structure and Performance

9.1 Parts of a NetCDF File
9.2 The Extended XDR Layer
9.3 Large File Support
9.4 The I/O Layer
9.5 UNICOS Optimization

10 NetCDF Utilities

10.1 CDL Syntax
10.2 CDL Data Types
10.3 CDL Notation for Data Constants
10.4 ncgen
10.5 ncdump

11 Answers to Some Frequently Asked Questions

Appendix A Units

Appendix B File Format Specification

Appendix C Summary of Fortran 90 Interface

Appendix D FORTRAN 77 to Fortran 90 Transition Guide

Index for Fortran 90


[Next] [Previous] [Top] [Contents] [Index] [netCDF Home Page] [Unidata Home Page]
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690