To read a netCDF file of known structure, you need to:
- open the file - Specify the file name and whether you want read-write or read-only access.
- read variable or attribute data - Read the data or attributes of interest.
- close the file - Release all resources associated with this file.
Use ncdump to learn the structure of a file (use the -h option).