|
|
|||
|
||||
Use NF90_CREATE to create a file. Then use NF90_DEF_DIM to define each shared dimension. The data variables are then specified with NF90_DEF_VAR. Any attributes are added with NF90_PUT_ATT. Finally, call NF90_ENDDEF to tell the library that you are done defining the metadata, and ready to start writing the data.
After all data are written to the file, call NF90_CLOSE to ensure that all buffers are flushed, and any resources associated with the open file are returned to the operating system.
For a typical sequence of calls see Creating a NetCDF Dataset (The NetCDF Fortran 90 Interface Guide).
The netCDF Fortran 90 API calls the Fortran 77 API, which in turn calls the netCDF C library.
The name of each Fortran function shows the outline of the F77 function it wraps (for example, NF90_CREATE is a wrapper around NF_CREATE). The F77 functions are, in turn, wrappers around the C functions.
| NF90_CREATE (The NetCDF Fortran 90 Interface Guide) | create a netCDF file
|
| NF90_DEF_DIM (The NetCDF Fortran 90 Interface Guide) | define a dimension
|
| NF90_DEF_VAR (The NetCDF Fortran 90 Interface Guide) | define a variable
|
| NF90_PUT_ATT_ type (The NetCDF Fortran 90 Interface Guide) | write an attribute
|
| NF90_ENDDEF (The NetCDF Fortran 90 Interface Guide) | end define mode
|
| NF90_PUT_VARA_ type (The NetCDF Fortran 90 Interface Guide) | write arrays of data
|
| NF90_CLOSE (The NetCDF Fortran 90 Interface Guide) | close the netCDF file
|
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||