|
|
|||
|
||||
Use NF_CREATE to create a file. Then use NF_DEF_DIM to define each shared dimension. The data variables are then specified with NF_DEF_VAR. Any attributes are added with NF_PUT_ATT. Finally, call NF_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 NF_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 77 Interface Guide).
Fortran users take note: the netCDF Fortran 77 API consists of wrappers around the functions of the netCDF C library. There is no Fortran 77 code in netCDF except for these wrappers, and tests to ensure that the wrappers work.
The name of each Fortran function shows the outline of the C function it wraps (for example, NF_CREATE is a wrapper around nc_create).
| NF_CREATE (The NetCDF Fortran 77 Interface Guide) | create a new netCDF file
|
| NF_DEF_DIM (The NetCDF Fortran 77 Interface Guide) | define a dimension
|
| NF_DEF_VAR (The NetCDF Fortran 77 Interface Guide) | define a variable
|
| NF_PUT_ATT_ type (The NetCDF Fortran 77 Interface Guide) | write an attribute
|
| NF_ENDDEF (The NetCDF Fortran 77 Interface Guide) | end define mode
|
| NF_PUT_VARA_ type (The NetCDF Fortran 77 Interface Guide) | write arrays of data
|
| NF_CLOSE (The NetCDF Fortran 77 Interface Guide) | close the netCDF file
|
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||