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.
Michael, > Hello. I received your mail message and Fortran program for > creating a NetCDF file. Howver, I do not know what the file > /usr/local/include/netcdf.inc is and what the directory /usr/local is? The netcdf.inc file is installed as part of the process of building and installing the netCDF library from the source distribution available from Unidata's FTP site. As part of the installation process, you choose where the netcdf.inc file and the library get installed. /usr/local/ is one possible installation location, but you can choose a different root for installing these files. netcdf.inc is just a file that contains Fortran PARAMETER declarations and type declarations that make it easier to use the netCDF library from Fortran. For example, the constant "NCCLOB" in the statement ncid = NCCRE('test.nc', NCCLOB, errcode) (from the example program that I sent) is a Fortran parameter defined in the netcdf.inc file, so you don't have to know its value to use it with the NCCRE() call to create a new netCDF file. > Also, could you outline the steps necessary to create the NetCDF library? The process of installing the netCDF library is described in detail in the netcdf/INSTALL file that comes with the source distribution. If you encounter a problem following the steps described in that document, please send a specific question about the problem to address@hidden. ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu