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.
Brett, you can obtain the netCDF library source at: http://www.unidata.ucar.edu/packages/netcdf/ NetCDF storage is device independent, so you can use the same programs to access data from the cdf file on any platform. Attatched to this message is some source code I used to extract data from a cdf reanalysis data set and store as a gempak grid file. Since the metadata is stored in a cdf file, reading the data typically involves querying the dataset to find out what the ids are for the parameters you are interested in, discovering the data dimensions, and retrieving the data. When you build the netcdf library, you will also build a program called ncdump. You can use the ncdump program to create an ascii dump out of the cdf file, to see how the data is stored- data variable names etc. for writing your program. Man pages on the fortran interface routines are in the tarfile distribution, and the user guide is included also. Steve Chiswell Unidata User SUpport
Attachment:
dcreanal.tar.Z
Description: binary/compressed